Skip to content

Add C# objects to the general index - #21

Merged
djungelorm merged 1 commit into
masterfrom
index-entries
Oct 15, 2026
Merged

djungelorm merged 1 commit into
masterfrom
index-entries

Conversation

@djungelorm

Copy link
Copy Markdown
Owner

C# objects never appeared in the general index. get_index_text was copied from Sphinx's rst domain and only produced text for the directive and role object types, which the cs domain does not have.

Each object now gets an entry such as MyNamespace.MyClass (C# class), using the object type names from CSharpDomain.object_types. The standard :no-index-entry: option leaves an object out. inherits adds no entry, since it describes a base type and not a declaration.

This changes HTML output: projects with a general index, including Breathe-generated APIs, gain one entry per documented object.

Each object gets an entry such as "MyNamespace.MyClass (C# class)". The :no-index-entry: option leaves an object out.
@djungelorm
djungelorm merged commit d2d6479 into master Oct 15, 2026
7 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