summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-09-13 20:20:02 +0100
committerGitHub <noreply@github.com>2022-09-13 20:20:02 +0100
commitf57177de89ff1a154c830558d218c3e334b2b437 (patch)
treefd3086cf2e716b9973d8efe4904b3fabdc18ac3a /sphinx/domains/cpp.py
parentb34765780950a04a8a387b1cafa33bf99b704bde (diff)
downloadsphinx-git-f57177de89ff1a154c830558d218c3e334b2b437.tar.gz
Add contents entries for domain objects (#10807)
- Add entries in the table of contents for domain objects (e.g. `py:function`, `rst:role`, etc). Supported domains are Javascript, Python, and reStructuredText. - Support content in `py:module` and `js:module` directives. - Add the `noindexentry` and `noindex` flags to more domains. - Add `toc_object_entries_show_parents` configuration setting - Update documentation and tests
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 380388c83..b448449b7 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -7186,6 +7186,7 @@ class CPPObject(ObjectDescription[ASTDeclaration]):
]
option_spec: OptionSpec = {
+ 'noindex': directives.flag,
'noindexentry': directives.flag,
'tparam-line-spec': directives.flag,
}