From 99fdf1f6763a1c01a83e509d463e5c1a72a984a1 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:55:20 -0600 Subject: [PATCH] Add doc/; Swap sections in README --- README.md | 30 +++++++++++++------------- sfeedrc.example => doc/sfeedrc.example | 0 2 files changed, 15 insertions(+), 15 deletions(-) rename sfeedrc.example => doc/sfeedrc.example (100%) diff --git a/README.md b/README.md index d4ee967..75da879 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,20 @@ sfeed_mastodon takes output from the lovely feed-aggregator [sfeed](https://code +## Usage +``` +$ FEDI_AUTH="yourAuthorizationTokenHere" +$ sfeed_update ~/.config/sfeedrc +$ cat ~/.config/sfeed/* | sfeed_mastodon https://yourServer.here +``` + +It’s that simple. It’s safe to run these commands several times in a row — feed entries that have +already been posted won’t be reposted, if you use our example sfeedrc. + +To automatically mirror an Atom/RSS feed, you can put these commands into a script and put it in your crontab. + + + ## Installation First, make sure to install [sfeed](https://codemadness.org/sfeed-simple-feed-parser.html). If Guix is your package manager: @@ -48,21 +62,7 @@ Whenever you use sfeed_mastodon, make sure that this token is stored in the envi `$FEDI_AUTH`, or pass it with the `-a` parameter. - -## Usage -``` -$ FEDI_AUTH="yourAuthorizationTokenHere" -$ sfeed_update ~/.config/sfeedrc -$ cat ~/.config/sfeed/* | sfeed_mastodon https://yourServer.here -``` - -It’s that simple. It’s safe to run these commands several times in a row — feed entries that have -already been posted won’t be reposted, if you use our example sfeedrc. - -To automatically mirror an Atom/RSS feed, you can put these commands into a script and put it in your crontab. - - -### Templates +### Formatting You might want to know about the template parameter (`-t`) — this lets you tweak the output for sfeed_mastodon as you wish. With this, you can add specific hash-tags to your posts, for example. Its argument should be HTML with some variables within {{double-cramps}} for post data. diff --git a/sfeedrc.example b/doc/sfeedrc.example similarity index 100% rename from sfeedrc.example rename to doc/sfeedrc.example