When using "redundant" titles in documentation, the new DocItemContent theme that handles LLM buttons renders titles in a messy way. This occurs because of how Docusaurus handles titles internally.
Impact
- Messy rendering of titles when LLM buttons are present
- Inconsistent title display across documentation
- Potential for recurring bugs
Proposed Solution
- Option 1: Handle at theme level (
DocItemContent) by some useEffectLayout cleaning
- Option 2: Enforce through linter rules