Feature: added docs.jso validator + bug fix at docs.json#59
Conversation
📝 WalkthroughWalkthroughAdds a new CI job "Docs Validation" to run documentation checks and updates docs theme color from rgb(51,52,54) to Changes
Sequence Diagram(s)sequenceDiagram
participant Runner as GitHub Actions Runner
participant Repo as Repository (checkout)
participant Node as setup-node (Node.js 22)
participant Mint as npx mint (docs validator)
Runner->>Repo: actions/checkout (clone code)
Runner->>Node: actions/setup-node@v3 (install Node 22)
Runner->>Repo: cd docs
Runner->>Mint: npx mint validate (run docs validation)
Mint-->>Runner: exit status (pass/fail)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/test.yml:
- Around line 99-101: The CI step named "Validate docs.json" currently runs "npx
mint validate" which fetches the latest Mintlify CLI; change this to pin the CLI
to a specific, secure version (at least v4.2.210) to ensure reproducible builds.
Update the step's run command (the one containing "npx mint validate") to use a
pinned version such as "npx mint@4.2.210 validate" (keeping the
working-directory: docs), or another exact version >= 4.2.210 if you prefer.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@docs/docs.json`:
- Around line 8-10: Populate the navigation.pages array in docs.json so existing
docs appear in the site; add entries for each file (FUTURE_ARCHITECTURE.md,
TESTING_STRATEGY.md, adr/0001-explicit-provider-registration.md,
plans/token-usage-tracking.md) under the "navigation" -> "pages" key, using
readable titles and their relative paths (ensure the key is named "pages" and
the JSON remains valid), e.g., create objects with title and path for each
document so navigation.pages references each document file.
| "navigation": { | ||
| "pages": [] | ||
| } |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
# First, check the full docs.json file to understand the context
cat -n docs/docs.jsonRepository: ENTERPILOT/GOModel
Length of output: 348
🏁 Script executed:
# Search for markdown/mdx files in the docs directory
fd -e mdx -e md . docs/Repository: ENTERPILOT/GOModel
Length of output: 197
🏁 Script executed:
# Also check the overall structure of the docs directory
tree -L 3 docs/ 2>/dev/null || find docs -type f | head -20Repository: ENTERPILOT/GOModel
Length of output: 253
Populate pages array — existing documentation files won't be discoverable.
The navigation.pages array is empty, so the Mintlify documentation site won't display the existing documentation files (FUTURE_ARCHITECTURE.md, TESTING_STRATEGY.md, adr/0001-explicit-provider-registration.md, plans/token-usage-tracking.md). Add entries to the pages array for each documentation file so they appear in the navigation.
🤖 Prompt for AI Agents
In `@docs/docs.json` around lines 8 - 10, Populate the navigation.pages array in
docs.json so existing docs appear in the site; add entries for each file
(FUTURE_ARCHITECTURE.md, TESTING_STRATEGY.md,
adr/0001-explicit-provider-registration.md, plans/token-usage-tracking.md) under
the "navigation" -> "pages" key, using readable titles and their relative paths
(ensure the key is named "pages" and the JSON remains valid), e.g., create
objects with title and path for each document so navigation.pages references
each document file.
Summary by CodeRabbit
Chores
Documentation
Style