Skip to content

Commit cadade9

Browse files
authored
Fix Read the Docs builds (#345)
* Thoroughly lock doc build requirements This ensures doc builds are reproducible on Read the Docs * Resolve two warnings emitted by Sphinx when building docs
1 parent 40acc80 commit cadade9

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

.readthedocs.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
3+
build:
4+
os: 'ubuntu-22.04'
5+
tools:
6+
python: '3.12'
7+
8+
sphinx:
9+
configuration: 'docs/conf.py'
10+
fail_on_warning: false
11+
12+
python:
13+
install:
14+
- requirements: 'docs/requirements.txt'

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@
255255

256256

257257
# Example configuration for intersphinx: refer to the Python standard library.
258-
intersphinx_mapping = {'http://docs.python.org/': None}
258+
intersphinx_mapping = {'py': ('http://docs.python.org/', None)}

docs/requirements.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
sphinxcontrib-httpdomain==1.7.0
1+
alabaster==0.7.13 ; python_version >= "3.8"
2+
babel==2.14.0 ; python_version >= "3.8"
3+
certifi==2024.2.2 ; python_version >= "3.8"
4+
charset-normalizer==3.3.2 ; python_version >= "3.8"
5+
colorama==0.4.6 ; python_version >= "3.8" and sys_platform == "win32"
6+
docutils==0.20.1 ; python_version >= "3.8"
7+
idna==3.6 ; python_version >= "3.8"
8+
imagesize==1.4.1 ; python_version >= "3.8"
9+
importlib-metadata==7.0.1 ; python_version < "3.10" and python_version >= "3.8"
10+
jinja2==3.1.3 ; python_version >= "3.8"
11+
markupsafe==2.1.5 ; python_version >= "3.8"
12+
packaging==23.2 ; python_version >= "3.8"
13+
pygments==2.17.2 ; python_version >= "3.8"
14+
pytz==2024.1 ; python_version < "3.9" and python_version >= "3.8"
15+
requests==2.31.0 ; python_version >= "3.8"
16+
snowballstemmer==2.2.0 ; python_version >= "3.8"
17+
sphinx==7.1.2 ; python_version >= "3.8"
18+
sphinx-rtd-theme==2.0.0 ; python_version >= "3.8"
19+
sphinxcontrib-applehelp==1.0.4 ; python_version >= "3.8"
20+
sphinxcontrib-devhelp==1.0.2 ; python_version >= "3.8"
21+
sphinxcontrib-htmlhelp==2.0.1 ; python_version >= "3.8"
22+
sphinxcontrib-httpdomain==1.8.1 ; python_version >= "3.8"
23+
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.8"
24+
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.8"
25+
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.8"
26+
urllib3==2.2.1 ; python_version >= "3.8"
27+
zipp==3.17.0 ; python_version < "3.10" and python_version >= "3.8"

flask_cors/extension.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ class CORS(object):
7070
The origin(s) may be regular expressions, case-sensitive strings,
7171
or else an asterisk.
7272
73-
:note: origins must include the schema and the port (if not port 80),
74-
e.g.,
75-
`CORS(app, origins=["http://localhost:8000", "https://example.com"])`.
73+
.. note::
74+
75+
origins must include the schema and the port (if not port 80),
76+
e.g.,
77+
`CORS(app, origins=["http://localhost:8000", "https://example.com"])`.
7678
7779
Default : '*'
7880
:type origins: list, string or regex

0 commit comments

Comments
 (0)