96 Commits

Author SHA1 Message Date
Mohammad Nejati
7b808b63a3 Update boost-gecko script (#2041) 2025-12-15 13:30:30 -05:00
daveoconnor
240eafa5f1 Add block to direct docs path access (#2012) (#2026) 2025-12-02 17:55:00 -05:00
Greg Kaleka
83e6bc45f5 Add bsm url handling and whitepaper email capture (#1957) 2025-10-10 12:15:21 -04:00
daveoconnor
2b392f8538 Add /libraries/x.x.x redirect (#1937) (#1949) 2025-10-08 14:48:45 -07:00
daveoconnor
086bf942c0 Fix inaccurate content type decoding (#1950) (#1952) 2025-10-08 12:45:51 -07:00
daveoconnor
cb5c4ab492 Added module flagging from libraries.json (#1900) (#1926) 2025-09-30 14:35:26 -07:00
daveoconnor
63321747ed Versioned /doc/libs/x.x.x redirects (#1936) (#1938) 2025-09-30 13:18:43 -07:00
daveoconnor
8088234bf7 Refactor docs retrieval, and canonical uri addition (#1857) (#1924) 2025-09-30 08:42:27 -07:00
Greg Kaleka
a5e455a236 QR code handling (#1896) 2025-08-23 14:13:43 -04:00
Mohammad Nejati
ff6753c98f update boost.gecko script 2025-08-21 11:11:13 -04:00
Sam Darwin
aa8325f7fd Migrate Plausible data-domain from preview.boost.org to boost.org (#1890) 2025-08-20 15:44:32 -06:00
Mohammad Nejati
ccf957d08f update boost.gecko script 2025-08-20 14:03:28 -04:00
Greg Kaleka
51d309c5b7 Fix mailing list links (#1831) 2025-06-17 14:57:42 -04:00
Greg Kaleka
ed11fcc4c0 Render library docs as close to original.boost site as possible (#1784) 2025-05-16 12:36:30 -04:00
Mohammad Nejati
6c66f653a1 Update Boost-Gecko (#1739)
LGTM!

Merged
2025-04-15 14:06:33 -07:00
Greg Kaleka
e5f808e38e Revert "wip: increase max content width across site (#1743)" (#1748) 2025-04-12 20:01:09 -04:00
Julio C. Estrada
06e00e8857 wip: increase max content width across site (#1743) 2025-04-11 14:14:32 -04:00
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