Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit b0ec16e

Browse files
authored
Merge pull request #529 from staticdev/docs/furo
Use furo Sphinx theme for documentation
2 parents 013b24d + 375d805 commit b0ec16e

File tree

6 files changed

+94
-57
lines changed

6 files changed

+94
-57
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
copyright = f"{datetime.now().year}, {author}"
88
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx_click"]
99
autodoc_typehints = "description"
10+
html_theme = "furo"

docs/reference.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
Reference
22
=========
33

4-
.. contents::
5-
:local:
6-
:backlinks: none
74

5+
git_portfolio
6+
-------------
87

9-
git_portfolio.__main__
10-
----------------------
11-
12-
.. automodule:: git_portfolio.__main__
8+
.. automodule:: git_portfolio
139
:members:

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
furo==2021.11.12
12
sphinx==4.3.0
23
sphinx-click==3.0.2

noxfile.py

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

178178
build_dir = Path("docs", "_build")
179179
if build_dir.exists():
@@ -187,7 +187,7 @@ def docs(session: Session) -> None:
187187
"""Build and serve the documentation with live reloading on file changes."""
188188
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
189189
session.install(".")
190-
session.install("sphinx", "sphinx-autobuild", "sphinx-click")
190+
session.install("sphinx", "sphinx-autobuild", "sphinx-click", "furo")
191191

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

0 commit comments

Comments
 (0)