Re: intercepting file name in a directive

2008-10-18 Thread Kent Tenney
I ended up chasing your mention of ``html-page-context``, making an extension with this in setup(app) app.connect('html-page-context', sphinxed) in sphinxed(app, pagename, templatename, context, doctree) I munge the fqname and a couple other things, register the result as context['sphi

Re: intercepting file name in a directive

2008-10-18 Thread Georg Brandl
Pierre GM schrieb: > 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 di

Re: Scale directive for images

2008-10-18 Thread Georg Brandl
Gael Varoquaux schrieb: > On Sun, Oct 12, 2008 at 09:28:32PM +0200, Gael Varoquaux wrote: > >> On Sun, Oct 12, 2008 at 08:41:08PM +0200, Gael Varoquaux wrote: > >> > Hi Sphinx! > >> > I have the impression that the scale directive is not honored in the html >> > writer. This puzzles me a bit, a

Re: Python web frameworks luuuuuv Sphinx!

2008-10-18 Thread Sebastien Douche
On Wed, Oct 8, 2008 at 09:40, Georg Brandl <[EMAIL PROTECTED]> wrote: >> I use Kevin's thread to add my congratulation. I switched all internal >> documentation to Sphinx (in my job) and I'm very happy. > > Nice to hear that -- so I can now add "enterprise-ready" to the Sphinx > homepage? ;) No p

Re: accessing bibliographic fields in the template layout.html

2008-10-18 Thread Georg Brandl
Peter Hoffmann schrieb: > This does not work for me. The metadata dict is not available. Can you > test it with the following document? > > === > Test Document > === > > :date: 2008-10-01 > :author: Some User > :copyright: gpl > > .. meta:: >:description lang=en: A test docu