chiark / gitweb /
documentation/python: expose also plain relative types to the template.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 24 Sep 2024 16:19:46 +0000 (18:19 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 28 Sep 2024 01:44:25 +0000 (03:44 +0200)
commit595376e6a89f3e3e7c289ea03c59334f391a8d67
tree902c0f3dd8b12bf217033d5a233f5bdcbb3b31db
parent6a48e3e6b3b9afb6f54fde0a8b463bdc5488c7f9
documentation/python: expose also plain relative types to the template.

Not just type links, but also plain types with redundant name prefixes
removed, for use in contexts where a link doesn't make sense, such as
tooltips. They're HTML escaped like the other variants, but right now not
used in the template at all.

The only breaking change is that what was `param.default` / `data.value`
is now in `param.default_link` / `data.value_link`. Those are different
from `param.default` / `data.value` only if the type is a (known) enum,
in which case the link is to the enum value, other than that these two
are the same.
doc/documentation/python.rst
documentation/python.py
documentation/templates/python/details-function.html
documentation/templates/python/entry-data.html
documentation/templates/python/entry-function.html
documentation/test_python/test_pybind.py