Pierre, As I understand your message, I share your interest, it seemed to me that pathto() in .templates/layout.html is the way to go, however I couldn't get a fully qualified file name.
Georg suggestedt using "html-page-context" event to customize what pathto() does . I don't understand what that means, but I'll be returning soon to this question. search http://groups.google.com/group/sphinx-dev/ for "pathto" to see the thread. Thanks, Kent On Wed, Sep 17, 2008 at 9:07 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > > All, > > I'm writing a directive to automatically produce some plots from some scripts. > > How can I intercept the name of the .rst file where this directive is > present ? > > For example, let's say I have a file source/examples/plotting/basics.rst where > my directive ".. plot:: name_of_the_script" is present somewhere. I need to > find that the file is in "source/examples/plotting/", so that I can know how > far back I need to go to access the files (that are copied in build). > > Any idea or pointer to the famous manual are welcome. > Thx a lot in advance! > P. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
