docs: remove docs code reference#674
Conversation
|
MkDocs preview: https://237e0a14.dd-docs-preview.pages.dev Fern preview: https://nvidia-preview-pr-674.docs.buildwithfern.com/nemo/datadesigner
|
PR #674 Review —
|
Greptile SummaryThis PR removes the generated code reference documentation from both MkDocs and Fern, retiring the py2fern/mkdocstrings pipeline and all associated nav entries, redirects, dependency declarations, and Makefile targets. The
|
| Filename | Overview |
|---|---|
| fern/scripts/fern-published-branch.py | Core logic change: replaces sync_code_reference_archive with remove_retired_reference_archive; new remove_navigation_section helper correctly identifies YAML nav section boundaries. String constants deliberately obfuscated to avoid self-matching in keyword sweep. |
| fern/docs.yml | Removes the libraries: block and all code_reference redirects; surviving redirects are not affected. |
| fern/versions/latest.yml | Removes the entire Code Reference section (70 lines) from navigation; no other nav entries affected. |
| mkdocs.yml | Removes mkdocstrings plugin config, code_reference nav entries, watch paths, and mkdocstrings.css; clean removal with no dangling references. |
| pyproject.toml | Drops mkdocstrings-python, mkdocstrings, and py2fern from docs dependencies; consistent with removal of all generation tooling. |
| .github/workflows/docs-preview.yml | Removes DOCS_PY2FERN env var arg from check-fern-docs make call; safe removal. |
| Makefile | Removes generate-fern-api-reference targets and associated variable definitions; prepare-fern-docs now only depends on generate-fern-notebooks. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[sync_source called] --> B[clear_published_tree]
B --> C[copytree source to published]
C --> D[merge_preserved_versions\nrestores archived v*.yml + page dirs]
D --> E[remove_retired_reference_archive]
E --> E1[For each archived v*.yml:\nremove_navigation_section\nCode Reference]
E --> E2[Delete pages/code_reference dirs\nfrom archived versions]
E --> E3[Copy clean concept/plugin pages\nfrom latest to v*/pages/]
E1 --> F[materialize_version_nav_pages]
E2 --> F
E3 --> F
F --> G[restore_versions_block]
G --> H[validate_redirect_targets]
H --> I[write_publish_metadata]
Reviews (1): Last reviewed commit: "docs: remove docs code reference" | Re-trigger Greptile
📋 Summary
Removes the generated code reference docs from both MkDocs and Fern so the docs no longer publish or link to the retired API reference surface. This also removes the generation plumbing and adds publish-branch cleanup for archived Fern versions so stale reference pages do not survive in docs-website archives.
🔗 Related Issue
N/A
🔄 Changes
🗑️ Removed
docs/code_reference/**pages, Fernfern/versions/latest/pages/code_reference/**pages, mkdocstrings CSS, and py2fern normalization script.🔧 Changed
fern/scripts/fern-published-branch.pyto strip retired reference archive nav/pages and refresh affected archived concept/plugin pages during publish sync.🔍 Attention Areas
fern/scripts/fern-published-branch.py- Archived Fern versions copy cleaned current versions of the affected concept/plugin pages during publish sync so stale reference links are removed from historical docs.🧪 Testing
.venv/bin/ruff check --fix ..venv/bin/ruff format .make check-fern-docspasses with 0 errors and 2 existing warnings.venv/bin/mkdocs buildpasses with existing docs warningsgit diff --checkmake check-fern-docsmake testpasses (N/A - docs-only; not run)✅ Checklist