Repository navigation
docs: publish only the pages that match 3.x, and deploy on release tags - #543
Merged
Merged
Conversation
The docs site still serves 2.x, and the repo homepage links to it. On main, 33 nav pages use names that 3.x does not export, and the python blocks of 39 pages fail. The site now publishes 3 pages: the README (included with snippets, so CI checks its code), a new 3.x installation page, and the API reference. exclude_docs keeps the 2.x pages out of the build. They stay in docs/ until someone updates them. tests/test_docs_site.py loads mkdocs.yml, takes each published page, and checks that it uses only fd.__all__ names and that its python blocks run. docs.yml runs that test, then deploys on each v* tag, so the site matches the version on PyPI. The README LICENSE links are now absolute, so they work on the site.
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
The docs site (https://freshcode-org.github.io/freshdata/, also the repo homepage link) serves 2.x. The last deploy to
gh-pageswase8b3740on 2026-10-14.docs.ymlhas its push trigger turned off. On main, most pages in the nav describe the 2.x API:fd.__all__does not have (for examplecompare_plans,validate,clean_csv).NameError,ModuleNotFoundError: No module named 'freshdata.experimental',CleanConfig.__init__() got an unexpected keyword argument 'preserve_columns').This is launch gate G5 in the adoption audit.
Change
mkdocs.yml: the nav has 3 pages: Home, Installation, API reference.exclude_docskeeps the 2.x pages out of the build. They stay indocs/until someone updates them.docs/index.mdincludesREADME.mdwithpymdownx.snippets. The README code is already checked in CI, so the home page cannot drift from it.docs/installation.mdis new 3.x text: Python 3.10+, thepolarsandmigrateextras, and a check snippet.docs.ymlruns the new check, then deploys on eachv*tag. So the site shows the version thatpip install freshdata-cleanerinstalls.README.md: the twoLICENSElinks are absolute, so they work on the site.Check
tests/test_docs_site.pyloadsmkdocs.ymlwith the mkdocs API and takes each page that the build publishes. For each page, it checks two things:fd.__all__names.scripts/check_readme_blocks.py).The test skips when mkdocs-material is not installed.
Before (main
c386c8d):After:
mkdocs build --strictbuilds 3 pages. Full suite:103 passed, coverage 96.15%.ruff check .is clean.Public behavior change
No library change. The docs site loses the 2.x pages when the next tag deploys it.
CHANGELOG.mdrecords this under[3.0.0]/ Added.