Skip to content

Commit 248900f

Browse files
authored
Merge pull request #114 from mrava87/dev
doc: Migrate doc to pydata-sphinx-theme
2 parents 939c4e7 + 97a4d35 commit 248900f

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-20.04
1111
tools:
12-
python: "3.8"
12+
python: "3.9"
1313
apt_packages:
1414
- libopenblas-dev
1515

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ doc:
4040

4141
docupdate:
4242
cd docs && make html && cd ..
43+
44+
servedoc:
45+
$(PYTHON) -m http.server --directory docs/build/html/
46+
47+
lint:
48+
flake8 docs/ examples/ pyproximal/ pytests/ tutorials/
49+
50+
typeannot:
51+
mypy pyproximal/

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@
9898
.. |year| replace:: {year}
9999
""".format(year=year)
100100

101+
html_static_path = ["_static"]
101102
html_last_updated_fmt = '%b %d, %Y'
102103
html_title = 'PyProximal'
103104
html_short_title = 'PyProximal'
104-
html_logo = '_static/pyproximal.png'
105-
html_favicon = '_static/favicon.ico'
106-
html_static_path = ['_static']
105+
html_logo = 'pyproximal.png'
106+
html_favicon = 'favicon.ico'
107107
html_extra_path = []
108108
pygments_style = 'default'
109109
add_function_parentheses = False
@@ -112,7 +112,7 @@
112112
html_show_copyright = True
113113

114114
# Theme config
115-
html_theme = "sphinx_rtd_theme"
115+
html_theme = "pydata_sphinx_theme"
116116
html_theme_options = {
117117
'logo_only': True,
118118
'display_version': True,

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ docutils<0.18
1313
Sphinx==4.2.0
1414
sphinx-rtd-theme
1515
sphinx-gallery
16+
pydata-sphinx-theme
1617
numpydoc
1718
nbsphinx
1819
image

0 commit comments

Comments
 (0)