Skip to content

Commit 5432160

Browse files
authored
Remove docs app from stable branch, keep docs/content/ for npm releases (#1771)
The docs Next.js app is deployed only from main. Remove the app code (components, layouts, configs, styles) from stable to eliminate cherry-pick conflicts during backports. Keep docs/content/ which contains the markdown files that are bundled into npm packages via prepack scripts for AI agent consumption.
1 parent 3737caa commit 5432160

210 files changed

Lines changed: 37 additions & 24324 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.

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"baseBranch": "stable",
2323
"updateInternalDependencies": "patch",
2424
"ignore": [
25-
"docs",
2625
"nextjs-turbopack",
2726
"nextjs-webpack",
2827
"workflow-sdk-compiler-playground",

.github/workflows/docs-checks.yml

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# The docs/ directory does not exist on the stable branch.
2+
# Docs are deployed only from main. This workflow is kept as a
3+
# no-op on stable so that any branch protection rules referencing
4+
# these job names still pass.
15
name: Docs Checks
26

37
on:
@@ -16,74 +20,14 @@ concurrency:
1620
jobs:
1721
docs-typecheck:
1822
name: Docs Code Samples
23+
if: false
1924
runs-on: ubuntu-latest
20-
timeout-minutes: 5
21-
env:
22-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
23-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
2425
steps:
25-
- name: Checkout Repo
26-
uses: actions/checkout@v4
27-
28-
- name: Setup pnpm
29-
uses: pnpm/action-setup@v3
30-
with:
31-
version: 10.14.0
32-
33-
- name: Setup Node.js 22.x
34-
uses: actions/setup-node@v4
35-
with:
36-
node-version: 22.x
37-
cache: "pnpm"
38-
39-
- name: Install Dependencies
40-
run: pnpm install --frozen-lockfile
41-
42-
- name: Build packages
43-
run: pnpm build
44-
45-
- name: Type-check documentation code samples
46-
run: pnpm test:docs
26+
- run: true
4727

4828
docs-preview-smoke:
4929
name: Docs Preview Smoke Checks
30+
if: false
5031
runs-on: ubuntu-latest
51-
timeout-minutes: 5
52-
env:
53-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
54-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
5532
steps:
56-
- name: Checkout Repo
57-
uses: actions/checkout@v4
58-
59-
- name: Setup pnpm
60-
uses: pnpm/action-setup@v3
61-
with:
62-
version: 10.14.0
63-
64-
- name: Setup Node.js 22.x
65-
uses: actions/setup-node@v4
66-
with:
67-
node-version: 22.x
68-
cache: "pnpm"
69-
70-
- name: Install Dependencies
71-
run: pnpm install --frozen-lockfile
72-
73-
- name: Waiting for the Docs Vercel deployment
74-
id: waitForDocsDeployment
75-
uses: ./.github/actions/wait-for-vercel-project
76-
with:
77-
team-id: "team_nLlpyC6REAqxydlFKbrMDlud"
78-
project-id: "prj_aLMkVj1S4Alk08AThC76nXgwbLEB"
79-
vercel-token: ${{ secrets.VERCEL_DOCS_TOKEN }}
80-
timeout: 1000
81-
check-interval: 15
82-
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
83-
84-
- name: Verify OpenGraph images and sitemap
85-
run: pnpm --filter docs test:smoke
86-
env:
87-
DEPLOYMENT_URL: ${{ steps.waitForDocsDeployment.outputs.deployment-url }}
88-
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
89-
VERCEL_DOCS_TOKEN: ${{ secrets.VERCEL_DOCS_TOKEN }}
33+
- run: true

.github/workflows/lint.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,11 @@ jobs:
3636
exit 1
3737
fi
3838
39+
# The docs/ directory does not exist on the stable branch.
40+
# This job is kept as a no-op so branch protection rules still pass.
3941
docs-links:
4042
name: Docs Links
43+
if: false
4144
runs-on: ubuntu-latest
42-
env:
43-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
44-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
4545
steps:
46-
- name: Checkout Repo
47-
uses: actions/checkout@v4
48-
49-
- name: Setup pnpm
50-
uses: pnpm/action-setup@v3
51-
with:
52-
version: 10.14.0
53-
54-
- name: Setup Node.js 22.x
55-
uses: actions/setup-node@v4
56-
with:
57-
node-version: 22.x
58-
cache: "pnpm"
59-
60-
- name: Setup Bun
61-
uses: oven-sh/setup-bun@v2
62-
63-
- name: Install Dependencies
64-
run: pnpm install --frozen-lockfile
65-
66-
- name: Validate docs links
67-
run: bun ./scripts/lint.ts
68-
working-directory: docs
46+
- run: true

docs/.gitignore

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

docs/LICENSE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/README.md

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

docs/app/[lang]/(home)/components/code-block.tsx

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

docs/app/[lang]/(home)/components/cta.tsx

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

docs/app/[lang]/(home)/components/features.tsx

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

0 commit comments

Comments
 (0)