Skip to content

Commit 464b774

Browse files
committed
doc: fix codebgcolor and codetextcolor
See python/python-docs-theme#57. Also blacken.
1 parent 3d5533b commit 464b774

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
sys.path.insert(0, os.path.abspath("."))
66
sys.path.insert(0, os.path.abspath(".."))
77

8-
import genparamdoc
9-
import dim
108

119
def copyright_years():
1210
this_year = datetime.date.today().year
@@ -15,6 +13,7 @@ def copyright_years():
1513
else:
1614
return "2018\u2013%s" % this_year
1715

16+
1817
project = "dim"
1918
copyright = "%s, Zhiming Wang" % copyright_years()
2019
author = "Zhiming Wang"
@@ -38,10 +37,14 @@ def copyright_years():
3837
autodoc_member_order = "bysource"
3938

4039
# intersphinx
41-
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
40+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
4241

4342
# html
4443
html_theme = "python_docs_theme"
4544
html_last_updated_fmt = "%b %d, %Y"
4645
html_sidebars = {"**": ["localtoc.html", "sourcelink.html"]}
47-
html_theme_options = {"collapsiblesidebar": True}
46+
html_theme_options = {
47+
"collapsiblesidebar": True,
48+
"codebgcolor": "#eeffcc",
49+
"codetextcolor": "#333333",
50+
}

0 commit comments

Comments
 (0)