diff --git a/sphinx/themes/basic/static/doctools.js b/sphinx/themes/basic/static/doctools.js index b6fba5f1e6b..86420becac7 100644 --- a/sphinx/themes/basic/static/doctools.js +++ b/sphinx/themes/basic/static/doctools.js @@ -196,7 +196,7 @@ var Documentation = { $('div[id] > :header:first').each(function() { $('\u00B6'). attr('href', '#' + this.id). - attr('title', _('Permalink to this headline')). + attr('title', _('Permalink to this heading')). appendTo(this); }); $('dt[id]').each(function() { diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index 55191aa1ac9..b9c4b9e24c8 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -434,12 +434,12 @@ def depart_title(self, node: Element) -> None: node.parent.hasattr('ids') and node.parent['ids']): # add permalink anchor if close_tag.startswith('%s' % ( - _('Permalink to this headline'), + _('Permalink to this heading'), self.config.html_permalinks_icon)) elif isinstance(node.parent, nodes.table): self.body.append('') diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py index f386cc398ee..b08726fca3a 100644 --- a/sphinx/writers/html5.py +++ b/sphinx/writers/html5.py @@ -389,12 +389,12 @@ def depart_title(self, node: Element) -> None: node.parent.hasattr('ids') and node.parent['ids']): # add permalink anchor if close_tag.startswith('%s' % ( - _('Permalink to this headline'), + _('Permalink to this heading'), self.config.html_permalinks_icon)) elif isinstance(node.parent, nodes.table): self.body.append('') diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 3a468df4a14..f83b9df9074 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -1664,7 +1664,7 @@ def test_html_permalink_icon(app): assert ('

The basic Sphinx documentation for testing[PERMALINK]

' in content) + 'title="Permalink to this heading">[PERMALINK]' in content) @pytest.mark.sphinx('html', testroot='html_signaturereturn_icon')