Skip to content

Commit fb9fd0f

Browse files
stackhpc-ciAlex-Welsh
authored andcommitted
Modernise SKC docs theme
1 parent fb12106 commit fb9fd0f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ reno>=3.4.0 # Apache-2.0
66
sphinx>=4.2.0 # BSD
77
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
88
Sphinx-Substitution-Extensions # Apache-2.0
9+
sphinx-immaterial # MIT

doc/source/conf.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
# Add any Sphinx extension module names here, as strings. They can be
5353
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
5454
extensions = [
55+
'sphinx_immaterial',
5556
'reno.sphinxext',
5657
#'sphinx.ext.autodoc',
5758
'sphinx.ext.extlinks',
@@ -88,15 +89,23 @@
8889
# The theme to use for HTML and HTML Help pages. Major themes that come with
8990
# Sphinx are currently 'default' and 'sphinxdoc'.
9091
# html_theme_path = []
91-
html_theme = 'default'
92+
html_theme = 'sphinx_immaterial'
9293
# html_static_path = ['static']
9394

9495
# Add any paths that contain "extra" files, such as .htaccess or
9596
# robots.txt.
9697
# html_extra_path = ['_extra']
9798

9899
html_theme_options = {
99-
# "show_other_versions": True,
100+
"features": [
101+
"navigation.expand",
102+
"navigation.top",
103+
"navigation.footer",
104+
"search.suggest",
105+
"content.code.copy",
106+
"toc.follow",
107+
"toc.sticky",
108+
]
100109
}
101110

102111
# Output file base name for HTML help builder.

0 commit comments

Comments
 (0)