On Feb 9, 2009, at 3:59 PM, Tim Michelsen wrote:

>
> Hello Sphinxers,
> I was asembling a set of tutorials and recipies.
> In order to make sure that every example I included in my code  
> actually
> works, I included them as doctests like
>
> this is my example::
>>>> 1+1
>
> In order to nable readers to copy&paste the code directly in the
> interactive shell (Ipython), I would like to have the possibility to
> disable those ">>>" markers.
> My idea:
> Include a small JavaScript code which lets the users
> * switch between normal and interactive code style
> * switch line numbers on and off.

Presumably the doctests include output.  How do you handle that,  
remove the lines or insert a comment marker so they aren't part of the  
executed code when the text is pasted into the interpreter/script?

>
>
> The MoinMoin wiki software [1] already includes such a functionality.
> Maybe we could borrow from there?
>
> What do you think?
>
> Is there a good example on how to use doctests with Sphinx?
> I didn't understand the codee from the documentation of Sphinx.
>
> Kind regards,
> Timmie
>
> [1] example: http://www.scipy.org/Cookbook/DataFrame
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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