Skip to content

Commit

Permalink
Allow the :no-search: metadata tag
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 15, 2024
1 parent 9a6885d commit 80d5396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/builders/html/__init__.py
Expand Up @@ -939,7 +939,7 @@ def index_page(self, pagename: str, doctree: nodes.document, title: str) -> None
if self.indexer is not None and title:
filename = self.env.doc2path(pagename, base=False)
metadata = self.env.metadata.get(pagename, {})
if 'nosearch' in metadata:
if 'no-search' in metadata or 'nosearch' in metadata:
self.indexer.feed(pagename, filename, '', new_document(''))
else:
self.indexer.feed(pagename, filename, title, doctree)
Expand Down

0 comments on commit 80d5396

Please sign in to comment.