You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add full support for nested navigation in MkDocs configuration
This commit implements complete support for nested navigation structures
in the MkDocs 'nav' section, allowing for arbitrary nesting depth when
publishing to Confluence.
Key Changes:
- Modified traverse() in context.js to track parent-child relationships
- Added parentPath property to LocalPage to store section hierarchy
- Rewrote syncPages() to process pages level-by-level (parents before children)
- Updated README to highlight nesting support and remove limitation notice
- Added comprehensive test fixtures for nested structures
Benefits:
- Pages now maintain their hierarchical structure in Confluence
- First page in each section becomes the parent for that section
- Supports arbitrary nesting depth (e.g., Section > Subsection > Page)
- Fully backward compatible with existing flat structures
Example:
nav:
- Home: index.md # Root level
- Guides: # Section
- Getting Started: guides/start.md # Child of Guides
- Advanced: # Nested section
- Config: guides/adv/config.md # Child of Advanced
All tests pass (148/148) with 99.63% code coverage maintained.
0 commit comments