Skip to content

refactor(toc): simplify table of contents component#53

Merged
pascalandy merged 1 commit intomainfrom
pascalandy/toc-redesign
Jan 31, 2026
Merged

refactor(toc): simplify table of contents component#53
pascalandy merged 1 commit intomainfrom
pascalandy/toc-redesign

Conversation

@pascalandy
Copy link
Owner

Summary

  • Show TOC only when 4+ H2 headings exist (was: any heading)
  • Remove accordion behavior (always visible)
  • Use app-prose class for consistent styling with article content
  • Add visible "Table des matières" title
  • Filter to H2 headings only (removed H3)

Test plan

  • Visit article with 4+ H2 headings → TOC visible
  • Visit article with <4 H2 headings → no TOC
  • Verify bullet styling matches article bullets
  • Test dark mode

🤖 Generated with Claude Code

- Show only when 4+ H2 headings exist
- Remove accordion (always visible)
- Use app-prose for consistent styling
- Add visible "Table des matières" title
- Filter to H2 headings only

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation astro labels Jan 31, 2026
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@pascalandy pascalandy merged commit f5368b5 into main Jan 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astro documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant