Your idea of live code and @rst was also what I intended. In fact I
recently wrote a mail about the use of <<nodes>> markup to get live
documentation (inspired by the experience of Smalltalk). I don't know
why this feature was disabled (of if it was enabled at some point), but
this way of live docs would be a really helpful feature rooted on leo's
background and definitely would improve reading a lot.
Cheers,
Offray
> To document live code with rst2, I used subheading in the code like
> <<subroutine>> and then cloned that node and put it into the rst doc
> tree. [snip]
> Am I missing the point of rst3?
No. Adding what you want has been on the list a long time. I've just
moved it closer to the top of the list.
Edward
<<test>>Here is some text.
Here is some text.
> The reference <<test>> does not get erased, even if the definition actually
> gets inserted beside it. On the other hand, though I can suppress the
> headline of the definition with the rst option, the body of the definition
> gets inserted as a section anyway; definitions are not ignored by rst.
>
> But now I can go see what happens in the code for debugging, since the
> option gives a pointer into the code.
Thanks for this report. Feel free to commit changes if you like, or I
can make any changes you suggest.
Edward