Skip to content

Commit 47d1831

Browse files
committedSep 18, 2021
update readthedocs setup and dependencies
1 parent 7e368e8 commit 47d1831

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed
 

‎.readthedocs.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: conf.py
5+
6+
# additional formats
7+
formats:
8+
- pdf
9+
10+
python:
11+
version: "3.7"
12+
install:
13+
- requirements: requirements.txt

‎Pipfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ verify_ssl = true
77

88
[packages]
99
sphinx-php = {git = "https://github.com/fabpot/sphinx-php.git"}
10-
sphinx-rtd-theme = "==0.1.6"
11-
sphinxcontrib-spelling = "==4.2.0"
12-
pyenchant = "~=2.0"
13-
docutils = "==0.12"
14-
Sphinx = "~=1.4.0"
10+
sphinx-rtd-theme = "==1.0.0"
11+
sphinxcontrib-spelling = "~=7.2.0"
12+
pyenchant = "~=3.2.1"
13+
docutils = "==0.17"
14+
Sphinx = "~=4.2.0"
1515

1616
[requires]
1717
python_version = "3.7"

‎conf.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@
157157
# so a file named "default.css" will overwrite the builtin "default.css".
158158
html_static_path = ['_static']
159159

160-
def setup(app):
161-
app.add_stylesheet('custom.css')
162-
app.add_stylesheet('highlight.css')
160+
html_css_files = [
161+
'custom.css',
162+
'highlight.css',
163+
]
163164

164165
# Add any extra paths that contain custom files (such as robots.txt or
165166
# .htaccess) here, relative to this directory. These files are copied
@@ -311,5 +312,3 @@ def setup(app):
311312
.. _Composer: https://getcomposer.org
312313
.. _HttplugBundle: https://github.com/php-http/HttplugBundle
313314
"""
314-
315-

‎requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
git+https://github.com/fabpot/sphinx-php.git#egg=sphinx-php
2-
sphinx~=1.4.0
3-
sphinx-rtd-theme==0.1.6
4-
sphinxcontrib-spelling==4.2.0
2+
sphinx~=4.2.0
3+
sphinx-rtd-theme==1.0.0
4+
sphinxcontrib-spelling~=7.2.0
55
pyenchant
6-
docutils==0.12
6+
docutils==0.17

0 commit comments

Comments
 (0)
Please sign in to comment.