Commit Graph

79 Commits

Author SHA1 Message Date
Chrissy Wainwright
ea303b0369 Update URLs pointing to /reviews refs #1659
Change to point to /doc/formal-reviews/submissions.html
2025-03-14 12:02:46 -05:00
Foo Bar
a55111ca74 Use display_name for "username" instead of first_name, last_name (#1640) (#1638) 2025-03-03 11:03:49 -08:00
Rob Beeston
2fc04a1016 Removed boostbookv2.css and references (#1574) 2024-12-24 12:52:40 -08:00
Greg Kaleka
08534ba727 Add test ensuring nginx redirect map points to valid urls (#1553) 2024-12-23 13:36:18 -05:00
Mohammad Nejati
cf21a46cf4 Update Boost-Gecko (#1566) 2024-12-20 15:40:01 -05:00
Greg Kaleka
a2412b6545 Remove 'Proposed for boost.org' text (#1534) 2024-12-10 12:32:57 -05:00
Greg Kaleka
650a3f5e06 Fix Home nav link active color (#1523) 2024-12-06 18:36:39 -05:00
daveoconnor
f6a5f4fbcf Make URLs more consistent, refactor libraries/releases (#1489) 2024-11-25 16:08:38 -05:00
Greg Kaleka
0384ee994e Fix straggler links to old review process page (#1487) 2024-11-23 09:56:46 -05:00
daveoconnor
b4a6ddd751 Added support for release notes asciidoc macros (#1082) (#1377)
Related to ticket #1082, this adds support for asciidoc macros to
emulate macros from qbk. Macro support is documented at https://github.com/cppalliance/asciidoctor-boost/
2024-11-08 13:31:32 -08:00
daveoconnor
f55c2a2f87 Added filtering out of footer from boost.org release content (#1342) (#1355) 2024-10-21 17:28:34 -07:00
daveoconnor
2c6e7af997 Docs in iframe changes (#1372) 2024-10-21 17:11:07 -07:00
daveoconnor
c0d453a58f Show asciidocs library docs in iframe (#1369)
Related to ticket #1358, libraries docs iframe

~~This also contains some of the work for refactoring away from version
selects being copy pasted everywhere.~~ Removed for now, had side
effects.
2024-10-18 16:15:58 -07:00
Gavin Wahl
cb25772a13 AsciiDoc use the embedded option (#1344)
Instead of parsing out the HTML body from the full HTML document.

All adoc parsing now goes through `convert_adoc_to_html`. I removed the
`adoc_to_html` task because it was never `.delay`ed, probably because it
doesn't necessarily work: it expects content to be passed in a temp
file, which might not exist on the worker processing the task. The new
function passes the content as a string instead of a temp file.

This removes the `div#header` and `div#content` containers from the
output. It's wrong to have IDs in embeddable html because multiple
asciidoc outputs might be included on the same page, resulting in
duplicate IDs. I couldn't find a place where these containers are
necessary, though, because markdown output doesn't include them,
resulting in a discrepancy in the output for markdown vs asciidoc that
is now fixed. If we need to include the containers, I'd wrap the
asciidoc output in the template where it is used rather than expecting
it to be returned by `convert_adoc_to_html`.

Fixes #1302
2024-10-11 10:34:04 -06:00
Kenneth Reitz
25f2e36d77 Refactor test_views.py to reflect new redirect changes 2024-06-17 09:08:46 -04:00
Kenneth Reitz
1ecc2e0ad6 Refactor get_meta_redirect_from_html function to handle case-insensitive URL attribute 2024-04-01 16:00:49 -04:00
Lacey Williams Henschel
6755f76753 Replace relative image URLs with absolute URLs in static content files
- Add function to replace relative image paths with absolute paths
- Add docs on static content and adding shortcuts to the config file
- Add url and view for rendering static image data
2024-02-02 12:24:19 -08:00
Lacey Williams Henschel
0a9e0a2a7f Clear the static content database cache nightly of old files
- Add `created` and `modified` fields to `RenderedContent` models
- Add caching and RenderedContent docs
- Change cache key for library description rendered content
- Add `CLEAR_STATIC_CONTENT_CACHE_DAYS` setting
- Add manager method and task to clear static content cache
- Move task scheduler to main app
- Add daily task to clear rendered content cache
- Use created date and not updated date
2024-01-10 12:23:17 -08:00
Lacey Williams Henschel
73ea36b7a8 Pull in calendar data from the Google calendar
- Adds functions to retrieve raw events from the Google Calendar API, extract the data we need for those events, and order those events by month for display
- Documents the new env vars
- Adds new setting for the google calendar API url
- Adds `/calendar/` to URLs, which displays the rendered google calendar **but didn't prettify it**
- Adds events to homepage, using the existing template
- Edits to the homepage template to show the events and make the paging arrows work
2023-12-22 13:58:43 -08:00
Lacey Williams Henschel
266025d0a6 Add logging, add exception handling 2023-12-05 14:35:13 -08:00
Lacey Williams Henschel
49c0ec90f8 Make current-boost-version dynamic for boost-gecko in site header
- Add context processor to return most recent version to base template
- Add property for the stripped slug
- Add context processor to settings and retrieve val in template header
- Fix some news tests that test for specific query counts

fix tests
2023-11-30 13:48:39 -08:00
Lacey Williams Henschel
412f9ba587 Modernize legacy release notes
- Add helper functions for modernizing legacy release notes
- Add modernization to release note process
- Fix spelling
- Add tests and error handling
2023-11-30 12:30:21 -08:00
Lacey Williams Henschel
7507fa50b3 Limit file types of user and news images
- Add file type validator
- Apply validator to user image
- Save validator class to variable
- Add image validator to news image model field
- Add file size validator
- Enable file size validator on news and user model image fields
- Fix test
2023-11-03 10:21:36 -07:00
Lacey Williams Henschel
dff7e0d46d Use our custom 404 template
- Fix test for 404 conditions
2023-10-20 09:42:55 -07:00
Lacey Williams Henschel
a91af4f49c Move templatetag to core 2023-09-12 10:36:12 -07:00
Lacey Williams Henschel
7e847cc17f - Move GitHub retrieval and parser classes to the core/ app from the libraries/ app; moved tests, too, and updated import statements
- Add `verbose` flag to `import_versions` to allow user to silence the output
- Removed some unused options from `import_versions`
- Moved the exclusion logic in `import_versions` to its own function
- Stop getting the `github_url` from the github API. Instead, generate it from the tag. (reason: in older tags, the best URL GitHub gives us is a less-useful one to a _commit_ and not a tag. We can generate the url, though.)
- Move the retrieval of the `release_date` to its own task, so it can be loaded async. (reason: it's a separate API call per version to get the date)
- Make `release_date` optional on the `Version` model (reason: make the field easier to load async)
- Simplify logic to retrieve `release_date` and just always retrieve it from the commit
- Stop loading the version `description` from GitHub. We don't use it on the frontend anyway, and in all but the most recent couple of versions, the `description` is the comment from the commit, which is usually not useful.
2023-08-31 15:32:16 -07:00
Natalia
800b9e72d1 Expose via query params multiple options for browsing legacy docs. 2023-08-17 22:31:32 -03:00
Natalia
1f39e83c8e Study to restore legacy docs styles except for the header styling.
Disable the theme-switcher in the header for legacy docs pages.
2023-08-17 14:53:48 -03:00
Lacey Williams Henschel
eeb615ceff Load docs urls for library-versions from S3
- Add documentation_url to LibraryVersion table
- Retrieve the documentation_url in the view
- If the documentation_url is not present, show the Version documentation_url
- Hide the "https://" in the template
- Add Celery task to retrieve the documentation_urls from the libraries page in S3 and match them to import_library_versions
- Add HTML helper function to extract the libraries and docs URLs from the HTML
- Add one-time command to import docs urls
- Load the documentation_urls in the command that loads all library-versions
- Add a min-release option to the command that loads library-versions
- Document the new command and changes to the existing command
2023-08-04 08:40:00 -07:00
Natalia
2c4f8675ce Modernize legacy doc libs pages fetched directly from S3.
This modernization occurs on the fly over potentially-cached S3 files. This
means, the legacy doc pages are fetched and cached just like any other S3
static content, and the modernization happens when the page is requested. This
way, we can safely render modern parts of the pages (like the header) and
account for dynamic state such as logged in users.

The resulting docs (also called FrankenDocs :-)) are processed using
BeautifulSoup and a fairly simple heuristic that can be found in the
`core/htmlhelper.py` module.
2023-07-28 10:13:06 -04:00
Spencer Strickland
539ad3bd48 misc updates includes tos/privacy 2023-07-26 08:54:35 -05:00
Frank Wiles
db2e1945f4 Remove forum templates and vestiges 2023-07-13 16:07:59 -05:00
Lacey Williams Henschel
d6563e6965 Add task to save rendered content to db; call tasks on delay 2023-07-03 13:19:55 -07:00
Lacey Williams Henschel
2fa07cef36 Add clear by cache key to view 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
99e1c46d8e Delete content by cache key from redis and db 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
afb511dfd4 Add view to clear cache by content type 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
a06d9856c0 Add task to clear all rendered content cache 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
ba53f5053f Clear redis cache by content type 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
aa0bab9b89 Delete RenderedContent objects by content type 2023-06-27 15:25:56 -07:00
Natalia
2e0f083dad Run pre-commit checks before landing changes.
Add `pre-commit` to the requirements list, and updated the version it uses.
Also removed the `sample.adoc` since the relevant test always creates it (and
it was causing spurious lint check errors).
2023-06-14 16:37:06 -03:00
Lacey Williams Henschel
825dbc019b Cache asciidoc content in db (Part of #394)
- Add RenderedContent model and related helper methods
- Change StaticContentView `get()` logic to try the cache, then the db, then S3
- Change StaticContentView to update db appropriately
- Refactoring for readability/maintainability
2023-06-09 14:43:05 -07:00
Lacey Williams Henschel
a447ffd7ed Strip footer from asciidoc content (Part of #394) 2023-06-07 14:17:06 -07:00
Lacey Williams Henschel
4e26f55dd1 Extract content of HTML body from rendered asciidoc content (Part of #394)
- Make web service depend on redis
- Add function to extract body from html content
- In view, extract body before returning converted ascciidoc in response
2023-06-07 13:11:20 -07:00
Natalia
9ec7a37bb5 Rework of news entries ACLs.
This includes a helper to efficiently query for all moderators.
2023-06-06 17:04:26 -03:00
Lacey Williams Henschel
44aafb8a1e Linter 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
b183c5bf44 Add option to delete temp file 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
a3cdcf097c Add comments, cleanup 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
624cbe6525 Serve asciidoc content from template, refactor tests 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
60713d0c37 Return converted html from task 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
e84b1d1682 Add function to get content type 2023-06-06 11:14:50 -07:00