Skip to content

feat(docs): move experimental badges to headings - #1523

Merged
max-sixty merged 2 commits into
mainfrom
experimental
Mar 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
experimental

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Move experimental badges from the start of description paragraphs to after the heading text in web docs.

Uses empty <span> elements with CSS ::after for 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.

This was written by Claude Code on behalf of @max-sixty

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 worktrunk-bot 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.

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.

@max-sixty
max-sixty merged commit 879cbd9 into main Mar 14, 2026
22 checks passed
@max-sixty
max-sixty deleted the experimental branch March 14, 2026 21:29
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]>
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.

2 participants