From f61cc84dbafb83f5c8a65a0fe088355b1b6aceb8 Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 13 Apr 2021 10:36:11 -0700 Subject: unique links for filters, tests, globals --- docs/conf.py | 1 + docs/templates.rst | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'docs') 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 -- cgit v1.2.1