-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Warning and Note blocks are rendered out of order #889
Comments
Thanks for providing a good description fo the issue along with examples. I don't think we do anything special with the I'm afraid we don't have the resources to support this project super well at the moment but it is something we can look into when we have time. |
I haven't dived fully into the code yet, but I think I know the basics of what is going on here. Notes and Warnings appear as This explains the behavior, which I am seeing where all the notes and warnings appear together out of context at the end of the Breathe output: Time permitting, I'll put together a PR soon. |
Sorry, I spoke too soon, not being familiar with how Verbatim works. My case is different as the warnings and notes are generated from Markdown content and rendered into Doxygen XML as noted above. It looks like verbatim XML elements should remain in context. I'll look at both cases as I work through this. |
So completely wrong with my guess. The culprit for both problems is sphinxrenderer.py lines 889 and 890: pullup(candNode, nodes.note, admonitions)
pullup(candNode, nodes.warning, admonitions) |
Is there a reason that this would be a good idea, since it appears to be on purpose? |
For future reference, I replied in PR #910 (comment). |
This also happens for inline tables.
|
This seems related to #835, but I was focused on the |
I'm not 100% sure whether this is an issue with Breathe or Sphinx itself, but:
With the following Restructured text:
Will generate the following output:
The warning block is ordered after the code block. You can also see it in action here: https://simontoth.eu/modern-documentation/other.html
The text was updated successfully, but these errors were encountered: