Skip to content

Commit 22af083

Browse files
authored
Merge pull request #290 from php-http/update-sphinx
Update Pipfile
2 parents 7e368e8 + 8021a29 commit 22af083

File tree

8 files changed

+54
-40
lines changed

8 files changed

+54
-40
lines changed

.github/workflows/spellcheck.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: spellcheck
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
- name: Install dependencies
17+
run: |
18+
sudo apt update && sudo apt install -y enchant
19+
python -m pip install --upgrade setuptools
20+
python -m pip install --upgrade pyenchant sphinx-rtd-theme sphinxcontrib-spelling
21+
- name: Check spelling
22+
# show list of misspelled words
23+
run: |
24+
make spelling
25+
if [[ -s "_build/spelling/output.txt" ]]; then cat "_build/spelling/output.txt"; fi
26+
if [[ -s "_build/spelling/output.txt" ]]; then false; fi

.readthedocs.yaml

Lines changed: 13 additions & 0 deletions
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

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# You can set these variables from the command line.
44
SPHINXOPTS =
5-
SPHINXBUILD = pipenv run sphinx-build
5+
SPHINXBUILD = sphinx-build
66
PAPER =
77
BUILDDIR = _build
88

Pipfile

Lines changed: 5 additions & 5 deletions
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

Lines changed: 4 additions & 5 deletions
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-

httplug/backwards-compatibility.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ Discovery
2020
The order of the strategies is not part of our BC promise. The strategies themselves are marked
2121
as ``@internal`` so they are also not part of our BC promise.
2222
However, we do promise that we will not remove a strategy neither will we remove classes from the
23-
``CommonClassesStrategy``. We will also support the following Puli versions:
24-
25-
* 1.0.0-beta9
26-
* 1.0.0-beta10
23+
``CommonClassesStrategy``.
2724

2825
The consequences of the BC promise for the discovery library is that you can not rely on the *same* client to be
2926
returned in the future. However, if discovery does find a client now, you can be sure that after future updates it will still discover a client.

requirements.txt

Lines changed: 4 additions & 4 deletions
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)