summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-13 10:36:11 -0700
committerDavid Lord <davidism@gmail.com>2021-04-13 10:36:11 -0700
commitf61cc84dbafb83f5c8a65a0fe088355b1b6aceb8 (patch)
treead24092e80230739025b2d3ea7c15a9688eecb8c /docs
parent414a8c436534ea67d914c66ffd0887cfd4ea1f3b (diff)
downloadjinja2-f61cc84dbafb83f5c8a65a0fe088355b1b6aceb8.tar.gz
unique links for filters, tests, globals
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py1
-rw-r--r--docs/templates.rst13
2 files changed, 12 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 7dd56f8..ca6763c 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 00d998e..0762e4d 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