Skip to content
Closed
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
41 changes: 41 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Link check

on:
pull_request:

# No write permissions needed — read-only check.
permissions:
contents: read

jobs:
check-links:
name: Check internal & external links
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run link checker
run: node scripts/check-links.mjs --report link-check-report.json

- name: Upload failure report
if: failure()
uses: actions/upload-artifact@v4
with:
name: link-check-report
path: link-check-report.json
retention-days: 14
28 changes: 28 additions & 0 deletions .github/workflows/snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ jobs:
- name: Check nav coverage
run: pnpm run check:nav-coverage

# ── Export path verification ────────────────────────────────────────────────
# Enumerates every import path and named symbol documented in the MDX files,
# then confirms each one exists in @wraith-protocol/sdk for both ESM and CJS.
# Fails the PR if docs and package exports diverge.
check-exports:
name: Verify documented SDK export paths (ESM + CJS)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Check documented export paths
run: pnpm run check:exports

stellar-testnet-snippets:
name: Stellar snippet testnet validation
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@
"groups": [
{
"group": "Quickstarts",
"pages": ["guides/quickstarts/rust"]
"pages": [
"guides/quickstarts/python",
"guides/quickstarts/rust"
]
},
{
"group": "Guides",
Expand Down
Loading
Loading