commit 436a0a32ba436bbcbcac63e2037be070fe0a4408 parent dbd203d57ad5f1ef227374391b3eb57e8a8cd220 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sat, 15 Jun 2024 10:29:35 +0200 feat: move rss feed into menu Diffstat:
M | assets/style.css | | | 6 | ++++++ |
M | bin/git_update_repo_html.sh | | | 8 | ++++++-- |
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/assets/style.css b/assets/style.css @@ -201,6 +201,12 @@ body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$= { content: "\1F5CA\0020"; } +body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$=".gitmodules.html"]:before + content: "\1F5F5\0020"; +} +body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="atom.xml"]:before + content: "\1F56C\0020"; +} /* Activity bar ------------------------------------------------------------ */ diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -168,8 +168,12 @@ find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; INJEXP="s/(>Files<\/a>\ \|)/\1 <a href=\"\/${2}\/${3}\/exports.html\">Exports<\/a> \|/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; -# Add Back-Button, Summary page and RSS feed (within title) -INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ <a\ href=\"\/${2}\/${3}\/index.html\">\2<\/a> \/\ <a\ href=\"\/${2}\/${3}\/atom.xml\"\ title=\"RSS\">\🕬<\/a>\3/" +# Add RSS Feed to menu (last item) +INJEXP="s/(^.*logs.html\">.*)(<\/td>)/\1\ \|\ <a href=\"\/${2}\/${3}\/atom.xml\">RSS<\/a>\2/" +find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; + +# Add Back-Button and Summary page (within title) +INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ <a\ href=\"\/${2}\/${3}\/index.html\">\2<\/a>\3/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href