-
Notifications
You must be signed in to change notification settings - Fork 78
Add Fern docs platform: scaffolding, CI/CD, ecosystem diagram, and new pages #2200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 46 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
0f87cf9
Add Fern docs scaffolding (initial migration checkpoint)
hogepodge 38b4e29
New pages:
hogepodge c2f772b
Add interactive ecosystem stack diagram (JAX on NVIDIA GPU Stack page)
hogepodge cb8b7ce
Update fern/README.md with accurate build instructions
hogepodge b765789
Replace build script with static stack.ts import for ecosystem diagram
hogepodge 1991ef6
fern/README.md: clarify fern login requires CLI on PATH
hogepodge bd75e35
Updated ecosystem diagram
hogepodge e310a5e
Update stack.ts
zhenghax 051fb5b
Update EcosystemDiagram.tsx
zhenghax 3c65dd6
Update stack.ts
zhenghax 17c8dbe
Update stack.ts
zhenghax 4a1ac6d
Update stack.ts
zhenghax 2765b77
Update EcosystemDiagram.tsx
zhenghax 8126542
Update stack.ts
zhenghax e43e302
Update EcosystemDiagram.tsx
zhenghax ac9fa75
Update stack.ts
zhenghax afe8c52
Update stack.ts
zhenghax cabad5f
Update stack.ts
zhenghax a275028
Update stack.ts
zhenghax 66c7cbf
Update stack.ts
zhenghax 522ef94
Update stack.ts
zhenghax 6630bdf
Update stack.ts
zhenghax f31ef89
Update stack.ts
zhenghax ba14825
Update EcosystemDiagram.tsx
zhenghax b6d95a9
Diagram visual polish: purple JAX chips, 20% opacity, darker borders
hogepodge d070fd7
Add hardware project descriptions; collapse to two columns
hogepodge 44fe703
Enable custom domain and add Fern CI/CD workflows
hogepodge d8907c8
Fix broken links and remove orphaned projects from diagram
hogepodge d230e25
Matched text to docs description
hogepodge ff29484
Add outline and guides/ to .gitignore
hogepodge d8f5e96
Merge branch 'main' into fern-migration
zhenghax 8786bc6
Update fern/docs.yml
zhenghax c230cfe
Update fern/docs.yml
zhenghax fd09e2c
Update fern/docs.yml
zhenghax cf9fe83
Update fern/docs.yml
zhenghax 9d07fb5
Update fern/docs.yml
zhenghax cd5cc01
Merge branch 'main' into fern-migration
zhenghax 913d020
Update README structure
aybchan fc8015f
Add detail to clarify nightly build and NGC release
aybchan ccdc125
Remove scale container sections
aybchan 143d2e1
Update fern.config.json
zhenghax efcabe3
Update package.json
zhenghax f5cbdcb
Merge branch 'main' into fern-migration
zhenghax 7585b81
Add push trigger for pull request branches
aybchan 1c95c32
Add push trigger for pull request branches
aybchan ec49507
Fix Fern preview url parsing
aybchan b72cbf7
Update fern workflows
aybchan 35c8f70
Update main CI trigger to exclude fern
aybchan a78a403
Merge branch 'main' into aybchan/fern-migration
aybchan 13d695a
Set ignore paths for nsys test
aybchan 7befdf6
Add diff against main check
aybchan 0f237b2
Set ignore paths for nsys test
aybchan b1f5c2e
Parse PR issue number from copy-pr-bot branch
aybchan edde4eb
Set triage, nsys workflow paths
aybchan 251c7f8
Update README with 26.06 release notes
aybchan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Validates Fern docs configuration and checks for broken internal links on PRs. | ||
| # Runs without a FERN_TOKEN — suitable for untrusted forks. | ||
| name: Fern Docs CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "pull-request/[0-9]+" | ||
| pull_request: | ||
| paths: | ||
| - 'docs/**' | ||
| - 'fern/**' | ||
| - 'package.json' | ||
|
|
||
| jobs: | ||
| validate: | ||
| name: Validate docs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: fern check | ||
| run: npm run docs:check | ||
|
|
||
| - name: Check broken links | ||
| run: npx fern docs broken-links | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Generates a shareable Fern preview URL for every docs PR and posts it as a comment. | ||
| # Requires the FERN_TOKEN repository secret. | ||
| name: Fern Docs Preview | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
|
aybchan marked this conversation as resolved.
|
||
| - "pull-request/[0-9]+" | ||
| pull_request: | ||
| paths: | ||
| - 'docs/**' | ||
| - 'fern/**' | ||
| - 'package.json' | ||
|
aybchan marked this conversation as resolved.
Outdated
|
||
|
|
||
| jobs: | ||
| preview: | ||
| name: Generate preview | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: Generate preview | ||
| id: preview | ||
| run: | | ||
| output=$(npm run docs:preview 2>&1) | ||
| echo "$output" | ||
| url=$(printf '%s\n' "$output" \ | ||
| | grep -oP 'https://[A-Za-z0-9./?&=_:%#~+-]*buildwithfern\.com[A-Za-z0-9./?&=_:%#~+-]*' \ | ||
| | tail -n 1 \ | ||
| | perl -CS -pe 's/\x{200B}//g; s/%E2%80%8B$//i') | ||
|
|
||
| echo "url=$url" >> "$GITHUB_OUTPUT" | ||
| env: | ||
| FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
|
|
||
| - name: Post preview URL | ||
| if: steps.preview.outputs.url != '' | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: '📖 **Docs preview:** ${{ steps.preview.outputs.url }}' | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Publishes docs to production on every push to main that touches docs/fern, | ||
| # and on manual dispatch. Requires the FERN_TOKEN repository secret. | ||
| name: Publish Fern Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'docs/**' | ||
| - 'fern/**' | ||
| - 'package.json' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish docs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: Publish | ||
| run: npm run docs:publish | ||
| env: | ||
| FERN_TOKEN: ${{ secrets.FERN_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Node / npm (project-local tooling environment for docs) | ||
| node_modules/ | ||
| npm-debug.log* | ||
| .npm/ | ||
|
|
||
| # Fern build output & cache | ||
| .fern/ | ||
| .preview/ | ||
|
|
||
| # OS / editor | ||
| .DS_Store | ||
|
|
||
| # Local working files (not for commit) | ||
| docs/ecosystem/*-outline.md | ||
| guides/ | ||
|
aybchan marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Pin exact versions when adding dependencies, for reproducible installs. | ||
| save-exact=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| .PHONY: docs-dev docs-restart docs-wait docs-check docs-preview | ||
|
|
||
| docs-dev: | ||
| npm run docs:dev | ||
|
|
||
| docs-restart: | ||
| -pkill -f "fern docs dev" 2>/dev/null || true | ||
| sleep 1 | ||
| npm run docs:dev | ||
|
|
||
| # Poll until the dev server responds — run this after backgrounding docs-restart | ||
| docs-wait: | ||
| @echo "Waiting for http://localhost:3000 ..." | ||
| @until curl -sf http://localhost:3000 >/dev/null 2>&1; do sleep 3; done | ||
| @echo "Server ready." | ||
|
|
||
| docs-check: | ||
| npm run docs:check | ||
|
|
||
| docs-preview: | ||
| npm run docs:preview |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.