Skip to content

Commit ae73375

Browse files
committed
Add rtd to intersphinx, black'n conf.py and lumache.py
1 parent bf24b0d commit ae73375

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

docs/conf.py

+17-16
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,47 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = 'Basic Sphinx Example Project'
21-
copyright = '2022, Read the Docs core team'
22-
author = 'Read the Docs core team'
20+
project = "Basic Sphinx Example Project"
21+
copyright = "2022, Read the Docs core team"
22+
author = "Read the Docs core team"
2323

2424

2525
# -- General configuration ---------------------------------------------------
2626
# -- General configuration
2727

2828
extensions = [
29-
'sphinx.ext.duration',
30-
'sphinx.ext.doctest',
31-
'sphinx.ext.autodoc',
32-
'sphinx.ext.autosummary',
33-
'sphinx.ext.intersphinx',
29+
"sphinx.ext.duration",
30+
"sphinx.ext.doctest",
31+
"sphinx.ext.autodoc",
32+
"sphinx.ext.autosummary",
33+
"sphinx.ext.intersphinx",
3434
]
3535

3636
intersphinx_mapping = {
37-
'python': ('https://docs.python.org/3/', None),
38-
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
37+
"rtd": ("https://docs.readthedocs.io/en/stable/", None),
38+
"python": ("https://docs.python.org/3/", None),
39+
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
3940
}
40-
intersphinx_disabled_domains = ['std']
41+
intersphinx_disabled_domains = ["std"]
4142

42-
templates_path = ['_templates']
43+
templates_path = ["_templates"]
4344

4445
# -- Options for EPUB output
45-
epub_show_urls = 'footnote'
46+
epub_show_urls = "footnote"
4647

4748
# List of patterns, relative to source directory, that match files and
4849
# directories to ignore when looking for source files.
4950
# This pattern also affects html_static_path and html_extra_path.
50-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
51+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5152

5253
# -- Options for HTML output -------------------------------------------------
5354

5455
# The theme to use for HTML and HTML Help pages. See the documentation for
5556
# a list of builtin themes.
5657
#
57-
html_theme = 'sphinx_rtd_theme'
58+
html_theme = "sphinx_rtd_theme"
5859

5960
# Add any paths that contain custom static files (such as style sheets) here,
6061
# relative to this directory. They are copied after the builtin static files,
6162
# so a file named "default.css" will overwrite the builtin "default.css".
62-
html_static_path = ['_static']
63+
html_static_path = ["_static"]

lumache.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
class InvalidKindError(Exception):
1919
"""Raised if the kind is invalid."""
20+
2021
pass
2122

2223

0 commit comments

Comments
 (0)