At some point I thought I should edit and post notes directly from Emacs. I managed to work with
Blogspot API via GNU
curl but stuck at writing Emacs mode. The legacy of those days
can be found at:
Another issue which concerned me was keeping source text of notes under source control. With such thoughts the task became too complicated to be solved by me at that time.
So I stopped blogging until was caught by static blog movement.
Because of spent time on reStructuredText syntax and document model:
and because I hated to use GitHub (and so Jekyll) for blogging as this led to same dependency on service provider I decided to make own static blog engine.
It take some time on figuring out how to pragmatically transform
.rst file into
import docutils.core dom = docutils.core.publish_doctree("**Hello**") print(dom.pformat()) import docutils.writers.html4css1 dom.settings.__dict__['xml_declaration'] = None dom.settings.__dict__['doctype_declaration'] = None dom.settings.__dict__['stylesheet'] = "" dom.settings.__dict__['stylesheet_path'] = None dom.settings.__dict__['math_output'] = "HTML" dom.settings.__dict__['initial_header_level'] = 1 visitor = docutils.writers.html4css1.HTMLTranslator(dom) dom.walkabout(visitor) print(visitor.astext())
and leading to custom
docutils.nodes.GenericNodeVisitor for full power to apply own templates
and HTML wrapping patterns.
See source code of static blog generator (currently at first stage) at:
and blog served by it at:
By now I have no any barrier to publish notes on Internet and my 568 unpublished notes awaiting their order go out.
Bye-bye for the next time!