On Mon, Jan 16, 2012 at 2:28 PM, h...@silicos-it.com
<h...@silicos-it.com> wrote:
> Dear,
>
> I would like to build a set of static webpages using Sphinx. On one of
> these pages I want to include some text that should be generated on
> the fly at Sphinx build time using a command-line script (could be a
> Python script, but could just as well be some other tool).
>
> As an example, I would like to be able to build a static webpage that
> shows my directory structure at the moment of Sphinx build time. As a
> typical script to generate this, I could use for example the Python-
> code 'print os.system('ls')'. The output of this script should be
> included in my webpage (in a statical way, I don't need a dynamic
> page).
>
> Is there any directive in Sphinx that could help me with that?

You can edit the makefile to call your script before it calls
sphinx-build. That's what I do.

Skipper

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to