Skip to content

Commit

Permalink
Switch to Furo
Browse files Browse the repository at this point in the history
- Add Furo dependency to docs/requirements.txt
- Drop a fair bit of theme configuration
- Fix the toctree declarations in index.rst
- Move stuff around as Furo isn't 100% compatible with Alabaster

Furo was chosen as it provides excellent mobile support, user
controllable light/dark theming, and is overall easier to read
  • Loading branch information
ichard26 committed Jan 21, 2022
1 parent 95c03b9 commit d7b6a30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 70 deletions.
44 changes: 0 additions & 44 deletions docs/_static/custom.css

This file was deleted.

25 changes: 2 additions & 23 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,29 +115,8 @@ def make_pypi_svg(version: str) -> None:
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"

html_sidebars = {
"**": [
"about.html",
"navigation.html",
"relations.html",
"searchbox.html",
]
}

html_theme_options = {
"show_related": False,
"description": "“Any color you like.”",
"github_button": True,
"github_user": "psf",
"github_repo": "black",
"github_type": "star",
"show_powered_by": True,
"fixed_sidebar": True,
"logo": "logo2.png",
}

html_theme = "furo"
html_logo = "_static/logo2-readme.png"

# 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 Down
9 changes: 6 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Contents
.. toctree::
:maxdepth: 3
:includehidden:
:caption: User Guide

getting_started
usage_and_configuration/index
Expand All @@ -109,17 +110,19 @@ Contents
.. toctree::
:maxdepth: 3
:includehidden:
:caption: Development

contributing/index
change_log
authors

.. toctree::
:hidden:
:caption: Project Links

GitHub <https://github.com/psf/black>
PyPI <https://pypi.org/project/black>
Chat <https://discord.gg/RtVdv86PrH>
GitHub <https://github.com/psf/black>
PyPI <https://pypi.org/project/black>
Chat <https://discord.gg/RtVdv86PrH>

Indices and tables
==================
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ myst-parser==0.16.1
Sphinx==4.4.0
sphinxcontrib-programoutput==0.17
sphinx_copybutton==0.4.0
furo==2022.1.2

0 comments on commit d7b6a30

Please sign in to comment.