Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit dd8bf82

Browse files
authored
Merge pull request #421 from staticdev/docs/furo
Use furo Sphinx theme for documentation
2 parents 35ae700 + ba74653 commit dd8bf82

File tree

5 files changed

+72
-54
lines changed

5 files changed

+72
-54
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
project = "Django Sorting Bootstrap"
66
author = "Thiago Carvalho D'Ávila"
77
copyright = f"{datetime.now().year}, {author}"
8-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx_rtd_theme"]
8+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon"]
99
autodoc_typehints = "description"
10-
html_theme = "sphinx_rtd_theme"
10+
html_theme = "furo"

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1+
furo==2021.11.23
12
sphinx==4.3.1
2-
sphinx-rtd-theme==1.0.0

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def docs_build(session: Session) -> None:
172172
"""Build the documentation."""
173173
args = session.posargs or ["docs", "docs/_build"]
174174
session.install(".")
175-
session.install("sphinx", "sphinx-rtd-theme")
175+
session.install("sphinx", "furo")
176176

177177
build_dir = Path("docs", "_build")
178178
if build_dir.exists():
@@ -186,7 +186,7 @@ def docs(session: Session) -> None:
186186
"""Build and serve the documentation with live reloading on file changes."""
187187
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
188188
session.install(".")
189-
session.install("sphinx", "sphinx-autobuild", "sphinx-rtd-theme")
189+
session.install("sphinx", "sphinx-autobuild", "furo")
190190

191191
build_dir = Path("docs", "_build")
192192
if build_dir.exists():

poetry.lock

Lines changed: 66 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ flake8-rst-docstrings = "^0.2.3"
5353
pep8-naming = "^0.12.1"
5454
pre-commit-hooks = "^4.0.1"
5555
typeguard = "^2.13.2"
56-
sphinx-rtd-theme = "^1.0.0"
5756
coverage = {version = "6.2", extras = ["toml"]}
5857
pyupgrade = "^2.29.1"
58+
furo = ">=2021.11.12"
5959

6060
[tool.coverage.paths]
6161
source = ["src", "*/site-packages"]

0 commit comments

Comments
 (0)