Skip to content

Commit 1c7f354

Browse files
authored
feat(docs): enable link to source code (#1529)
1 parent 8c913e1 commit 1c7f354

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@
3333
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3434

3535
extensions = [
36+
"sphinx.ext.todo", # Allow todo comments.
37+
"sphinx.ext.viewcode", # Link to source code.
3638
"sphinx.ext.autodoc",
3739
"zeroconfautodocfix", # Must be after "sphinx.ext.autodoc"
3840
"sphinx.ext.intersphinx",
41+
"sphinx.ext.coverage", # Enable the overage report.
42+
"sphinx.ext.duration", # Show build duration at the end.
43+
"sphinx_rtd_theme", # Required for theme.
3944
]
4045

4146
templates_path = ["_templates"]
@@ -53,6 +58,11 @@
5358
"**": ("localtoc.html", "relations.html", "sourcelink.html", "searchbox.html"),
5459
}
5560

61+
# -- Options for RTD theme ---------------------------------------------------
62+
# https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html
63+
64+
# html_theme_options = {}
65+
5666
# -- Options for HTML help output --------------------------------------------
5767
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-help-output
5868

0 commit comments

Comments
 (0)