A glue between your Pelican/Jekill powered blog and Draftin.com writing service.
pip install thebot-draftin, then run TheBot with additional
draftin and parameters where you content is stored and how to regenerate a
thebot --plugins draftin,and-others --adapters http,and-others \ --http-host 0.0.0.0 --http-port 9991 \ --draftin-secret xxx \ --documents-dir='site/content' \ --update-command='bash -c "cd site && make html"'
After that, go to Draft's Places To Publish and add url
as a WebHook.
That is it. Now, when you'll do a 'Publish' at the Draft, it will send a document to TheBot. TheBot will save this document
site/content directory using slugified document's name plus
.md extension. And finally, it will call
make html command
to regenerate html content of the blog.
How to make this plugin more amazing?
- support notification, and allow TheBot to notify you on successful publishing;
- track document ids and let user rename a document after publishing (TheBot have to delete old Markdown file and to create a new one. Right now, such renaming will create two published documents.)
- allow to delete published document using some metadata in the document, like
- Alexander Artemenko <firstname.lastname@example.org>