On Fri, Aug 29, 2008 at 11:27, Leandro Lucarella <llucax@...> wrote:
> Leandro Lucarella, el 27 de agosto a las 15:52 me escribiste:
>> David Goodger, el 27 de agosto a las 10:52 me escribiste:
>> > > What about "filtering" image directives to add a prefix to the image
>> > > location?
>> > > I think I saw something like this (I think sphynx plug-ins use it).
>> >
>> > I don't know what you mean by "filtering". In any case, it's not
>> > provided by core Docutils. I don't know what's provided by Sphinx.
>>
>> I was talking about this:
>>
>> Sphinx.add_transform(transform)¶
>> Add the standard docutils Transform subclass transform to the list of
>> transforms that are applied after Sphinx parses a reST document.
>>
>> http://sphinx.pocoo.org/ext/appapi.html#sphinx.application.Sphinx.add_transform
>
> I'm sorry to insist, but is there anything I can do with a Transform
> subclass? I talking is plain ignorance.
Yes, a Transform has access to the complete document tree and can
modify it arbitrarily.
--
David Goodger <http://python.net/~goodger>
|