Skip to content

Commit 7e9b57c

Browse files
authored
[mypyc] Make mypyc docs use the same theme as mypy docs (#10176)
Consistency is good. Work on mypyc/mypyc#807.
1 parent 152de16 commit 7e9b57c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mypyc/doc/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@
4343

4444
# The theme to use for HTML and HTML Help pages. See the documentation for
4545
# a list of builtin themes.
46-
#
47-
html_theme = 'alabaster'
46+
try:
47+
import sphinx_rtd_theme
48+
except:
49+
html_theme = 'default'
50+
else:
51+
html_theme = 'sphinx_rtd_theme'
52+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
4853

4954
# Add any paths that contain custom static files (such as style sheets) here,
5055
# relative to this directory. They are copied after the builtin static files,

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ exclude =
1717
.cache,
1818
# Sphinx configuration is irrelevant
1919
docs/source/conf.py,
20+
mypyc/doc/conf.py,
2021
# conflicting styles
2122
misc/*,
2223
# conflicting styles

0 commit comments

Comments
 (0)