Skip to content

ci(docs): publish versioned Fern docs on release#1541

Open
mesutoezdil wants to merge 1 commit into
NVIDIA:mainfrom
mesutoezdil:feat/versioned-fern-docs
Open

ci(docs): publish versioned Fern docs on release#1541
mesutoezdil wants to merge 1 commit into
NVIDIA:mainfrom
mesutoezdil:feat/versioned-fern-docs

Conversation

@mesutoezdil
Copy link
Copy Markdown
Contributor

@mesutoezdil mesutoezdil commented May 23, 2026

After each release, fern generate --docs publishes to latest.
This PR adds a second call that also publishes a version-tagged snapshot so users on older installs can find docs that match their version.

Related Issue: Closes #1296

Testing

Workflow-only change. The fern generate --docs --version flag creates a new version entry on the Fern site using the tag as the slug. Requires FERN_TOKEN to verify end-to-end; the existing fern check step in branch-docs.yml validates the config locally.

After publishing latest, also publish a version-tagged snapshot using
`fern generate --docs --version "$RELEASE_TAG"`. RELEASE_TAG is already
resolved at workflow scope (inputs.tag or github.ref_name, e.g. v0.0.47).

Closes NVIDIA#1296
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 23, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@johntmyers
Copy link
Copy Markdown
Collaborator

Curious if we can keep the last N versions around, instead of all of them. Maybe the last 10. But users should be upgrading routinely as we are still in Alpha. For the instances where we have major breaking changes and paused releases a last N approach should suffice IMO. @drew was your original ticket intended to keep every version published indefinitely?

@mesutoezdil
Copy link
Copy Markdown
Contributor Author

Curious if we can keep the last N versions around, instead of all of them. Maybe the last 10. But users should be upgrading routinely as we are still in Alpha. For the instances where we have major breaking changes and paused releases a last N approach should suffice IMO. @drew was your original ticket intended to keep every version published indefinitely?

Apologies for jumping in: the original ticket mentions "recent tagged releases" in the version selector, so a last-N cap aligns with the intent. I can add a max versions limit if you decide on a number

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.

feat(docs): publish versioned Fern docs for releases

2 participants