summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-03-11 14:26:34 -0800
committerDavid Lord <davidism@gmail.com>2022-03-11 14:26:34 -0800
commitaa3d688a15aece0a0de0b59f94dda870c724bc87 (patch)
treeabdd2edb2ccc4bb1b128d4e1a1352c07b7c6c7d4
parentcf215390d4a4d6f0a4de27e2687eed176878f13d (diff)
parent7c3b7ca95cb17589dd64fddc957035336180b90d (diff)
downloadjinja2-2.11.x.tar.gz
Merge branch '2.10.x' into 2.11.x2.11.x
-rw-r--r--.readthedocs.yaml14
-rw-r--r--docs/faq.rst2
-rw-r--r--docs/requirements-post.txt1
-rw-r--r--docs/requirements.txt1
4 files changed, 17 insertions, 1 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
new file mode 100644
index 0000000..6cbcad7
--- /dev/null
+++ b/.readthedocs.yaml
@@ -0,0 +1,14 @@
+version: 2
+build:
+ os: ubuntu-20.04
+ tools:
+ python: "3.9"
+python:
+ install:
+ - requirements: docs/requirements.txt
+ - method: pip
+ path: .
+ - requirements: docs/requirements-post.txt
+sphinx:
+ builder: dirhtml
+ fail_on_warning: false
diff --git a/docs/faq.rst b/docs/faq.rst
index 294fef1..3d38e10 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -95,7 +95,7 @@ means that you will less likely have an XSS problem it also causes a huge
amount of extra processing in the template engine which can cause serious
performance problems. As Python doesn't provide a way to mark strings as
unsafe Jinja has to hack around that limitation by providing a custom
-string class (the :class:`Markup` string) that safely interacts with safe
+string class (the :class:`~markupsafe.Markup` string) that safely interacts with safe
and unsafe strings.
With explicit escaping however the template engine doesn't have to perform
diff --git a/docs/requirements-post.txt b/docs/requirements-post.txt
new file mode 100644
index 0000000..44857c8
--- /dev/null
+++ b/docs/requirements-post.txt
@@ -0,0 +1 @@
+markupsafe<2
diff --git a/docs/requirements.txt b/docs/requirements.txt
index cfe1fd7..92d3efa 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -2,3 +2,4 @@ Sphinx~=2.1.2
Pallets-Sphinx-Themes~=1.2.0
sphinxcontrib-log-cabinet~=1.0.1
sphinx-issues~=1.2.0
+markupsafe<2