Commit Graph

17 Commits

Author SHA1 Message Date
Jacob Kiers 6cb35aae42 Update dependencies with contributions
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 18:55:19 +01:00
Jacob Kiers 0598026756 Add update subcommand
continuous-integration/drone/push Build is passing Details
This allows updating the binary to the latest verison.

Closes: #15

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 00:08:49 +01:00
Jacob Kiers 7407654e60 Fix CS and some other small things
Useful tool, that clippy...

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
Jacob Kiers e7fd41ff95 Truncate the feed file before writing
Otherwise, the feed may be overwritten, but if it is shorter, it may
contain some leftover data from a previous run. In that case, the file
will be invalid XML, thereby failing to be parsed.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
Jacob Kiers c2d09621aa Add style sheet to the feed
Based on the code proposed in PR 70 of the atom-syndication crate.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 22:59:45 +01:00
Jacob Kiers 9129f7e11b Put real feed url into feed
Instead of hardcoding the feed file name to be feed.atom, it has been
configurable for a while. This is now also reflected in the feed itself.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 22:50:50 +01:00
Jacob Kiers 546c063ce9 Update to mail_parser v0.8.0
continuous-integration/drone Build was killed Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 15:44:14 +01:00
Jacob Kiers 60362ff7c2 Add style sheet to feed
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build encountered an error Details
This makes it easier in a browser to use and understand the feed.

The style sheet is shamelessly copied from
https://andrewstiefel.com/style-atom-xsl/

Closes #4

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:55:54 +01:00
Jacob Kiers 4599ce47fb Replace hard-coded feed name with configured name
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:22:43 +01:00
Jacob Kiers 6d3527d3e4 Add some cargo instructions
For example, to derive the documetation from the README.md file.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:09:06 +01:00
Jacob Kiers 49a9670c4a Rename feed by default to feed.xml
This helps with processing in browsers.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:08:12 +01:00
Jacob Kiers 0f65550169 Write index.html file to output
This gives a simple landing page with a rel=alternate link to the feed.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:07:11 +01:00
Jacob Kiers a4d9d16482 Update rust dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 22:33:31 +01:00
Jacob Kiers 9a89febcb2 Remove workspace
Since only the bin crate was left, there is no reason to keep the
workspace setup.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-10 20:04:35 +01:00
Jacob Kiers 36da496aa1 Move to workspaces setup
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:54:17 +02:00
Jacob Kiers 910d58dd02 Add writing of HTML file
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:46:07 +02:00
Jacob Kiers 431c26a358 Initial commit
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-07 22:27:28 +02:00