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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
OUTPUT=$(fern generate --docs --preview 2>&1) || true
OUTPUT=$(fern generate --docs --preview --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"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --docs
run: |
fern generate --docs --instance fern-api.docs.buildwithfern.com/learn
fern generate --docs --instance fern-v2.docs.buildwithfern.com/learn/v2
2 changes: 2 additions & 0 deletions fern/docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
instances:
- url: fern-v2.docs.buildwithfern.com/learn/v2
- url: fern-api.docs.buildwithfern.com/learn
custom-domain: buildfern.com/learn

title: Fern

Expand Down