Files
guru/dev-python/textual/files/fix-mkdocstrings.patch
Henri Gasc 30eaec69df dev-python/textual: add 0.52.1, drop 0.47.1
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
2024-03-11 09:42:06 +01:00

34 lines
1.6 KiB
Diff

diff --git a/docs/_templates/python/material/_base/class.html b/docs/_templates/python/material/_base/class.html
index 120fe338f..731d2ae73 100644
--- a/docs/_templates/python/material/_base/class.html
+++ b/docs/_templates/python/material/_base/class.html
@@ -46,7 +46,7 @@
{% if "__init__" in class.members %}
{% with function = class.members["__init__"] %}
{% filter highlight(language="python", inline=False) -%}
- def {% filter format_signature(config.line_length) %}
+ def {% filter format_signature(function, config.line_length) %}
__init__{% include "signature.html" with context %}
{% endfilter %}:
{% endfilter %}
diff --git a/docs/_templates/python/material/_base/function.html b/docs/_templates/python/material/_base/function.html
index 58a4c37ad..c5e574ffa 100644
--- a/docs/_templates/python/material/_base/function.html
+++ b/docs/_templates/python/material/_base/function.html
@@ -37,7 +37,7 @@
{% if config.separate_signature %}
{% filter highlight(language="python", inline=False) %}
-def {% filter format_signature(config.line_length) %}
+def {% filter format_signature(function, config.line_length) %}
{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
{% include "signature.html" with context %}
{% endfilter %}:
diff --git a/docs/api/constants.md b/docs/api/constants.md
index f4d97e8df..88aa35b2f 100644
--- a/docs/api/constants.md
+++ b/docs/api/constants.md
@@ -1 +1 @@
-::: textuals.constants
+::: textual.constants