Skip to content

Commit

Permalink
Fix Read the Docs builds (#345)
Browse files Browse the repository at this point in the history
* Thoroughly lock doc build requirements

This ensures doc builds are reproducible on Read the Docs

* Resolve two warnings emitted by Sphinx when building docs
  • Loading branch information
kurtmckee committed Mar 26, 2024
1 parent 40acc80 commit cadade9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yaml
@@ -0,0 +1,14 @@
version: 2

build:
os: 'ubuntu-22.04'
tools:
python: '3.12'

sphinx:
configuration: 'docs/conf.py'
fail_on_warning: false

python:
install:
- requirements: 'docs/requirements.txt'
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -255,4 +255,4 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
intersphinx_mapping = {'py': ('http://docs.python.org/', None)}
28 changes: 27 additions & 1 deletion docs/requirements.txt
@@ -1 +1,27 @@
sphinxcontrib-httpdomain==1.7.0
alabaster==0.7.13 ; python_version >= "3.8"
babel==2.14.0 ; python_version >= "3.8"
certifi==2024.2.2 ; python_version >= "3.8"
charset-normalizer==3.3.2 ; python_version >= "3.8"
colorama==0.4.6 ; python_version >= "3.8" and sys_platform == "win32"
docutils==0.20.1 ; python_version >= "3.8"
idna==3.6 ; python_version >= "3.8"
imagesize==1.4.1 ; python_version >= "3.8"
importlib-metadata==7.0.1 ; python_version < "3.10" and python_version >= "3.8"
jinja2==3.1.3 ; python_version >= "3.8"
markupsafe==2.1.5 ; python_version >= "3.8"
packaging==23.2 ; python_version >= "3.8"
pygments==2.17.2 ; python_version >= "3.8"
pytz==2024.1 ; python_version < "3.9" and python_version >= "3.8"
requests==2.31.0 ; python_version >= "3.8"
snowballstemmer==2.2.0 ; python_version >= "3.8"
sphinx==7.1.2 ; python_version >= "3.8"
sphinx-rtd-theme==2.0.0 ; python_version >= "3.8"
sphinxcontrib-applehelp==1.0.4 ; python_version >= "3.8"
sphinxcontrib-devhelp==1.0.2 ; python_version >= "3.8"
sphinxcontrib-htmlhelp==2.0.1 ; python_version >= "3.8"
sphinxcontrib-httpdomain==1.8.1 ; python_version >= "3.8"
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.8"
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.8"
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.8"
urllib3==2.2.1 ; python_version >= "3.8"
zipp==3.17.0 ; python_version < "3.10" and python_version >= "3.8"
8 changes: 5 additions & 3 deletions flask_cors/extension.py
Expand Up @@ -70,9 +70,11 @@ class CORS(object):
The origin(s) may be regular expressions, case-sensitive strings,
or else an asterisk.
:note: origins must include the schema and the port (if not port 80),
e.g.,
`CORS(app, origins=["http://localhost:8000", "https://example.com"])`.
.. note::
origins must include the schema and the port (if not port 80),
e.g.,
`CORS(app, origins=["http://localhost:8000", "https://example.com"])`.
Default : '*'
:type origins: list, string or regex
Expand Down

0 comments on commit cadade9

Please sign in to comment.