Android For GitOps Writing Workflow
My sister got me a Logitech K480 Bluetooth keyboard for Christmas! What makes me truly excited about this gift is the mental exercise of using my Android phone as a content creation device. It's a bit of a stretch, but with this kind of powerful technology in our pockets, we should be able to leverage these devices more productively.
My writing workflow is focused around markdown stored in git (backed by Gitlab or Github), rendered using Hugo, and leveraging Netlify's platform for integration and deployment. I worked to adopt that workflow from an Android perspective:
- Google Docs: Initial content is created in a Google doc to take advantage of the interface, as well as spell and grammar check, auto-save to the cloud, collaboration, etc.
- Export the Google Doc to Markdown
- For the actual GitOps Android workflow a combo of Pocket Git, Droid Edit, and ConnectBot.
- Use ConnectBot to generate a new key pair. You'll need to copy the private and public key, and use Droid Edit to
save those into files. Create a directory called “ssh” Droid Edit can create a
- Send public key to yourself in email, or google drive document (remember, it's public!)
- On Github and/or Gitlab, add new key keys
- Use PocketGit to clone down the repo. Stay with the defaults to store the repos under /Git
- Use ConnectBot to generate a new key pair. You'll need to copy the private and public key, and use Droid Edit to save those into files. Create a directory called “ssh” Droid Edit can create a
- For editing, use PocketRepo to create and/or open existing files with DroidEdit
- Use PocketRepo for branch creation, commits, pushes, and other repo utilities.
- Use the web interface for Github and Gitlab to manage PR creation and merges. At least with Gitlab, the web interface seemed fairly usable.
This process assumes you have a build pipeline and site already setup. Although it seems potentially possible to start from nothing to a fully functional pipeline using just your phone, but certainly would be a bit more difficult then just using a laptop. My next goals will be:
- Automatic integration with grammar checks (Language Tools, maybe Grammerly) and perhaps prose linters such as proselint, writegood, or vale (from this Reddit post)
- A better export process between docs and git. It might involve a bit of modification to the already existing plugin
- Adopt this for development, at least a language like Python that can be run from the Phone directly.