Skip to content

Fix MkDocs API reference navigation - #4

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-mkdocs-api-nav-a2a7
Jul 15, 2026
Merged

Fix MkDocs API reference navigation#4
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-mkdocs-api-nav-a2a7

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Generated API reference pages existed but were orphaned — not linked in site navigation.

Root cause

  • mkdocs.yml had a static nav: block that excluded generated reference/ pages
  • mkdocs_gen_ref_pages.py used incorrect paths (e.g. reference.md instead of reference/palettes/index.md) and broken SUMMARY links

Fix

  • Remove static nav:; drive navigation from docs/SUMMARY.md via literate-nav
  • Add API Referencereference/ to docs/SUMMARY.md
  • Rewrite gen script to follow the mkdocstrings recipe: index.md for packages, paths relative to reference/, skip _ modules
  • Enable show_root_heading / show_symbol_type_* mkdocstrings options

After rebuild, sidebar shows API Reference → palettes → cube / material_design / wheel with full docstring content.

Open in Web Open in Cursor 

Wire generated reference pages into site nav via literate-nav (remove
conflicting static nav). Follow mkdocstrings recipe: __init__ modules
become index.md, nav paths relative to reference/, skip private modules.
Enable show_root_heading for clearer API pages.

Co-authored-by: Brad Barnett <bdbarnett@users.noreply.github.com>
@cursor

cursor Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor
cursor Bot merged commit f00c8a4 into main Jul 15, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/fix-mkdocs-api-nav-a2a7 branch July 15, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants