Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 4 additions & 7 deletions .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ jobs:
id: generate-docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
HEAD_REF: ${{ github.head_ref }}
run: |
# Omit --id so each run gets a fresh preview hash. Pinning the id to the
# branch name makes the CLI reuse the same preview deploy across pushes,
# which masks staleness when reviewers re-test after a force-push or a
# CDN cache pin to old content. A throwaway preview per push is cheap
# and lines up 1:1 with the comment posted by this workflow.
OUTPUT=$(fern generate --docs --preview --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
echo "$OUTPUT"
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
echo "preview_url=$URL" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -84,4 +80,5 @@ jobs:
uses: thollander/actions-comment-pull-request@v2.4.3
with:
filePath: comment.md
mode: create
comment_tag: preview-docs
mode: upsert
5 changes: 0 additions & 5 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ instances:

title: Fern Documentation

translations:
- lang: en
default: true
- lang: zh

ai-search:
location:
- docs
Expand Down
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "fern",
"version": "5.7.1"
"version": "4.62.3"
}
55 changes: 0 additions & 55 deletions fern/translations/zh/fern/docs.yml

This file was deleted.

169 changes: 0 additions & 169 deletions fern/translations/zh/fern/products/api-def/api-def.yml

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions fern/translations/zh/fern/products/dashboard/dashboard.yml

This file was deleted.

Loading
Loading