Skip to content

Commit

Permalink
[doc] Add numpydoc settings to conf.py.in
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoemi09 committed Apr 3, 2024
1 parent 6b9f0f5 commit a96dc30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ plot_html_show_formats = False

intersphinx_mapping = {'python': ('https://docs.python.org/3.11', None), 'triqslibs': ('https://triqs.github.io/triqs/latest', None)}

# numpydoc options
numpydoc_show_class_members = False
numpydoc_show_inherited_class_members = False
numpydoc_class_members_toctree = False

# open links in new tab instead of same window
from sphinx.writers.html import HTMLTranslator
from docutils import nodes
Expand Down Expand Up @@ -139,7 +144,7 @@ class PatchedHTMLTranslator(HTMLTranslator):
if 'target' in node:
atts['target'] = node['target']
self.body.append(self.starttag(node, 'a', '', **atts))

if node.get('secnumber'):
self.body.append(('%s' + self.secnumber_suffix) %
'.'.join(map(str, node['secnumber'])))
Expand Down

0 comments on commit a96dc30

Please sign in to comment.