You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sphinx-users
I want to generate links from web pages that are not generated by sphinx, to headings and sub-headings in web pages that are generated by sphinx.
I have noticed that sphinx automatically generates anchors for such links. For example, using sphinx v4.1.2, if the test_link.rst file contains the text
Title #####
Heading 1 *********
Heading 2 *********
Heading-2 *********
The the file test_link.hmtl generated by sphinx will contain the following link anchor for the headings in test_link.html:
It seems that the heading text has been converted to lower case and that spaces ' ' have been converted to dashes '-'. It also seems if a conversion would yield the same value as a previous coversion, then a numbered id, that increases by one each time it is needed, is used for the link.
1. Are these conversion rules for link anchors correct ?
2. Are there ther conversion rules; e.g., other times that the numbered ids are inserted (and hence increase by one).
2. Are these rules part of the sphinx API; i.e., will it be the same in future versions of sphinx ?
Matt Documatt
unread,
Dec 27, 2021, 9:29:31 AM12/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message