Skip to content

Add CSS section numbering for draft specification#666

Closed
bhosmer-ant wants to merge 1 commit into
mainfrom
basil/local_numbering_css
Closed

Add CSS section numbering for draft specification#666
bhosmer-ant wants to merge 1 commit into
mainfrom
basil/local_numbering_css

Conversation

@bhosmer-ant

Copy link
Copy Markdown
Contributor

Summary

  • Adds hierarchical section numbering (1., 1.1, 1.1.1, etc.) using CSS counters
  • Targets only pages under /specification/draft/ subdirectory using CSS :has() selector
  • Automatically numbers h1-h4 headings without affecting other documentation sections

Test plan

  • Navigate to draft specification pages and verify section numbering appears
  • Verify other specification versions (2024-11-05, 2025-03-26) remain unnumbered
  • Check that other documentation sections are unaffected

🤖 Generated with Claude Code

Implements hierarchical section numbering (1., 1.1, 1.1.1, etc.) using CSS counters specifically for pages under `/specification/draft/`. Uses CSS `:has()` selector to target only draft specification pages while leaving other documentation sections unaffected.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jonathanhefner

Copy link
Copy Markdown
Member

Sorry, I should have responded in #602 to let you know I was working on this! I have a branch going at https://github.com/jonathanhefner/modelcontextprotocol/tree/section-numbers that is almost done (just need to clean up the commit messages).

@bhosmer-ant bhosmer-ant closed this Jun 6, 2025
@localden localden deleted the basil/local_numbering_css branch March 9, 2026 23:55
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