Re: [Tutor] Making pretty web pages from python code examples?

2010-04-14 Thread Modulok
> : Basically, I'm trying to read python code examples from files on > : disk and generate pretty little web pages from them. > I think you may want sphinx [0] which is available in PyPI [1]. > > It understands reStrucTured text and adds a few Sphinx-specific > directives/features for pulling th

Re: [Tutor] Making pretty web pages from python code examples?

2010-04-13 Thread Stefan Behnel
Modulok, 13.04.2010 16:52: ... generate pretty little web pages ... Note that the 'pretty' bit usually doesn't reside in HTML but in CSS. Stefan ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho

Re: [Tutor] Making pretty web pages from python code examples?

2010-04-13 Thread Martin A. Brown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, : Is there an easy way to get a docstring from a python file, : without first importing it? : : Basically, I'm trying to read python code examples from files on : disk and generate pretty little web pages from them. I invision : the d

[Tutor] Making pretty web pages from python code examples?

2010-04-13 Thread Modulok
Is there an easy way to get a docstring from a python file, without first importing it? Basically, I'm trying to read python code examples from files on disk and generate pretty little web pages from them. I invision the docstring appearing as the main text on the page, with the rest of the code i