Skip to content

tabpane: make IDs unique across pages - #2869

Merged
chalin merged 2 commits into
docsy:mainfrom
diemol:tabpane-unique-ids
Oct 31, 2026
Merged

chalin merged 2 commits into
docsy:mainfrom
diemol:tabpane-unique-ids

Conversation

@diemol

@diemol diemol commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Worth noting that the generated IDs change, which would break any link pointing at an old #tabs-03-01-style anchor.

Print pages combine many pages, so ordinal-based IDs repeated and
Bootstrap toggled the wrong panes. Prefix IDs with the page's file ID.

Fixes docsy#2868

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012z8xTLmv7M1ULKx4CTsxna
@diemol
diemol requested a review from a team October 10, 2026 22:14
@netlify

netlify Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit 87824b7
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ae529c49bc57257bab2ef61
😎 Deploy Preview https://deploy-preview-2869--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@chalin chalin added this to the 0.18.1 milestone Oct 30, 2026
@chalin chalin added fix Resolves some issue in the current code base shortcodes Hugo shortcodes labels Oct 30, 2026
@chalin chalin removed the fix Resolves some issue in the current code base label Oct 30, 2026

@chalin chalin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @diemol, this is good to go: the per-page prefix is the right mechanism, and it has three weeks of production mileage on selenium.dev. I updated the branch from main for the lockfile (the only CI red was the audit gate on markdown-it 15.0.1, nothing in your change). Merging for 0.18.1.

Follow-up, in a maintainer PR: derive the prefix slightly differently.

@chalin
chalin merged commit 8731c21 into docsy:main Oct 31, 2026
14 checks passed
chalin added a commit to chalin/docsy that referenced this pull request Oct 31, 2026
Changelog v0.18.1: credit the contributed tabpane fix (docsy#2869)

Changelog v0.18.1: Security line for the chrome-restore hardening (docsy#2901)

Link cache: docsy#2869, docsy#2901, docsy#2910

Changelog v0.18.1: the Security line links the chrome guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shortcodes Hugo shortcodes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants