-
Notifications
You must be signed in to change notification settings - Fork 25
Avoid link with same ID's #152
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
Conversation
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.
Thanks Antoine for fixing this annoying bug 🙇
New issue opened symfony/symfony-docs#18194 Merging this PR will be very cool 😃 |
class TitleNodeRenderer implements NodeRenderer | ||
{ | ||
/** @var TitleNode */ | ||
private $titleNode; |
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.
@javiereguiluz can we use typed properties?
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.
Let's check that ... but do it in other PR so we can merge and deploy this one as soon as possible. Thanks.
ee4e64f
to
048f43e
Compare
Thanks Antoine! Let's now tag a new version and deploy it in production so these issues can be fixed soon. Cheers! |
Hello,
This PR try to generate unique link id.
Relative issues in symfony docs:
symfony/symfony-docs#16417
symfony/symfony-docs#16721
rst-parser instantiate NodeRenderer for each node so the only way I found is to use static property and save when id is already rendered on same page.
Examples of changes on symfony-docs:
alamirault/sf-doc-output@45a5281