@@ -365,6 +365,7 @@ class Documenter:
365365
366366 option_spec : ClassVar [OptionSpec ] = {
367367 'no-index' : bool_option ,
368+ 'no-index-entry' : bool_option ,
368369 'noindex' : bool_option ,
369370 }
370371
@@ -605,6 +606,8 @@ def add_directive_header(self, sig: str) -> None:
605606
606607 if self .options .no_index or self .options .noindex :
607608 self .add_line (' :no-index:' , sourcename )
609+ if self .options .no_index_entry :
610+ self .add_line (' :no-index-entry:' , sourcename )
608611 if self .objpath :
609612 # Be explicit about the module, this is necessary since .. class::
610613 # etc. don't support a prepended module name
@@ -1110,6 +1113,7 @@ class ModuleDocumenter(Documenter):
11101113 'members' : members_option ,
11111114 'undoc-members' : bool_option ,
11121115 'no-index' : bool_option ,
1116+ 'no-index-entry' : bool_option ,
11131117 'inherited-members' : inherited_members_option ,
11141118 'show-inheritance' : bool_option ,
11151119 'synopsis' : identity ,
@@ -1197,6 +1201,8 @@ def add_directive_header(self, sig: str) -> None:
11971201 self .add_line (' :platform: ' + self .options .platform , sourcename )
11981202 if self .options .deprecated :
11991203 self .add_line (' :deprecated:' , sourcename )
1204+ if self .options .no_index_entry :
1205+ self .add_line (' :no-index-entry:' , sourcename )
12001206
12011207 def get_module_members (self ) -> dict [str , ObjectMember ]:
12021208 """Get members of target module."""
@@ -1625,6 +1631,7 @@ class ClassDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter): # type:
16251631 'members' : members_option ,
16261632 'undoc-members' : bool_option ,
16271633 'no-index' : bool_option ,
1634+ 'no-index-entry' : bool_option ,
16281635 'inherited-members' : inherited_members_option ,
16291636 'show-inheritance' : bool_option ,
16301637 'member-order' : member_order_option ,
0 commit comments