#2 Interdocument communication

closed
nobody
None
5
2004-02-25
2004-02-17
Polzin
No

I adoped docutils for PEP-like document collection. I
added some new directives and roles. In particular, I
was thinking about some possibility for inter document
communication, e.g., I wanted to have a

.. pepcontents::
:filter: Status!="closed"

directive that scans all PEPs and reads the RFC-fields
in the beginning.

How should one implement such a thing?
A "reader" that reads all documents at once and a
"writer" that outputs all documents?
I did not dare to try this. I wrote a stand alone
preprocessing script that collects the fields' data and
a directive that reads this file and inserts a table,
but I consider this as a rather ugly hack.
Any suggestions?

Discussion

  • David Goodger

    David Goodger - 2004-02-25

    Logged In: YES
    user_id=7733

    > How should one implement such a thing?

    What is it doing, exactly? Is it generating a list of
    closed PEPs?

    > I wrote a stand alone
    > preprocessing script that collects the fields' data and
    > a directive that reads this file and inserts a table,
    > but I consider this as a rather ugly hack.

    Why not put the script's functionality into the directive?

    > Any suggestions?

    In future, it would be better to post to the
    docutils-develop@lists.sf.net mailing list.
    You'll get a quicker response :-)

     
  • David Goodger

    David Goodger - 2004-02-25
    • status: open --> closed
     

Log in to post a comment.