Connecting Drummer to Gatsby
Oct 21, 2021
1 min read
I've been thinking about how to use Drummer outlines in a static site generator, like Gatsby or Eleventy. They generally generate content from markdown files, so it must be possible to either export OPML to markdown or for the site generator read content directly from OPML.
I found some demo code by Andrew Shell for a Gatsby plugin to generate content from a Little Outliner outline. On a whim I forked it to my own repository and plugged in the URL for a Drummer outline. And it worked! It rendered the basic text of the outline entries, and I was able to deploy the site to Netlify.
Going one step further, on Netlify I set up a build hook for the site, and in Drummer put a script on my Iconbar to send a POST request to the build hook URL. And voilà ! I have a build button my for Gatsby test site. It is, of course, a lot slower than OldSchool. 😃
There is of course a lot of work left before this will be usable, but for a beginning I'm pretty happy with it. Thank you Andrew for posting your demo code!