summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
author= <pux@pux.dom>2023-01-07 13:40:51 +0100
committer= <pux@pux.dom>2023-01-07 13:40:51 +0100
commit61c744e104acea884a5cb6993405af6f685949bc (patch)
treea0374b41bcc1ce0724550c90dc8b6f8c5a1990b7 /update.sh
parent6d0354fccb7f3043446078521333c2724c2f8d0c (diff)
downloadpub-docs-61c744e104acea884a5cb6993405af6f685949bc.tar.gz
pub-docs-61c744e104acea884a5cb6993405af6f685949bc.tar.bz2
pub-docs-61c744e104acea884a5cb6993405af6f685949bc.zip
fix link (.md >> .html)
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/update.sh b/update.sh
index 0e695a6..baeca3a 100755
--- a/update.sh
+++ b/update.sh
@@ -1,9 +1,9 @@
#!/bin/bash
# RSS
-RSS_TITLE='pub-docs'
+RSS_TITLE='omeckman.net pub-docs'
RSS_TITLE_LINK='https://omeckman.net/pub-docs/'
-RSS_TITLE_DESC='public documents'
+RSS_TITLE_DESC='omeckman.net public documents / $blog'
RSS_MY_URL=${RSS_TITLE_LINK}
cp INDEX_template.md INDEX.md
@@ -21,9 +21,14 @@ do
filename_wo_ext=$(echo "$i" | cut -f 1 -d '.')
if [ $filename_wo_ext != "template" ] && [ $filename_wo_ext != "INDEX_template" ]
then
+ pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html
+
+ if [ $filename_wo_ext != "INDEX" ]
+ then
+ echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md
RSS_ITEM_TITLE="$filename_wo_ext"
- RSS_ITEM_LINK=${RSS_TITLE_LINK}${i}
+ RSS_ITEM_LINK=${RSS_TITLE_LINK}${filename_wo_ext}.html
RSS_ITEM_PUBDATE=""
RSS_ITEM_DESC=$RSS_ITEM_TITLE
cat template_rss_item.xml >> index.xml
@@ -31,12 +36,6 @@ do
python3 pyreplace.py '$ITEM_LINK$' "${RSS_ITEM_LINK}" index.xml
python3 pyreplace.py '$ITEM_PUBDATE$' "${RSS_ITEM_PUIBDATE}" index.xml
python3 pyreplace.py '$ITEM_DESC$' "${RSS_ITEM_DESC}" index.xml
-
- pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html
-
- if [ $filename_wo_ext != "INDEX" ]
- then
- echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md
fi
fi
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa