ds-rss/README.markdown

51 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2019-05-07 09:17:29 +02:00
# ds-rss
2020-06-12 19:45:39 +02:00
Generate parts of the datenschleuder website from source `data.xml`:
2019-06-13 04:09:23 +02:00
* rss feed as `ds-feed.xml`,
* oldfashioned hypertext `download.html` and
* the informative `index.html`
utilizing XML transformations.
2020-06-12 19:45:39 +02:00
And supporting to manage the `data.xml`.
2019-09-17 16:34:04 +02:00
2021-11-10 20:05:09 +01:00
## Cover
* extract: `pdftk pdfs/${if}.pdf cat 1 output covers/${of}.pdf`
* convert: `convert covers/${of}.pdf covers/${of}.jpg`
2019-06-13 04:09:23 +02:00
## using
2020-06-12 19:45:39 +02:00
Simply call `./gen.sh build` for generating the target files.
2019-06-13 04:09:23 +02:00
2020-06-12 19:45:39 +02:00
* Creating a new entry for `data.xml` is supported with `./gen.sh release` or `./gen.sh release 99` for a custom issue
number, here 99.
2019-09-17 16:34:04 +02:00
2020-06-12 19:45:39 +02:00
* To omit the explaining information, simply disregard stderr: `./gen.sh release 2>/dev/null`.
* Replicating entry for ds #99 including the datetime: `./gen.sh release 99 1568505600`.
* the release message is whatever are the remaining non-numeric arguments: `./gen.sh release 99 1568505600 Die Ausgabe
\#100 ist schon einige Zeit fertig und ausgeliefert. Die Freunde der Digitalen Ausgabe wird freuen, dass die Aushabe
\#99 nun online ist.`
2022-07-19 18:29:16 +02:00
* For sorting `data.xml`, call `./gen.sh sortxml`. (writes `sorted.xml` and asks if it should replace the source)
2019-06-13 04:09:23 +02:00
## dependecies
2019-09-17 16:34:04 +02:00
* sh, coreutils, date, sed etc.
2019-06-13 04:09:23 +02:00
* xsltproc
2019-06-13 13:21:12 +02:00
## preview: screenshots
2019-06-13 13:24:56 +02:00
<img src="ss/ss-index.png" width="220">
2019-06-13 13:21:12 +02:00
2019-06-13 13:24:56 +02:00
<img src="ss/ss-download.png" width="220">
2019-06-13 13:21:12 +02:00
2019-06-13 13:24:56 +02:00
<img src="ss/ss-feed.png" width="220">
2021-11-10 20:05:09 +01:00
## reverse timestamp for specific date time
`date --date="Wed, 10 Nov 2021 08:33 +0000" +"%s"`