Skip to content

Commit

Permalink
html_theme should always use underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 5, 2021
1 parent 38b0700 commit 6046ba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions repo_helper/files/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def make_sphinx_config_dict(templates: jinja2.Environment) -> Dict[str, Any]:
data["master_doc"] = "index"
data["suppress_warnings"] = ["image.nonlocal_uri"]
data["pygments_style"] = "default"
data["html_theme"] = templates.globals["sphinx_html_theme"].replace('_', '-')
data["html_theme"] = templates.globals["sphinx_html_theme"].replace('-', '_')
data["html_theme_path"] = ["../.."]
data["html_show_sourcelink"] = True # True will show link to source

Expand Down Expand Up @@ -806,7 +806,6 @@ def make_sphinx_config_dict(templates: jinja2.Environment) -> Dict[str, Any]:
"__hash__",
]


return data


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ source_suffix = ".rst"
master_doc = "index"
suppress_warnings = ["image.nonlocal_uri"]
pygments_style = "default"
html_theme = "domdf-sphinx-theme"
html_theme = "domdf_sphinx_theme"
html_theme_path = ["../.."]
html_show_sourcelink = True
toctree_plus_types = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ source_suffix = ".rst"
master_doc = "index"
suppress_warnings = ["image.nonlocal_uri"]
pygments_style = "default"
html_theme = "sphinx-rtd-theme"
html_theme = "sphinx_rtd_theme"
html_theme_path = ["../.."]
html_show_sourcelink = True
toctree_plus_types = [
Expand Down

0 comments on commit 6046ba2

Please sign in to comment.