Skip to content

Commit e8c9684

Browse files
authored
Merge pull request dipy#3345 from jhlegarreta/SkipElementInDocGeneration
DOC: Skip element in documentation generation
2 parents 98675b7 + 38e6649 commit e8c9684

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
"dipy.viz.horizon.visualizer.peak.PeakActor": False
5555
}
5656

57+
autodoc_skip_members = [
58+
"docstring_addendum",
59+
]
60+
5761
# Sphinx extension for BibTeX style citations.
5862
# https://github.com/mcmtroffaes/sphinxcontrib-bibtex
5963
bibtex_bibfiles = ["references.bib"]
@@ -559,3 +563,12 @@
559563

560564
# Example configuration for intersphinx: refer to the Python standard library.
561565
intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
566+
567+
568+
def setup(app):
569+
def skip_doc_element(app, what, name, obj, would_skip, options):
570+
if name in autodoc_skip_members:
571+
return True
572+
return would_skip
573+
574+
app.connect("autodoc-skip-member", skip_doc_element)

0 commit comments

Comments
 (0)