Skip to content

Commit

Permalink
Stop using xrefs in page titles
Browse files Browse the repository at this point in the history
Closes #427
  • Loading branch information
AWhetter committed Apr 12, 2024
1 parent 3b037c7 commit f23b079
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions autoapi/templates/python/class.rst
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions autoapi/templates/python/data.rst
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions autoapi/templates/python/function.rst
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions autoapi/templates/python/method.rst
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions autoapi/templates/python/module.rst
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions autoapi/templates/python/property.rst
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
1 change: 1 addition & 0 deletions docs/changes/427.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stopped using xrefs in page titles

0 comments on commit f23b079

Please sign in to comment.