Loading...
Loading...
Maintain the NeMo Gym Fern docs site — add, update, move, or remove pages under fern/. Use for any documentation change. Triggered by: "edit docs", "add doc page", "update docs", "rename page", "fix broken link", "add redirect", "preview docs", "publish docs", any request that touches `fern/`.
npx skill4agent add nvidia/skills nemo-gym-docsfern/fern/fern/versions/latest/mainmain.ymlfern/versions/v0.2.1/fern/versions/latest/latest.yml/latest/.../<current-ga>/...fern/versions/latest/fern/
├── fern.config.json # Org + Fern CLI version (currently 4.80.3)
├── package.json # `npm run dev|check|generate` — wraps `npx -y fern-api@latest`
├── docs.yml # Site config: instances, versions, tabs, redirects, libraries
├── versions/
│ ├── latest.yml # GA alias — symlink to the current GA's yml (currently v0.2.1.yml)
│ ├── main.yml # Nav tree for the bleeding-edge train (mounts ./latest/pages)
│ ├── latest/pages/ # MDX content for the bleeding-edge train (slug: main)
│ ├── v0.2.1.yml # Nav tree for the 0.2.1 GA snapshot
│ └── v0.2.1/pages/ # MDX content for the 0.2.1 GA snapshot
├── components/ # Custom TSX (CTAButtons, NavButton, CustomFooter)
├── assets/ # Images, SVGs, favicon
├── main.css # Global theme overrides (NVIDIA green, badge spacing, etc.)
└── product-docs/ # GENERATED library reference (gitignored)File system Published URL
───────────────────────────────────────────────────── ──────────────────────────────────
fern/versions/latest/pages/get-started/quickstart.mdx docs.nvidia.com/nemo/gym/main/get-started/quickstart
fern/versions/v0.2.1/pages/get-started/quickstart.mdx docs.nvidia.com/nemo/gym/v0.2.1/get-started/quickstart
docs.nvidia.com/nemo/gym/latest/get-started/quickstart (GA alias).mdxfern/versions/latest/pages/fern/versions/latest/pages/<subdirectory>/<filename>.mdx---
title: "<Page Title>"
description: "One-line SEO description (or empty string)"
position: 3
---
# <Page Title>
<content>main.ymltitle-source: frontmatter- page:section:fern/versions/main.ymlv0.2.1/grep -rnfern/versions/latest/pages/fern/versions/latest/pages/v0.2.1/title:title-source: frontmatter- page:git mvpath:main.ymlfern/versions/latest/pages/fern/docs.ymlgrep -rn "<filename>" fern/versions/latest/pages --include="*.mdx"git rmfern/versions/latest/pages/- page:main.ymlfern/docs.ymlpages/fern/versions/v0.2.1/pages/latest.ymlfern/versions/latest/pages/get-started/rollout-collection.mdx---
title: "Collect Rollouts"
description: "Run the agent against your dataset and write results to JSONL"
position: 4
---
# Collect Rollouts
<content>get-startedmain.ymltitle-source: frontmatterposition: 4cd fern && npm run check && npm run dev/main/get-started/rollout-collection/main/get-started/setup/main/get-started/detailed-setupgit mv fern/versions/latest/pages/get-started/setup.mdx fern/versions/latest/pages/get-started/detailed-setup.mdxfern/docs.ymlredirects:
- source: "/main/get-started/setup"
destination: "/main/get-started/detailed-setup"grep -rn "/get-started/setup" fern/versions/latest/> [!NOTE]| Purpose | Component |
|---|---|
| Neutral aside | |
| Helpful tip | |
| Informational callout | |
| Warning | |
| Error / danger | |
| Card grid on index pages | |
| Status/scope tag inside a Card | |
fern/assets/pages/<Cards><Card><Badge>successnotetipwarningerrorinfolaunchcheck<Badge minimal outlined>...</Badge><Card>main.css.fern-card .fern-docs-badgestyle=<Cards>
<Card title="Quickstart" href="/main/get-started/quickstart">
Install, start servers, and collect your first rollouts in one page.
<Badge intent="success" minimal outlined>start here</Badge> <Badge minimal outlined>5 min</Badge>
</Card>
</Cards>---
title: "<Page Title>" # required — used for nav and <h1>
description: "" # required (may be empty string) — SEO
position: 1 # optional — orders auto-discovered pages within a folder
---# <Page Title>title-source: frontmattertitle:nvidianpx -y fern-api@latest login # opens browser → sign in with your @nvidia.com Google accountfern/npx -y fern-api@latestnpm run check # `fern check` — YAML + frontmatter validation
npm run dev # `fern docs dev` — localhost:3000 hot-reload previewfern check/latest/aboutdocs.ymllatest.ymlproduct-docs/npm run generate:library # `fern docs md generate`git add fern/
git commit -s -m "docs: <add|update|remove> <page-title>"fern/**.github/workflows/fern-docs-preview-comment.yml ┌─ fern-docs-ci.yml → fern check
PR (touches fern/) ─┼─ fern-docs-preview-build.yml → upload fern/ artifact (no secrets)
└─ fern-docs-preview-comment.yml → 🌿 preview URL comment
Push to main (touches docs/** or fern/**) → publish-fern-docs.yml → docs.nvidia.com/nemo/gym
Tag push (docs/v*) → publish-fern-docs.yml → docs.nvidia.com/nemo/gym
Manual dispatch → publish-fern-docs.yml → docs.nvidia.com/nemo/gymDOCS_FERN_TOKENfern token.github/workflows/publish-fern-docs.ymlmaindocs/**fern/**docs/v*docs/v<MAJOR>.<MINOR>.<PATCH>git tag docs/v0.3.0
git push origin docs/v0.3.0docs.nvidia.com/nemo/gym/latest/... → GA alias (currently mirrors v0.2.1)
docs.nvidia.com/nemo/gym/main/... → bleeding-edge train (folder: ./latest/pages)
docs.nvidia.com/nemo/gym/v0.2.1/... → 0.2.1 GA snapshotv0.3.0cp -r fern/versions/latest fern/versions/v0.3.0cp fern/versions/main.yml fern/versions/v0.3.0.yml./latest/./v0.3.0/fern/versions/latest.ymlcd fern/versions && ln -sfn v0.3.0.yml latest.ymlfern/docs.ymlversions:display-name: "0.3.0"slug: v0.3.0availability: stablefern/versions/latest/pages/main.ymldocs/v0.3.0| Symptom | Fix |
|---|---|
| 2-space indent; |
| Page 404 in preview | |
Broken-link warning for | False positive in |
| Wrap multi-element MDX content in |
| Old URL breaks (page renamed/moved) | Add a |
| Library reference missing | |
| Broken image | Path is relative to the MDX file; check |
| Card badges have no spacing | Don't add inline styles — |
| They shouldn't — |
| File | Purpose |
|---|---|
| Site config, versions, redirects, libraries |
| GA alias — symlink to the current GA's yml |
| Nav tree for the bleeding-edge train (mounts |
| Nav tree for the 0.2.1 GA snapshot |
| MDX content for a version |
| Custom TSX (CTAButtons, NavButton, CustomFooter) |
| Shared images, SVGs, favicon |
| Global theme overrides — NVIDIA green, card/badge spacing |
| `npm run check |
| CI: check, preview build, preview comment |
| CI: publish to docs.nvidia.com/nemo/gym |