Skip to content

Commit

Permalink
add sphinx plugins viewcode and intersphinx (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Aug 20, 2021
1 parent cf3e7d9 commit f3b08b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def setup(app):
"sphinx_rtd_theme",
'myst_parser',
'sphinx.ext.autosummary',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'breathe',
'exhale'
]
Expand Down Expand Up @@ -198,6 +200,14 @@ def setup(app):
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

intersphinx_mapping = {
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
"python": ("https://docs.python.org/", None),
"tensorflow": (
"https://www.tensorflow.org/api_docs/python",
"https://github.com/mr-ubik/tensorflow-intersphinx/raw/master/tf2_py_objects.inv",
),
}

# -- Options for HTML output -------------------------------------------------

Expand Down

0 comments on commit f3b08b3

Please sign in to comment.