Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit fde850d

Browse files
committed
[Material] Change documentation theme
1 parent 1327f79 commit fde850d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/conf.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,22 @@
5757
locale_dirs = ["_locales"]
5858

5959
# options for HTML output
60-
html_theme = "sphinx_rtd_theme"
6160
html_favicon = str(BASE_DIR / "assets" / "favicon.ico")
61+
html_theme = "sphinx_material"
62+
html_theme_options = {
63+
"nav_title": project,
64+
65+
"repo_url": project_data["repository"],
66+
"repo_name": project,
67+
"repo_type": "github",
68+
69+
"base_url": project_data["homepage"],
70+
71+
"globaltoc_depth": 2,
72+
73+
"html_minify": True,
74+
"css_minify": True,
75+
}
6276

6377
# options for LaTeX output
6478
latex_doc = project.title().replace(" ", "") + ".tex"

0 commit comments

Comments
 (0)