Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize legacy doc libs pages fetched directly from S3. #544

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

nessita
Copy link
Collaborator

@nessita nessita commented Jul 20, 2023

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.

Fixes #534.

@nessita nessita force-pushed the 534-modernize-doc-libs-pages branch 2 times, most recently from 8889405 to 0abf133 Compare July 21, 2023 20:01
@nessita nessita force-pushed the 534-modernize-doc-libs-pages branch from 8b8c92b to 09ac86a Compare July 28, 2023 01:44
@nessita nessita changed the title WIP - Modernize legacy doc libs pages fetches directly from S3. Modernize legacy doc libs pages fetched directly from S3. Jul 28, 2023
@nessita nessita marked this pull request as ready for review July 28, 2023 01:45
@nessita nessita force-pushed the 534-modernize-doc-libs-pages branch from 09ac86a to 02e74c4 Compare July 28, 2023 01:58
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.
@nessita nessita force-pushed the 534-modernize-doc-libs-pages branch from 02e74c4 to 6d24b44 Compare July 28, 2023 03:06
@nessita nessita merged commit 32ac985 into develop Jul 28, 2023
4 checks passed
@nessita nessita deleted the 534-modernize-doc-libs-pages branch July 28, 2023 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation header replacement
1 participant