Skip to content

docs: publish only the pages that match 3.x, and deploy on release tags - #543

Merged
JohnnyWilson16 merged 1 commit into
mainfrom
docs/site-3x-jwd
Nov 28, 2026
Merged

JohnnyWilson16 merged 1 commit into
mainfrom
docs/site-3x-jwd

Conversation

@JohnnyWilson16

Copy link
Copy Markdown
Contributor

Cause

The docs site (https://freshcode-org.github.io/freshdata/, also the repo homepage link) serves 2.x. The last deploy to gh-pages was e8b3740 on 2026-10-14. docs.yml has its push trigger turned off. On main, most pages in the nav describe the 2.x API:

  • 33 published pages use names that fd.__all__ does not have (for example compare_plans, validate, clean_csv).
  • The python blocks of 39 published pages fail (for example 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_docs keeps the 2.x pages out of the build. They stay in docs/ until someone updates them.
  • docs/index.md includes README.md with pymdownx.snippets. The README code is already checked in CI, so the home page cannot drift from it.
  • docs/installation.md is new 3.x text: Python 3.10+, the polars and migrate extras, and a check snippet.
  • docs.yml runs the new check, then deploys on each v* tag. So the site shows the version that pip install freshdata-cleaner installs.
  • README.md: the two LICENSE links are absolute, so they work on the site.

Check

tests/test_docs_site.py loads mkdocs.yml with the mkdocs API and takes each page that the build publishes. For each page, it checks two things:

  1. The page uses only fd.__all__ names.
  2. The page's python blocks run (with scripts/check_readme_blocks.py).

The test skips when mkdocs-material is not installed.

Before (main c386c8d):

E         Left contains 33 more items:
E         {'docs/ai-copilot.md': ['compile_context', 'detect_pii', 'enterprise', 'experimental']}
E         {'docs/backends.md': ['execution', 'plan']}
E         Left contains 39 more items:
E         {'docs/ai-copilot.md': "ModuleNotFoundError: No module named 'freshdata.experimental'"}
E         {'docs/cleaning-engine.md': "NameError: name 'fd' is not defined. Did you mean: 'id'?"}...
2 failed in 16.68s

After:

2 passed in 2.05s

mkdocs build --strict builds 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.md records this under [3.0.0] / Added.

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.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dff9d72e-e511-47b3-b50f-ea59beabccbe
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JohnnyWilson16
JohnnyWilson16 merged commit c0d175d into main Nov 28, 2026
14 checks passed
@JohnnyWilson16
JohnnyWilson16 deleted the docs/site-3x-jwd branch November 28, 2026 16:42
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.

1 participant