Skip to content

Commit 09821e0

Browse files
Preserve old panel anchors via injected HTML spans
Instead of excluding the renamed curses.panel.Panel.* IDs from the check-html-ids.py check, keep the old URL fragments working by injecting <span> anchors, as proposed by Stan Ulbrych and done elsewhere (gh-89554). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5fa203b commit 09821e0

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

Doc/library/curses.panel.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ The module :mod:`!curses.panel` defines the following functions:
5656
Panel objects
5757
-------------
5858

59+
.. raw:: html
60+
61+
<!-- Keep the old URL fragments working (see gh-89554) -->
62+
<span id='curses.panel.Panel.above'></span>
63+
<span id='curses.panel.Panel.below'></span>
64+
<span id='curses.panel.Panel.bottom'></span>
65+
<span id='curses.panel.Panel.hidden'></span>
66+
<span id='curses.panel.Panel.hide'></span>
67+
<span id='curses.panel.Panel.move'></span>
68+
<span id='curses.panel.Panel.replace'></span>
69+
<span id='curses.panel.Panel.set_userptr'></span>
70+
<span id='curses.panel.Panel.show'></span>
71+
<span id='curses.panel.Panel.top'></span>
72+
<span id='curses.panel.Panel.userptr'></span>
73+
<span id='curses.panel.Panel.window'></span>
74+
5975
.. class:: panel
6076

6177
Panel objects, as returned by :func:`new_panel` above, are windows with a

Doc/tools/removed-ids.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,3 @@ reference/expressions.html: grammar-token-python-grammar-set_display
3333
# Moved to a different page
3434
c-api/typeobj.html: c.Py_tp_base
3535
c-api/typeobj.html: c.Py_tp_bases
36-
37-
# curses.panel.panel is the correct class name.
38-
library/curses.panel.html: curses.panel.Panel.above
39-
library/curses.panel.html: curses.panel.Panel.below
40-
library/curses.panel.html: curses.panel.Panel.bottom
41-
library/curses.panel.html: curses.panel.Panel.hidden
42-
library/curses.panel.html: curses.panel.Panel.hide
43-
library/curses.panel.html: curses.panel.Panel.move
44-
library/curses.panel.html: curses.panel.Panel.replace
45-
library/curses.panel.html: curses.panel.Panel.set_userptr
46-
library/curses.panel.html: curses.panel.Panel.show
47-
library/curses.panel.html: curses.panel.Panel.top
48-
library/curses.panel.html: curses.panel.Panel.userptr
49-
library/curses.panel.html: curses.panel.Panel.window

0 commit comments

Comments
 (0)