Skip to content

Commit

Permalink
💄 Change Sphinx theme to furo
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 16, 2020
1 parent b3a8bc5 commit c7ebc09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
furo==2020.11.15b17
sphinx==3.2.0
sphinx-autobuild==0.7.1
git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme
Binary file added source/assets/py.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 9 additions & 11 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
# show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
#pygments_style = 'sphinx'

# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
Expand All @@ -134,16 +134,14 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'pypa_theme'
html_theme = 'furo'

# 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 = {
'collapsiblesidebar': True,
'externalrefs': True,
'navigation_depth': 2,
'issues_url': github_repo_issues_url,
"sidebar_hide_name": True,
# 'issues_url': github_repo_issues_url, # FIXME: support this in furo?
}

# Add any paths that contain custom themes here, relative to this directory.
Expand All @@ -161,7 +159,7 @@
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#
# html_logo = None
html_logo = 'assets/py.png'

# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
Expand Down Expand Up @@ -195,10 +193,10 @@
#

# Custom sidebar templates, filenames relative to this file.
html_sidebars = {
'**': ['globaltoc.html', 'relations.html'],
'index': ['globaltoc.html']
}
# html_sidebars = {
# '**': ['globaltoc.html', 'relations.html'],
# 'index': ['globaltoc.html']
# }

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit c7ebc09

Please sign in to comment.