Skip to content

Commit

Permalink
Fix Sphinx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxos committed Nov 7, 2023
1 parent b3489dc commit 3b46340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
15 changes: 3 additions & 12 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# -- Project information -----------------------------------------------------

project = 'MuPIF'
project = 'MuPIF services'
copyright = '2023, Bořek Patzák, Václav Šmilauer'
author = 'Bořek Patzák, Václav Šmilauer'
# (Czech Technical University, Faculty of Civil Engineering, Department of Mechanics, Thákurova 7, 16629, Prague, Czech Republic.)'
Expand All @@ -36,6 +36,7 @@
# 'sphinxcontrib.apidoc'
'sphinxcontrib.openapi',
'myst_nb',
'sphinx_rtd_theme',
]

import sys, os.path
Expand Down Expand Up @@ -82,17 +83,7 @@

# -- Options for HTML output -------------------------------------------------

# https://readthedocsorg.readthedocs.io/en/latest/theme.html#how-do-i-use-this-locally-and-on-read-the-docs

# use ReadTheDocs theme both locally and when building docs at readthedocs.io
import os
on_rtd=os.environ.get('READTHEDOCS',None)=='True'
if not on_rtd:
import sphinx_rtd_theme
html_theme='sphinx_rtd_theme'
html_theme_path=[sphinx_rtd_theme.get_html_theme_path()]
else:
html_theme='default'
html_theme='sphinx_rtd_theme'

#html_theme_options=dict(
# github_banner=True,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ pydantic==1.10.0
oauthlib
requests_oauthlib
sphinxcontrib-openapi
sphinx-rtd-theme
myst-nb

0 comments on commit 3b46340

Please sign in to comment.