Skip to content

feat: Add localtoc entry support for object descriptions#57

Merged
SilverRainZ merged 1 commit intomasterfrom
feat/localtoc-entry
Feb 16, 2026
Merged

feat: Add localtoc entry support for object descriptions#57
SilverRainZ merged 1 commit intomasterfrom
feat/localtoc-entry

Conversation

@SilverRainZ
Copy link
Member

Summary

  • Set _toc_parts and _toc_name attributes on desc_signature nodes to integrate with Sphinx's TocTreeCollector for localtoc generation
  • This allows object descriptions created by the any extension to appear in the localtoc

Changes

  • Add setup_toc_name method to ObjDefineDirective that checks config.toc_object_entries before setting TOC attributes
  • Call setup_toc_name from setup_signode_anchor

Set _toc_parts and _toc_name attributes on desc_signature nodes
to integrate with Sphinx's TocTreeCollector for localtoc generation.

Co-authored-by: MiniMax-M2.5 <noreply@minimax.com>
Co-authored-by: opencode <opencode@anomaly.co>
@SilverRainZ SilverRainZ merged commit 2e0729a into master Feb 16, 2026
4 checks passed
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.

1 participant