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