I'd like to insert a custom node into a doctree and save these changes to file.
I'm reading the following RST file...
Hello World!
############
:date: 2010-10-03 10:20
:author: James Bond
This is a test.
like this:
doctree = docutils.core.publish_doctree(open('test.rst').read())
I'd now like to insert a new node :id: 234123 to the docinfo and save it as test.rst. But how?