Skip to content

Commit

Permalink
Use sphinx-rtd-theme & update sphinx (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame authored Oct 19, 2023
1 parent 01b9755 commit 5d8546f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 26 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx==7.2.6
sphinx-rtd-theme==1.3.0
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def docs_build(session: Session) -> None:
"""Build the documentation."""
args = session.posargs or ["docs", "docs/_build"]
session.install(".")
session.install("sphinx", "sphinx-click")
session.install("sphinx", "sphinx-click", "sphinx-rtd-theme")

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

build_dir = Path("docs", "_build")
if build_dir.exists():
Expand Down
79 changes: 56 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ safety = "^2.3.5"
mypy = "^1.6"
typeguard = "^4.1.5"
xdoctest = {extras = ["colors"], version = "^1.1.1"}
sphinx = "^4.2.0"
sphinx = "^7.1.0"
sphinx-autobuild = "^2021.3.14"
pre-commit = "^3.5.0"
flake8 = "^5.0.4"
Expand All @@ -53,6 +53,7 @@ pep8-naming = "^0.13.3"
darglint = "^1.8.1"
reorder-python-imports = "^3.9.0"
pre-commit-hooks = "^4.4.0"
sphinx-rtd-theme = "^1.3.0"

[tool.poetry.scripts]
freebox_api = "freebox_api.__main__:main"
Expand Down

0 comments on commit 5d8546f

Please sign in to comment.