Skip to content

Commit e385424

Browse files
committed
Merge branch 'devin/1760816968-update-ai-search-docs' of https://github.com/fern-api/docs into devin/1760816968-update-ai-search-docs
2 parents fbc2ca5 + d9e6878 commit e385424

File tree

200 files changed

+4810
-1397
lines changed

Some content is hidden

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

200 files changed

+4810
-1397
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# .github/workflows/auto-merge-on-release.yml in docs repo
2+
name: Auto-merge on Docs Release
3+
on:
4+
repository_dispatch:
5+
types: [docs_release]
6+
7+
jobs:
8+
merge-dependent-prs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Find and merge dependent PRs
12+
uses: actions/github-script@v7
13+
with:
14+
script: |
15+
const version = context.payload.client_payload.version;
16+
17+
// Find PRs with matching labels
18+
const { data: prs } = await github.rest.pulls.list({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
state: 'open'
22+
});
23+
24+
for (const pr of prs) {
25+
const labels = pr.labels.map(l => l.name);
26+
const hasLatestLabel = labels.includes('depends-on: docs@latest');
27+
const hasVersionLabel = labels.includes(`depends-on: docs@${version}`);
28+
29+
if (hasLatestLabel || hasVersionLabel) {
30+
// Check if PR is approved and CI passes
31+
const { data: reviews } = await github.rest.pulls.listReviews({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
pull_number: pr.number
35+
});
36+
37+
const approved = reviews.some(r => r.state === 'APPROVED');
38+
39+
if (approved) {
40+
await github.rest.pulls.merge({
41+
owner: context.repo.owner,
42+
repo: context.repo.repo,
43+
pull_number: pr.number,
44+
merge_method: 'squash'
45+
});
46+
47+
console.log(`Merged PR #${pr.number}: ${pr.title}`);
48+
}
49+
}
50+
}

.github/workflows/vale.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- '**.md'
77
- '.vale/**'
88
- '.vale.ini'
9+
- '!**/changelog/**'
910

1011
jobs:
1112
vale:
@@ -15,9 +16,22 @@ jobs:
1516
github.event.pull_request.user.login != 'github-actions'
1617
steps:
1718
- uses: actions/checkout@v4
18-
19+
20+
- name: Get changed files
21+
id: changed-files
22+
uses: tj-actions/changed-files@v41
23+
with:
24+
files: |
25+
fern/**/*.md
26+
fern/**/*.mdx
27+
files_ignore: |
28+
**/changelog/**
1929
- uses: errata-ai/vale-action@reviewdog
30+
if: steps.changed-files.outputs.any_changed == 'true'
2031
with:
21-
files: fern
32+
files: ${{ steps.changed-files.outputs.all_changed_files }}
33+
version: 3.12.0
34+
reporter: github-pr-review
35+
fail_on_error: false
2236
env:
2337
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ repos:
66
entry: bash -c 'vale --config=.vale.ini "$@"; exit 0' --
77
language: system
88
files: \.(md|mdx)$
9+
exclude: 'changelog/'
910
pass_filenames: true
10-
verbose: true
11+
verbose: true

.vale.ini

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,36 @@ mdx = md
1111
BasedOnStyles = Microsoft, FernStyles
1212

1313
# Disable specific rules
14-
Microsoft.GenderBias = NO # Not relevant for technical documentation
15-
Microsoft.Acronyms = NO # Handled in FernStyles
16-
Microsoft.Vocab = NO # Too granular for now
14+
# Not relevant for technical documentation
15+
Microsoft.GenderBias = NO
16+
17+
# Too granular
18+
Microsoft.Accessibility = NO
19+
Microsoft.Passive = NO
20+
Microsoft.Suspended = NO
21+
Microsoft.Vocab = NO
22+
Microsoft.Spacing = NO
23+
Microsoft.Semicolon = NO # Mostly just picks up code
24+
Microsoft.SentenceLength = NO # Mostly just picks up code
25+
Microsoft.Ellipses = NO # Mostly just picks up code
26+
Microsoft.Dashes = NO
27+
Microsoft.Foreign = NO
28+
Microsoft.Plurals = NO
29+
30+
# Not relevant for Fern audience
31+
Microsoft.GeneralURL = NO
32+
Microsoft.HeadingAcronyms = NO
33+
Microsoft.Terms = NO
34+
35+
# Handled in FernStyles
36+
Microsoft.Acronyms = NO
37+
Microsoft.Adverbs = NO
38+
Microsoft.Ellipses = NO
39+
Microsoft.FirstPerson = NO
40+
Microsoft.Headings = NO
41+
Microsoft.HeadingPunctuation = NO
42+
Microsoft.Hyphens = NO
43+
Microsoft.We = NO
44+
45+
1746

.vale/styles/FernStyles/Acronyms.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ exceptions:
1111
- API
1212
- ASP
1313
- CLI
14+
- CNAME
1415
- CPU
1516
- CSS
1617
- CSV
1718
- DEBUG
19+
- DNS
1820
- DOM
1921
- DPI
2022
- FAQ
@@ -54,6 +56,7 @@ exceptions:
5456
- TBD
5557
- TCP
5658
- TODO
59+
- TXT
5760
- URI
5861
- URL
5962
- USB
@@ -62,4 +65,22 @@ exceptions:
6265
- XSS
6366
- YAML
6467
- ZIP
65-
- MDX # Fern-specific
68+
- SEO
69+
- TLS
70+
- BCL
71+
- LLM
72+
- MDX
73+
- SEO
74+
- AWS
75+
- OpenRPC
76+
- gRPC
77+
- RPC
78+
- MCP
79+
- JWT
80+
- PUT
81+
- GET
82+
- POST
83+
- IDE
84+
- RBAC
85+
- SAML
86+
- OIDC

0 commit comments

Comments
 (0)