Skip to content

docs: use flat navigation.pages for multi-repo sourceRef#386

Merged
mattapperson merged 1 commit into
mainfrom
docs-nav-pages
Jul 2, 2026
Merged

docs: use flat navigation.pages for multi-repo sourceRef#386
mattapperson merged 1 commit into
mainfrom
docs-nav-pages

Conversation

@mattapperson

Copy link
Copy Markdown
Collaborator

Summary

The base docs site mounts each SDK via a Mintlify sourceRef placed inside a pages context. Mintlify requires the referenced source to define the same navigation type as its mount slot, so the group-based navigation.groups we shipped triggered:

Git source client-sdks/python does not define navigation.pages

This switches docs/docs.json to a flat navigation.pages array (overview first, then service pages alphabetically) and updates scripts/gen-docs-nav.sh to emit that shape. Group headers are supplied by the base site around the sourceRef.

The docs-nav.yaml workflow already calls scripts/gen-docs-nav.sh, so no workflow change is needed.

Verified locally

  • 28 pages in navigation.pages, overview first, alphabetical ✓
  • idempotent ✓ · $schema/theme/name/colors preserved ✓

Test plan

  • Mintlify git source resolves (no "does not define navigation.pages")
  • Sidebar renders SDK pages under the base site's group

The base docs site mounts this SDK via a `sourceRef` inside a `pages` context;
Mintlify requires the referenced source to define the same navigation type as
its mount slot. navigation.groups tripped "does not define navigation.pages".

Switch docs/docs.json to a flat navigation.pages array (overview first, then
service pages alphabetically) and update scripts/gen-docs-nav.sh to emit it.
The docs-nav.yaml workflow already calls the script, so no workflow change.
@mintlify

mintlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
openrouter-production 🟡 Building Jul 2, 2026, 12:17 AM

@mintlify

mintlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
openrouter-staging 🟡 Building Jul 2, 2026, 12:17 AM

@mintlify

mintlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
openrouter-production 🟡 Building Jul 2, 2026, 12:17 AM

@mintlify

mintlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
openrouter-staging 🟡 Building Jul 2, 2026, 12:22 AM

@mattapperson mattapperson merged commit ebd0174 into main Jul 2, 2026
2 checks passed
@mattapperson mattapperson deleted the docs-nav-pages branch July 2, 2026 00:25
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