Skip to content

Commit

Permalink
Revert "docs: Switch to Furo"
Browse files Browse the repository at this point in the history
This reverts commit 859233b. The furo
theme requires far more changes than this, and the RTD theme now
supports Sphinx 5.x.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Jan 17, 2024
1 parent ead2164 commit e83d747
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# pwclient documentation build configuration file

try:
import furo # noqa
import sphinx_rtd_theme # noqa

has_furo_theme = True
has_rtd_theme = True
except ImportError:
has_furo_theme = False
has_rtd_theme = False

# -- General configuration ------------------------------------------------

Expand All @@ -18,7 +18,7 @@
]

# The master toctree document.
master_doc = 'index'
master_doc = 'contents'

# General information about the project.
project = 'pwclient'
Expand All @@ -33,5 +33,5 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
if has_furo_theme:
html_theme = 'furo'
if has_rtd_theme:
html_theme = 'sphinx_rtd_theme'
9 changes: 9 additions & 0 deletions docs/contents.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Contents
========

.. toctree::

index
configuration
usage
release-notes
10 changes: 0 additions & 10 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,3 @@ pwclient
.. include:: ../README.rst
:start-line: 18
:end-line: -7

Documentation
-------------

.. toctree::
:maxdepth: 2

usage
configuration
release-notes
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx
reno
furo
sphinx_rtd_theme
sphinxcontrib.autoprogram

0 comments on commit e83d747

Please sign in to comment.