I'd like to create/edit blog posts on an iPad. There's a good Markdown editor called Editorial which supports custom actions, and it's possible to write these actions in Python. In editorial, documents can either be created locally or on Dropbox. I understand that support for Dropbox is being phased out of PA, so this feature is less relevant.
However, I could create a 'publish blog post' action which would do the following:
-
Send the Markdown document to PythonAnywhere. Perhaps I could use the Paramiko module to create a new file in a specific directory and then write the Markdown content to it.
-
Once the new blog post has been copied, run the pelican static site generator to build the new site.
-
Use s3cmd to transfer the generated site from PA to Amazon S3, or simply host the site on PA itself.
If this seems possible, or anyone can think of any alternatives, please let me know. Cheers!