aistore
aistore copied to clipboard
docs: add Fern preview check workflow
Summary
Adds a Fern documentation validation workflow and contributor-facing local preview/check instructions.
Changes:
- Adds
.github/workflows/fern-docs.ymlfor PR validation on Fern/docs-related changes. - Adds
make fern-generate,make fern-check,make fern-preview, andmake fern-buildtargets. - Updates
scripts/fern/generate-pages.shso local checks can create a Python API reference stub whenFERN_TOKENis not available. - Adds contributor documentation for local Fern preview and validation.
Related
- Jira: NSVISCS-11564
- Companion IA-only PR: https://github.com/NVIDIA/aistore/pull/327
Verification
bash scripts/fern/generate-pages.shnpm exec --yes --package [email protected] -- fern check- Result: 0 errors, 1 existing warning for missing generated
./pages/pythonwhenfern docs md generateis not run locally.
- Result: 0 errors, 1 existing warning for missing generated
git diff --check
Note: full make fern-generate/Go-adjacent verification is still limited in this local environment because go is not installed.