summaryrefslogtreecommitdiff
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
parent6d0354fccb7f3043446078521333c2724c2f8d0c (diff)
downloadpub-docs-61c744e104acea884a5cb6993405af6f685949bc.tar.gz
pub-docs-61c744e104acea884a5cb6993405af6f685949bc.tar.bz2
pub-docs-61c744e104acea884a5cb6993405af6f685949bc.zip
fix link (.md >> .html)
-rw-r--r--index.xml26
-rwxr-xr-xupdate.sh17
2 files changed, 16 insertions, 27 deletions
diff --git a/index.xml b/index.xml
index df56e14..88c9bd0 100644
--- a/index.xml
+++ b/index.xml
@@ -1,8 +1,8 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
- <title>pub-docs</title>
+ <title>omeckman.net pub-docs</title>
<link>https://omeckman.net/pub-docs/</link>
- <description>public documents</description>
+ <description>omeckman.net public documents / $blog</description>
<generator></generator>
<language>en-us</language>
<lastBuildDate></lastBuildDate>
@@ -11,9 +11,9 @@
<item>
<title>2020-06-23-182943_Backpacks</title>
- <link>https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md</link>
+ <link>https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.html</link>
<pubDate></pubDate>
- <guid>https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md</guid>
+ <guid>https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.html</guid>
<description>
2020-06-23-182943_Backpacks
</description>
@@ -21,9 +21,9 @@
<item>
<title>2021-06-28-103922_TestingSrtGear</title>
- <link>https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md</link>
+ <link>https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.html</link>
<pubDate></pubDate>
- <guid>https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md</guid>
+ <guid>https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.html</guid>
<description>
2021-06-28-103922_TestingSrtGear
</description>
@@ -31,24 +31,14 @@
<item>
<title>2022-09-24-190300_Nuki1Retrospective</title>
- <link>https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md</link>
+ <link>https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.html</link>
<pubDate></pubDate>
- <guid>https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md</guid>
+ <guid>https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.html</guid>
<description>
2022-09-24-190300_Nuki1Retrospective
</description>
</item>
- <item>
- <title>INDEX</title>
- <link>https://omeckman.net/pub-docs/INDEX.md</link>
- <pubDate></pubDate>
- <guid>https://omeckman.net/pub-docs/INDEX.md</guid>
- <description>
- INDEX
- </description>
- </item>
-
</channel>
</rss>
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