Skip to content

Commit

Permalink
fix theme on read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Aug 25, 2023
1 parent 2629705 commit 2ec1d94
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@

# -- Environment -------------------------------------------------------------

IS_READTHEDOCS = os.environ.get('READTHEDOCS') == 'True'

# Explicitly put the extensions directory to Python path
sys.path.append(os.path.abspath('_extensions'))


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

project = 'Dokumentace české Python komunity'
copyright = '2022, Pyvec, z.s.'
copyright = '2023, Pyvec, z.s.'
author = 'Pyvec, z.s.'

# The short X.Y version
Expand Down Expand Up @@ -75,13 +73,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
if IS_READTHEDOCS:
# equals to default RTD theme
pass
else:
# emulates the default RTD theme for local development
html_theme = 'sphinx_rtd_theme'

html_theme = 'sphinx_rtd_theme'
html_logo = '_static/images/org-i.svg'

# Theme options are theme-specific and customize the look and feel of a theme
Expand Down

0 comments on commit 2ec1d94

Please sign in to comment.