Skip to content

Commit 4fbf5d4

Browse files
authored
Revert "feat: add Simplified Chinese (zh) translations for docs product" (#5313)
1 parent 3fe25c0 commit 4fbf5d4

1,814 files changed

Lines changed: 5 additions & 61904 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/preview-docs.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ jobs:
3030
id: generate-docs
3131
env:
3232
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
33+
HEAD_REF: ${{ github.head_ref }}
3334
run: |
34-
# Omit --id so each run gets a fresh preview hash. Pinning the id to the
35-
# branch name makes the CLI reuse the same preview deploy across pushes,
36-
# which masks staleness when reviewers re-test after a force-push or a
37-
# CDN cache pin to old content. A throwaway preview per push is cheap
38-
# and lines up 1:1 with the comment posted by this workflow.
39-
OUTPUT=$(fern generate --docs --preview --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
35+
OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
4036
echo "$OUTPUT"
4137
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
4238
echo "preview_url=$URL" >> $GITHUB_OUTPUT
@@ -84,4 +80,5 @@ jobs:
8480
uses: thollander/actions-comment-pull-request@v2.4.3
8581
with:
8682
filePath: comment.md
87-
mode: create
83+
comment_tag: preview-docs
84+
mode: upsert

fern/docs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ instances:
1010

1111
title: Fern Documentation
1212

13-
translations:
14-
- lang: en
15-
default: true
16-
- lang: zh
17-
1813
ai-search:
1914
location:
2015
- docs

fern/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization": "fern",
3-
"version": "5.7.1"
3+
"version": "4.62.3"
44
}

fern/translations/zh/fern/docs.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

fern/translations/zh/fern/products/api-def/api-def.yml

Lines changed: 0 additions & 169 deletions
This file was deleted.

fern/translations/zh/fern/products/cli-api-reference/cli-api-reference.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

fern/translations/zh/fern/products/dashboard/dashboard.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)