Skip to content

Commit 1bfeb8d

Browse files
authored
Change doc theme (#74)
* change doc thene * ah
1 parent bbd43bc commit 1bfeb8d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
python -m pip install --upgrade pip
5252
#pip install -U -e .[docs]
53-
pip install sphinx
53+
pip install sphinx sphinx_rtd_theme
5454
- name: Build docs
5555
run: |
5656
cd docs

docs/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
sphinxver = sphinx.version_info
4040
extensions = [
4141
"sphinx.ext.autodoc",
42-
"sphinx.ext.napoleon" if sphinxver >= (1, 3) else "sphinxcontrib.napoleon",
42+
"sphinx.ext.napoleon",
43+
"sphinx_rtd_theme",
4344
"pscriptexample",
4445
]
4546

@@ -65,3 +66,7 @@
6566

6667
# The name of the Pygments (syntax highlighting) style to use.
6768
pygments_style = "sphinx"
69+
70+
# The theme to use for HTML and HTML Help pages. See the documentation for
71+
# a list of builtin themes.
72+
html_theme = "sphinx_rtd_theme"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = []
2121
[project.optional-dependencies]
2222
lint = ["ruff"]
2323
tests = ["pytest"]
24-
docs = ["sphinx"]
24+
docs = ["sphinx", "sphinx_rtd_theme"]
2525
dev = ["pscript[lint,tests, docs]"]
2626

2727
[project.urls]

0 commit comments

Comments
 (0)