From: David Lord Date: Tue, 13 Apr 2021 17:36:11 +0000 (-0700) Subject: unique links for filters, tests, globals X-Git-Tag: 3.0.0rc1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61cc84dbafb83f5c8a65a0fe088355b1b6aceb8;p=thirdparty%2Fjinja.git unique links for filters, tests, globals --- diff --git a/docs/conf.py b/docs/conf.py index 7dd56f83..ca6763cb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,7 @@ extensions = [ "sphinxcontrib.log_cabinet", "sphinx_issues", ] +autodoc_typehints = "description" intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)} issues_github_path = "pallets/jinja" diff --git a/docs/templates.rst b/docs/templates.rst index 00d998ea..0762e4d8 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -1,8 +1,9 @@ +.. py:currentmodule:: jinja2 +.. highlight:: html+jinja + Template Designer Documentation =============================== -.. highlight:: html+jinja - This document describes the syntax and semantics of the template engine and will be most useful as reference to those creating Jinja templates. As the template engine is very flexible, the configuration from the application can @@ -1484,6 +1485,8 @@ is a bit contrived in the context of rendering a template): List of Builtin Filters ----------------------- +.. py:currentmodule:: jinja-filters + .. jinja:filters:: jinja2.defaults.DEFAULT_FILTERS @@ -1492,6 +1495,8 @@ List of Builtin Filters List of Builtin Tests --------------------- +.. py:currentmodule:: jinja-tests + .. jinja:tests:: jinja2.defaults.DEFAULT_TESTS @@ -1502,6 +1507,8 @@ List of Global Functions The following functions are available in the global scope by default: +.. py:currentmodule:: jinja-globals + .. function:: range([start,] stop[, step]) Return a list containing an arithmetic progression of integers. @@ -1625,6 +1632,8 @@ The following functions are available in the global scope by default: Extensions ---------- +.. py:currentmodule:: jinja2 + The following sections cover the built-in Jinja extensions that may be enabled by an application. An application could also provide further extensions not covered by this documentation; in which case there should diff --git a/requirements/dev.txt b/requirements/dev.txt index 4bc39d73..e47b869f 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile # To update, run: # -# pip-compile requirements/dev.in +# pip-compile ../requirements/dev.in # alabaster==0.7.12 # via sphinx @@ -28,7 +28,7 @@ filelock==3.0.12 # via # tox # virtualenv -identify==1.5.13 +identify==2.2.3 # via pre-commit idna==2.10 # via requests @@ -42,9 +42,9 @@ markupsafe==1.1.1 # via jinja2 mypy-extensions==0.4.3 # via mypy -mypy==0.800 - # via -r requirements/typing.in -nodeenv==1.5.0 +mypy==0.812 + # via -r ../requirements/typing.in +nodeenv==1.6.0 # via pre-commit packaging==20.9 # via @@ -53,25 +53,27 @@ packaging==20.9 # sphinx # tox pallets-sphinx-themes==1.2.3 - # via -r requirements/docs.in -pip-tools==5.5.0 - # via -r requirements/dev.in + # via -r ../requirements/docs.in +pep517==0.10.0 + # via pip-tools +pip-tools==6.0.1 + # via -r ../requirements/dev.in pluggy==0.13.1 # via # pytest # tox -pre-commit==2.10.1 - # via -r requirements/dev.in +pre-commit==2.12.0 + # via -r ../requirements/dev.in py==1.10.0 # via # pytest # tox -pygments==2.7.4 +pygments==2.8.1 # via sphinx pyparsing==2.4.7 # via packaging -pytest==6.2.2 - # via -r requirements/tests.in +pytest==6.2.3 + # via -r ../requirements/tests.in pytz==2021.1 # via babel pyyaml==5.4.1 @@ -85,10 +87,10 @@ six==1.15.0 snowballstemmer==2.1.0 # via sphinx sphinx-issues==1.2.0 - # via -r requirements/docs.in -sphinx==2.4.4 + # via -r ../requirements/docs.in +sphinx==3.5.4 # via - # -r requirements/docs.in + # -r ../requirements/docs.in # pallets-sphinx-themes # sphinx-issues # sphinxcontrib-log-cabinet @@ -101,25 +103,26 @@ sphinxcontrib-htmlhelp==1.0.3 sphinxcontrib-jsmath==1.0.1 # via sphinx sphinxcontrib-log-cabinet==1.0.1 - # via -r requirements/docs.in + # via -r ../requirements/docs.in sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.4 # via sphinx toml==0.10.2 # via + # pep517 # pre-commit # pytest # tox -tox==3.21.4 - # via -r requirements/dev.in -typed-ast==1.4.2 +tox==3.23.0 + # via -r ../requirements/dev.in +typed-ast==1.4.3 # via mypy typing-extensions==3.7.4.3 # via mypy urllib3==1.26.4 # via requests -virtualenv==20.4.2 +virtualenv==20.4.3 # via # pre-commit # tox diff --git a/requirements/docs.in b/requirements/docs.in index 42f16511..7ec501b6 100644 --- a/requirements/docs.in +++ b/requirements/docs.in @@ -1,4 +1,4 @@ Pallets-Sphinx-Themes -Sphinx<3 +Sphinx sphinx-issues sphinxcontrib-log-cabinet diff --git a/requirements/docs.txt b/requirements/docs.txt index 2465b614..604c1751 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile # To update, run: # -# pip-compile requirements/docs.in +# pip-compile ../requirements/docs.in # alabaster==0.7.12 # via sphinx @@ -27,8 +27,8 @@ packaging==20.9 # pallets-sphinx-themes # sphinx pallets-sphinx-themes==1.2.3 - # via -r requirements/docs.in -pygments==2.7.4 + # via -r ../requirements/docs.in +pygments==2.8.1 # via sphinx pyparsing==2.4.7 # via packaging @@ -39,10 +39,10 @@ requests==2.25.1 snowballstemmer==2.1.0 # via sphinx sphinx-issues==1.2.0 - # via -r requirements/docs.in -sphinx==2.4.4 + # via -r ../requirements/docs.in +sphinx==3.5.4 # via - # -r requirements/docs.in + # -r ../requirements/docs.in # pallets-sphinx-themes # sphinx-issues # sphinxcontrib-log-cabinet @@ -55,7 +55,7 @@ sphinxcontrib-htmlhelp==1.0.3 sphinxcontrib-jsmath==1.0.1 # via sphinx sphinxcontrib-log-cabinet==1.0.1 - # via -r requirements/docs.in + # via -r ../requirements/docs.in sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.4 diff --git a/requirements/tests.txt b/requirements/tests.txt index 43d6aba6..fbf52fef 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile # To update, run: # -# pip-compile requirements/tests.in +# pip-compile ../requirements/tests.in # attrs==20.3.0 # via pytest @@ -16,7 +16,7 @@ py==1.10.0 # via pytest pyparsing==2.4.7 # via packaging -pytest==6.2.2 - # via -r requirements/tests.in +pytest==6.2.3 + # via -r ../requirements/tests.in toml==0.10.2 # via pytest diff --git a/requirements/typing.txt b/requirements/typing.txt index 2530301a..383fc8f4 100644 --- a/requirements/typing.txt +++ b/requirements/typing.txt @@ -2,13 +2,13 @@ # This file is autogenerated by pip-compile # To update, run: # -# pip-compile requirements/typing.in +# pip-compile ../requirements/typing.in # mypy-extensions==0.4.3 # via mypy -mypy==0.800 - # via -r requirements/typing.in -typed-ast==1.4.2 +mypy==0.812 + # via -r ../requirements/typing.in +typed-ast==1.4.3 # via mypy typing-extensions==3.7.4.3 # via mypy