Hi, In fact, Sphinx doesn't support source-read event for included files. `source-read` event will be emitted when a source file has been read "AS A REGULAR FILE" instead of "A INCLUDED FILE".
If you create your custom 'include' directive, you can emit any events for each included files. Regards, -- Takayuki SHIMIZUKAWA http://about.me/shimizukawa 2015年11月8日(日) 3:02 Andrea Cassioli <[email protected]>: > Hi, > I want to include a doc file, I do > > .. include::filename.rst > > In that file there is some text that I am used to process during the > source_read event. Basically I make some substitutions and it works fine if > the file is included using toctree. But when I use include directive it > seems the event is not generated for included file. > > any clue? > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
