Skip to content

Commit

Permalink
[mypyc] Make mypyc docs use the same theme as mypy docs (#10176)
Browse files Browse the repository at this point in the history
Consistency is good.

Work on mypyc/mypyc#807.
  • Loading branch information
JukkaL authored Mar 7, 2021
1 parent 152de16 commit 7e9b57c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mypyc/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
try:
import sphinx_rtd_theme
except:
html_theme = 'default'
else:
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exclude =
.cache,
# Sphinx configuration is irrelevant
docs/source/conf.py,
mypyc/doc/conf.py,
# conflicting styles
misc/*,
# conflicting styles
Expand Down

0 comments on commit 7e9b57c

Please sign in to comment.