feat(docs): enable link to source code (#1529) · python-zeroconf/python-zeroconf@1c7f354
@@ -33,9 +33,14 @@
3333# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
34343535extensions = [
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]
40454146templates_path = ["_templates"]
@@ -53,6 +58,11 @@
5358"**": ("localtoc.html", "relations.html", "sourcelink.html", "searchbox.html"),
5459}
556061+# -- 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