Bug Description
When a top-level file (e.g., or ) is placed as a child in the TOC, the link logic for autogenerated section index pages is incorrect. This causes download buttons and navigation links to break or point to the wrong location.
Steps to Reproduce
- Place a top-level file as a child in the TOC (see ).
- Build the site.
- Visit the autogenerated section index page.
- Observe broken or incorrect links for the child page.
Expected Behavior
- Links to child pages should resolve correctly regardless of their original location.
- Download buttons should point to the correct files.
Actual Behavior
- Links and download buttons are broken or incorrect for top-level files placed as children.
Labels
- bug
- autogen-bug
- toc-slug
- output-paths
- static-site
Context
- Detected in latest build after fixing download button logic.
- See and for TOC and link generation logic.
Filed by: GitHub Copilot (robot)
Bug Description
When a top-level file (e.g., or ) is placed as a child in the TOC, the link logic for autogenerated section index pages is incorrect. This causes download buttons and navigation links to break or point to the wrong location.
Steps to Reproduce
Expected Behavior
Actual Behavior
Labels
Context
Filed by: GitHub Copilot (robot)