Discussion:
How to traverse and modify nodes in included source?
Konstantin Molchanov
2017-06-14 18:17:27 UTC
Permalink
Hi! I’m trying to develop an extension for including rst sources from git
repos. Including the source itself is trivial, but I need to adjust the
image paths in order to keep them visible in the final doc.

To do that, I need to parse the included source, traverse through its
nodes, find all `image` nodes, and modify their content.

Any suggestions on how to do that?

Here’s the question on Stackoverflow, so if you know the answer, you could
get some karma:
https://stackoverflow.com/questions/44546652/how-do-i-traverse-and-modify-nodes-in-included-source
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...