Skip to content

Commit

Permalink
Switch docs back to readthedocs theme (#80)
Browse files Browse the repository at this point in the history
* Revert to sphinx-rtd-theme and store logo in repo

* Move readme content to index page
  • Loading branch information
smithara committed May 6, 2022
1 parent 2dfe212 commit 70eb6e9
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 26 deletions.
17 changes: 4 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
import urllib.request


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

Expand Down Expand Up @@ -73,13 +71,13 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_book_theme"
html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {"style_external_links": True}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand All @@ -96,14 +94,7 @@
#
# html_sidebars = {}

# Fetch and use external logo
logo_filename = "vre_logo_light.svg"
if not os.path.exists(logo_filename):
urllib.request.urlretrieve(
"https://raw.githubusercontent.com/ESA-VirES/Swarm-VRE/staging/docs/_static/vre_logo_light.svg",
logo_filename,
)
html_logo = logo_filename
html_logo = "images/vre_logo_light.svg"


# -- Options for HTMLHelp output ---------------------------------------------
Expand Down

0 comments on commit 70eb6e9

Please sign in to comment.