Skip to content

Add a table of contents to the packages and tutorials pages - #261

Merged
Zethson merged 1 commit into
mainfrom
toc-sidebar
Aug 14, 2026
Merged

Add a table of contents to the packages and tutorials pages#261
Zethson merged 1 commit into
mainfrom
toc-sidebar

Conversation

@Zethson

@Zethson Zethson commented Aug 14, 2026

Copy link
Copy Markdown
Member

Closes #105.

Both pages are long enough that finding a section means scrolling and hoping. A sticky list of headings now sits to the left, with the current section marked as you scroll.

Both pages are long enough that finding a section means scrolling and
hoping. A sticky list of their headings now sits to the left, with the
section you are in marked.

The headings come from templates rather than markdown, so Hugo's
.TableOfContents cannot see them and the list is built from the rendered
page. That also covers the tutorial categories, which are generated from
content and carry no ids of their own — those get one derived from the
heading text so the links have somewhere to point.

The column only appears above 1200px, where there is room for it beside
the content; below that the pages are exactly as they were.
@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for jade-cajeta-1bcca0 ready!

Name Link
🔨 Latest commit 2e1c89a
🔍 Latest deploy log https://app.netlify.com/projects/jade-cajeta-1bcca0/deploys/6a7f04721f06ff0008ccc3c0
😎 Deploy Preview https://deploy-preview-261--jade-cajeta-1bcca0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Zethson

Zethson commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

@grst is this what you had in mind?

@grst grst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great

@Zethson
Zethson merged commit a93a629 into main Aug 14, 2026
6 checks passed
@Zethson
Zethson deleted the toc-sidebar branch August 14, 2026 13:24
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.

Navbar on the left

2 participants