Skip to content

Commit

Permalink
restructure immortal theme specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipPartsch authored Nov 25, 2024
1 parent 25d15f0 commit 38f96e1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@
# -- Options for HTML output

#html_theme = 'sphinx_rtd_theme'
html_theme = 'alabaster' # Sphinx Defaul Theme
html_theme = 'sphinx_immaterial'
#html_theme = 'alabaster' # Sphinx Defaul Theme

# Set ``html_theme`` to ``sphinx_immaterial`` only, if we do NOT perform a PDF build.
if os.environ.get("PDF", 0) != 1:
# If we do perform a PDF build, we have to switch to alabaster
if os.environ.get("PDF", 0) == 1:
html_theme = 'alabaster' # Sphinx Defaul Theme

#configure design according to used theme
if html_theme == 'sphinx_immaterial':
extensions.append("sphinx_immaterial")
html_theme = 'sphinx_immaterial'

html_theme_options = {
"font": False,
Expand Down

0 comments on commit 38f96e1

Please sign in to comment.