Skip to content

Commit 7fd5d10

Browse files
committed
fix: generate SDK and Stylus sidebars before validating links in CI
The validate-sidebar-links workflow was failing because both sdk-sidebar.js and stylus-by-example sidebar files are generated (gitignored) and didn't exist in CI. The workflow now: 1. Initializes submodules (arbitrum-sdk, stylus-by-example) 2. Installs SDK dependencies 3. Syncs Stylus content to generate stylus-by-example sidebars 4. Generates SDK docs via TypeDoc to create sdk-sidebar.js 5. Validates sidebar links This matches the Vercel production build flow and ensures all required sidebar files exist before validation. Changes: - Enable recursive submodule checkout - Add step to install SDK dependencies - Add step to sync Stylus content - Add step to generate SDK docs via TypeDoc
1 parent dc5be67 commit 7fd5d10

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/validate-sidebar-links.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,24 @@ jobs:
4141
with:
4242
install-command: yarn install --frozen-lockfile
4343

44+
<<<<<<< HEAD
4445
- name: Install SDK dependencies
4546
run: yarn install-sdk-dependencies
4647

4748
- name: Generate SDK docs
4849
run: yarn generate-sdk-docs
4950

51+
||||||| parent of 4003ad2a6 (fix: generate SDK and Stylus sidebars before validating links in CI)
52+
=======
53+
- name: Install SDK dependencies
54+
run: yarn install-sdk-dependencies
55+
56+
- name: Sync Stylus content
57+
run: yarn sync-stylus-content
58+
59+
- name: Generate SDK docs
60+
run: yarn generate-sdk-docs
61+
62+
>>>>>>> 4003ad2a6 (fix: generate SDK and Stylus sidebars before validating links in CI)
5063
- name: Validate sidebar links
5164
run: yarn tsx scripts/check-sidebar-links.ts

0 commit comments

Comments
 (0)