diff --git a/autoapi/templates/python/class.rst b/autoapi/templates/python/class.rst index b211ef5..379f83a 100644 --- a/autoapi/templates/python/class.rst +++ b/autoapi/templates/python/class.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:class:`{{ obj.id }}` -========={{ "=" * obj.id | length }} +{{ obj.id }} +{{ "=" * obj.id | length }} {% endif %} {% set visible_children = obj.children|selectattr("display")|list %} diff --git a/autoapi/templates/python/data.rst b/autoapi/templates/python/data.rst index 9466ffb..1a50250 100644 --- a/autoapi/templates/python/data.rst +++ b/autoapi/templates/python/data.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:py:{{ obj.type|truncate(4, True, "", 0) }}:`{{ obj.id }}` -==========={{ "=" * obj.id | length }} +{{ obj.id }} +{{ "=" * obj.id | length }} {% endif %} .. py:{{ obj.type }}:: {% if is_own_page %}{{ obj.id }}{% else %}{{ obj.name }}{% endif %} diff --git a/autoapi/templates/python/function.rst b/autoapi/templates/python/function.rst index 3be1d9d..5dee5aa 100644 --- a/autoapi/templates/python/function.rst +++ b/autoapi/templates/python/function.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:py:func:`{{ obj.id }}` -==========={{ "=" * obj.id | length }} +{{ obj.id }} +{{ "=" * obj.id | length }} {% endif %} .. py:function:: {% if is_own_page %}{{ obj.id }}{% else %}{{ obj.short_name }}{% endif %}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %} diff --git a/autoapi/templates/python/method.rst b/autoapi/templates/python/method.rst index 4b159f0..12d42de 100644 --- a/autoapi/templates/python/method.rst +++ b/autoapi/templates/python/method.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:py:meth:`{{ obj.id }}` -==========={{ "=" * obj.id | length }} +{{ obj.id }} +{{ "=" * obj.id | length }} {% endif %} .. py:method:: {% if is_own_page %}{{ obj.id }}{% else %}{{ obj.short_name }}{% endif %}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %} diff --git a/autoapi/templates/python/module.rst b/autoapi/templates/python/module.rst index 8769308..8e12c3f 100644 --- a/autoapi/templates/python/module.rst +++ b/autoapi/templates/python/module.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:py:mod:`{{ obj.id }}` -=========={{ "=" * obj.id|length }} +{{ obj.id }} +{{ "=" * obj.id|length }} .. py:module:: {{ obj.name }} diff --git a/autoapi/templates/python/property.rst b/autoapi/templates/python/property.rst index 0d02925..3e280dc 100644 --- a/autoapi/templates/python/property.rst +++ b/autoapi/templates/python/property.rst @@ -1,7 +1,7 @@ {% if obj.display %} {% if is_own_page %} -:py:property:`{{ obj.id }}` -==============={{ "=" * obj.id | length }} +{{ obj.id }} +{{ "=" * obj.id | length }} {% endif %} .. py:property:: {% if is_own_page %}{{ obj.id}}{% else %}{{ obj.short_name }}{% endif %} diff --git a/docs/changes/427.bugfix b/docs/changes/427.bugfix new file mode 100644 index 0000000..590a706 --- /dev/null +++ b/docs/changes/427.bugfix @@ -0,0 +1 @@ +Stopped using xrefs in page titles \ No newline at end of file