Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1821fe7

Browse filesBrowse files
committed
feat(docs): enable link to source code
- add some common default extensions - fix rtd theme by adding missing extension
1 parent 8c913e1 commit 1821fe7
Copy full SHA for 1821fe7

File tree

1 file changed

+10
-0
lines changed
Filter options

1 file changed

+10
-0
lines changed

‎docs/conf.py

Copy file name to clipboardExpand all lines: docs/conf.py
+10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.