-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Make links to special objects prefixable #932
Conversation
3f74d25
to
ea130b1
Compare
phpDocumentor/guides#945 will take care of duplicates. :name: can then be used to set an individual anchor if there are duplicates phpDocumentor/guides#932 takes care of the missing link prefix
phpDocumentor/guides#945 will take care of duplicates. :name: can then be used to set an individual anchor if there are duplicates phpDocumentor/guides#932 takes care of the missing link prefix
phpDocumentor/guides#945 will take care of duplicates. :name: can then be used to set an individual anchor if there are duplicates phpDocumentor/guides#932 takes care of the missing link prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wauw... what an ugly hack to make this work. But as it is compatible with sphinx let's do it this way.
I do wonder if I saw something that's not working as expected but it's a bit hard to see just based on the code.
If we have both an anchor like '.. _demo:' and a confval of the same name we would get duplicate id's and the links to those two elements could not be distinguished. Sphinx solves this by prefixing all confval links with "confval-". Therefore, I introduce the possibility of prefixing links to distinguished linkable objects. related #924 releases: main, 1.0
ea130b1
to
59accac
Compare
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
If we have both an anchor like '.. _demo:' and
a confval of the same name we would get duplicate id's and the links to those two elements could not be distinguished. Sphinx solves this by prefixing all confval links with "confval-".
Therefore I introduces the possibility of prefixing links to destinguished linkable objects.
related #924
releases: main, 1.0