Skip to content

docs: update seeds of seed node both network and update mainnet versi… #104

docs: update seeds of seed node both network and update mainnet versi…

docs: update seeds of seed node both network and update mainnet versi… #104

Workflow file for this run

name: i18n parity
# en is the source of truth. This gate fails when an en page has no cn/ko
# counterpart (blocking) and annotates stale translations (advisory). It also
# builds the site to catch broken links / orphaned sidebar entries across all
# three locales.
on:
pull_request:
paths:
- 'docs/pages/**'
- 'docs/sidebar.json'
- 'docs/lib/structured-data.ts'
- 'docs/lib/verify-i18n.mjs'
- 'docs/lib/verify-structured-data.mts'
- 'docs/i18n-allowlist.json'
- 'package.json'
- 'package-lock.json'
workflow_dispatch:
jobs:
parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- run: npm ci
- name: Detect changed en pages
id: changed-en
if: github.event_name == 'pull_request'
run: |
BASE="${{ github.event.pull_request.base.sha }}"
if git diff --name-only "$BASE"...HEAD -- 'docs/pages/en' | grep -q '\.mdx$'; then
echo 'changed=true' >> "$GITHUB_OUTPUT"
else
echo 'changed=false' >> "$GITHUB_OUTPUT"
fi
# Blocks the PR when any en page is missing a translation.
- name: Check translation parity
run: npm run i18n:check
# When English source changed, translations must be fresh before merge.
- name: Check changed English translations strictly
if: steps.changed-en.outputs.changed == 'true'
run: npm run i18n:check:strict
- name: Check structured data
run: npm run structured-data:check
# Catches broken internal links and missing sidebar targets in every locale.
- name: Build docs
run: npm run docs:build