[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Using reStructuredText for document sources



Hi,

I will check that the current page layout is supported. It is one reason I am putting some effort into a .doc to .rst translator. I don't want to start editing reST files only to find out later that docutils or Sphinx doesn't support some feature we expect. One reason to move to reST is more markup options. For instance, in SVN rev 1549 I made an addition makeref.py to do something which I have since forgotten. With reST, someone else has gone to the trouble of documenting it. Also, in the current formatter there is no control over what gets highlighted and such. Nor can new keywords be add to an index without extending makeref.py. Finally, some consistent policy is desirable for things like documenting function arguments. If some effort is made to clean up the documents, then it would also be the time to change to a new system if desired.

Lenard

On 03/03/11 04:00 PM, René Dudfield wrote:
Hi,


What it would give us.
=================

- a documented format (our custom format isn't widely known, even though it's very simple).
- reSTructuredText can be converted into other formats.

I think just those two are probably worthwhile enough reasons to do it.

The other question to ask is, can we cover all the functionality of the current system? I think so.


Formatting
==========

I like the current html output mostly. It'd be nice if we could keep it to being very similar. Can we do that easily with .rst ?



cya,

On Thu, Mar 3, 2011 at 11:41 PM, René Dudfield <renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>> wrote:

    Hi,

    What does it gain?



    On Thu, Mar 3, 2011 at 11:09 PM, Lenard Lindstrom <len-l@xxxxxxxxx
    <mailto:len-l@xxxxxxxxx>> wrote:

        Hi everyone,

        It seems that as useful as it has been makeref,py, the custom
        Pygame document generator, is showing its age. It makes little
        sense to continue maintaining makeref.py when other, more
        powerful, document generators are available off-the-shelf. So
        I am proposing to convert Pygame's custom .doc files to
        reSTructuredText, and have docutils and Sphinx generate the
        documents. As well as being the tool chain used to produce the
        Python documents, Marcus uses reST for pgreloaded. Also,
        Julian (jug) has translated the Pygame doc source to reST once
        already. But I admit I did not fully appreciated his efforts
        at the time.

        I am already improving the makeref.py tokenizer for use in a
        Pygame DOC to reST translator. Julian already wrote a
        makeref.py based translator. I hope to using his reST version
        of the Pygame doc sources as a guide for a translator that
        produces reST files closer to the final product. If nothing
        else, makeref.py will generate somewhat cleaner web pages.

        Before going any further I need to know what to keep from the
        current Pygame document layout, what should change, and what
        can be added. I suppose this has been discussed before, but I
        kind of missed it. Also, if there are objections to moving to
        reST now is the time to raise them.

        Lenard Lindstrom