Skip to content

ci: local docs checks (mintlify validate + broken-links + EN/KO parity), optional Actions workflow - #3

Merged
NetVar1337 merged 2 commits into
mainfrom
ci/docs-build-linkcheck
Oct 26, 2026
Merged

NetVar1337 merged 2 commits into
mainfrom
ci/docs-build-linkcheck

Conversation

@NetVar1337

Copy link
Copy Markdown
Member

What

Adds docs checks that run locally, plus an optional Actions workflow that calls them.

  • scripts/check-parity.mjs (Node, no dependencies): compares EN and KO by
    1. page files under en/ and ko/ (same relative paths),
    2. docs.json navigation for each language,
    3. nav ↔ files (every nav entry has a file, every page file is in the nav).
      It exits 1 and lists every mismatch.
  • scripts/ci.sh: runs mintlify validate, mintlify broken-links and the parity check, and prints a PASS/FAIL summary. Logs go to /workspace/out/local-ci-<short-sha>/, or ./ci-logs/ when $CI is set. You can change this with CI_OUT_ROOT. The mintlify CLI is pinned to 4.2.1126; set MINTLIFY_VERSION to use a different version.
  • README: covers local preview and running the checks.
  • .github/workflows/docs-ci.yml (in its own commit, 34aeb0d): on pull_request, sets up Node 20, runs scripts/ci.sh and uploads the logs. We don't pay for Actions, so running scripts/ci.sh locally is the main way to run these checks. If Actions stays off, drop this commit.

Local results (box, 2026-10-26)

Check Result Log
mintlify validate PASS /workspace/out/local-ci-34aeb0d/validate.log
mintlify broken-links PASS /workspace/out/local-ci-34aeb0d/broken-links.log
EN/KO parity PASS (31/31 files, 31/31 nav) /workspace/out/local-ci-34aeb0d/parity.log

Tests that the checks catch problems (the files were restored afterwards):

  • Removed ko/vision/why-open-source.mdx. Parity exited 1 and reported both the missing file and the nav entry with no page.
  • Added a link to /en/does-not-exist. broken-links failed, and so did ci.sh.

How to run

scripts/ci.sh

…ity)

- scripts/check-parity.mjs: compares en/ vs ko/ page files, docs.json nav
  per language, and nav <-> files; exits 1 listing every mismatch
- scripts/ci.sh: runs validate, broken-links and parity; logs to
  /workspace/out/local-ci-<short-sha>/ (local CI is the primary path)
- README: preview + running checks
Kept as a separate commit so it can be dropped if Actions stays unpaid.
@NetVar1337
NetVar1337 marked this pull request as ready for review October 26, 2026 10:11
@NetVar1337
NetVar1337 merged commit 8b0bb0e into main Oct 26, 2026
2 checks passed
@NetVar1337
NetVar1337 deleted the ci/docs-build-linkcheck branch October 26, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant