Skip to content

Commit eca0cd3

Browse files
authored
Merge pull request #92 from Chilipp/fix-docs
fix docs
2 parents a7fea62 + 246780b commit eca0cd3

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ target/
6363
# Example ipython notebook checkpoints
6464
*.ipynb_checkpoints/
6565

66-
.mypy_cache
66+
.mypy_cache
67+
venv/

.readthedocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
version: 2
22

3+
# Set the OS, Python version and other tools you might need
4+
5+
build:
6+
os: ubuntu-22.04
7+
tools:
8+
python: "3.11"
9+
310
sphinx:
411
configuration: docs/conf.py
512

613
python:
7-
version: 3.8
814
install:
915
- method: pip
1016
path: .

docs/conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import os
1717
import os.path as osp
1818
import re
19-
import six
2019
import autodocsumm
2120

2221
# If extensions (or modules to document with autodoc) are in another directory,
@@ -131,11 +130,7 @@
131130

132131
# The theme to use for HTML and HTML Help pages. See the documentation for
133132
# a list of builtin themes.
134-
135-
if not on_rtd: # only import and set the theme if we're building docs locally
136-
import sphinx_rtd_theme
137-
html_theme = 'sphinx_rtd_theme'
138-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
133+
html_theme = 'sphinx_rtd_theme'
139134

140135
# otherwise, readthedocs.org uses their theme by default, so no need to specify
141136

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Sphinx<7
1+
Sphinx
2+
sphinx-rtd-theme

0 commit comments

Comments
 (0)