Create an Atom Feed

Usign this ruby script I wrote you can turn your most recent git 10 commits to your vault into an Atom Feed.

  • It will create one entry per modified file (renamed and deleted files are ignored), the updated timestamp will be the timestamp of the commit
  • Commit starting with either chore: or refactor: will be ignored

Prerequisite

  • An execution environment that runs Ruby (e.g. the GitHub Actions runner ubuntu-latest)

Steps

1. Add the script

Add this ruby script next to your dendron.yml

2. Call the script between export and deploy

Assuming you followed the instructions to publish to GitHub Pages with GitHub Actions add following step in your workflow between the "Export notes" and the "Deploy site" step:

    - name: Generate Atom Feed
      run: ruby build_rss_feed.rb vault > docs/feed.xml

If your vault happens to be in a different folder than vault then make sure to replace the folder name in the step above.

Note: If you are using Self Contained Vaults then you have to specify the notes folder inside the vault, not the vault folder.

Add following content to you custom header.

<link rel="alternate" type="application/atom+xml" href="<PAGE_URL>/feed.xml">

where <PAGE_URL> would be the url of your published page, e.g. https://kfischer-okarin.github.io/digital-garden.