Skip to content

Commit 14c2ae7

Browse files
committed
Add raw HTML fragments to keep old links working
1 parent e2867fd commit 14c2ae7

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Doc/c-api/structures.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,15 @@ definition with the same method name.
382382
Accessing attributes of extension types
383383
---------------------------------------
384384
385+
.. raw:: html
386+
387+
<!-- Keep old URL fragments working (see gh-97908) -->
388+
<span id='c.PyMemberDef.PyMemberDef.name'></span>
389+
<span id='c.PyMemberDef.PyMemberDef.offset'></span>
390+
<span id='c.PyMemberDef.PyMemberDef.type'></span>
391+
<span id='c.PyMemberDef.PyMemberDef.flags'></span>
392+
<span id='c.PyMemberDef.PyMemberDef.doc'></span>
393+
385394
.. c:type:: PyMemberDef
386395
387396
Structure which describes an attribute of a type which corresponds to a C
@@ -603,6 +612,15 @@ Macro name C type Python type
603612
Defining Getters and Setters
604613
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
605614
615+
.. raw:: html
616+
617+
<!-- Keep old URL fragments working (see gh-97908) -->
618+
<span id='c.PyGetSetDef.PyGetSetDef.name'></span>
619+
<span id='c.PyGetSetDef.PyGetSetDef.get'></span>
620+
<span id='c.PyGetSetDef.PyGetSetDef.set'></span>
621+
<span id='c.PyGetSetDef.PyGetSetDef.docstring'></span>
622+
<span id='c.PyGetSetDef.PyGetSetDef.closure'></span>
623+
606624
.. c:type:: PyGetSetDef
607625
608626
Structure to define property-like access for a type. See also description of

Doc/c-api/type.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,15 @@ The following functions and structs are used to create
318318
base classes provided in *Py_tp_base[s]* slots.
319319
Previously, only :class:`type` instances were returned.
320320
321+
.. raw:: html
322+
323+
<!-- Keep old URL fragments working (see gh-97908) -->
324+
<span id='c.PyType_Spec.PyType_Spec.name'></span>
325+
<span id='c.PyType_Spec.PyType_Spec.basicsize'></span>
326+
<span id='c.PyType_Spec.PyType_Spec.itemsize'></span>
327+
<span id='c.PyType_Spec.PyType_Spec.flags'></span>
328+
<span id='c.PyType_Spec.PyType_Spec.slots'></span>
329+
321330
.. c:type:: PyType_Spec
322331
323332
Structure defining a type's behavior.
@@ -347,6 +356,12 @@ The following functions and structs are used to create
347356
348357
Each slot ID should be specified at most once.
349358
359+
.. raw:: html
360+
361+
<!-- Keep old URL fragments working (see gh-97908) -->
362+
<span id='c.PyType_Slot.PyType_Slot.slot'></span>
363+
<span id='c.PyType_Slot.PyType_Slot.pfunc'></span>
364+
350365
.. c:type:: PyType_Slot
351366
352367
Structure defining optional functionality of a type, containing a slot ID

0 commit comments

Comments
 (0)