Skip to content

Keep the Fern API reference in sync with the sources - #2547

Open
imotov wants to merge 2 commits into
NVIDIA:mainfrom
imotov:issue-2546-fix-stale-docs
Open

Keep the Fern API reference in sync with the sources#2547
imotov wants to merge 2 commits into
NVIDIA:mainfrom
imotov:issue-2546-fix-stale-docs

Conversation

@imotov

@imotov imotov commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The generated API reference under fern/pages/*_api/ had drifted roughly five weeks behind the code, because fern/scripts/generate_api_reference.py is rarely run and CI can't detect it - fern/build_docs.sh regenerates before running fern check, so it validates freshly-generated output rather than what's committed.

This PR consists of two commits:

  • 7e0b8ee97 Add fern docs generation to pre-commit - adds a fern-api-reference hook that regenerates the pages and fails if they differ from what's committed, so drift can't accumulate again (CI picks this up for free via ci/check_style.sh). Also fixes four generator bugs it surfaced: the nav losing pages/api_reference.md, "Neighbors IVF RaBitQ" being rewritten to "Rabitq", private members appearing under "Public Members", and Java nav entries reading "Com Nvidia cuVS Cuvsdevicematrix" instead of CuVSDeviceMatrix. Adds --quiet so the hook's output stays readable.
  • 76f998d77 Update all stale documents - this commit is huge but it contains only the resulting regeneration.

Fixes #2546

@copy-pr-bot

copy-pr-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@imotov imotov added bug Something isn't working doc Improvements or additions to documentation non-breaking Introduces a non-breaking change labels Sep 3, 2026
@imotov

imotov commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 76f998d

@imotov imotov removed the bug Something isn't working label Sep 3, 2026
@imotov
imotov marked this pull request as ready for review September 3, 2026 03:46
@imotov
imotov requested review from a team as code owners September 3, 2026 03:46
@imotov
imotov requested a review from msarahan September 3, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Improvements or additions to documentation non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOC] Stale API Docs

1 participant