Repository navigation
feat(docs): move experimental badges to headings - #1523
Merged
Merged
Conversation
Move experimental badges from the start of description paragraphs to after the heading text. Uses empty <span> elements with CSS ::after for the badge text, so the span doesn't affect Zola's heading slug generation or page TOC entries. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Mar 14, 2026
worktrunk-bot
left a comment
Collaborator
There was a problem hiding this comment.
Clean approach — using CSS ::after to keep badge text out of Zola's slug generation is elegant.
One minor thing outside the diff: the docstring on src/help.rs L428 still shows the old badge HTML with inner text:
/// | `[experimental]` | `<span class="badge-experimental">experimental</span>` |
Could be updated to reflect the empty-span approach. Happy to push a commit if you'd like.
Co-Authored-By: Claude <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Mar 14, 2026
Add the `[experimental]` → empty `<span>` mapping to the post-processing table in docs CLAUDE.md, which was missing after the badge-to-heading change in #1523. > _This was written by Claude Code on behalf of @max-sixty_ Co-authored-by: Claude <[email protected]>
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move experimental badges from the start of description paragraphs to after the heading text in web docs.
Uses empty
<span>elements with CSS::afterfor badge text, so the span doesn't affect Zola's heading slug generation or page TOC entries. This avoids the need for{#slug}anchor overrides and keeps sidebar TOC entries clean (no "experimental" suffix).Before:
## wt step relocate/EXPERIMENTAL Move worktrees to expected paths.After:
## wt step relocate EXPERIMENTAL/Move worktrees to expected paths.