commit c31f567b63fd302d3d55b06ef7ecd74b409a7ed0 parent 61731788e6e8313f698aa11e0a3f2e2d502c43c6 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Mon, 10 Jun 2024 20:36:02 +0200 feat: move summary within title Diffstat:
M | bin/git_update_repo_html.sh | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -120,12 +120,8 @@ find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; INJEXP="s/(>Files<\/a>\ \|)/\1 <a href=\"\/${2}\/${3}\/exports\/\">Exports<\/a> \|/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; -# Add Summary to menu (before Log) -INJEXP="s/^(<a\ href=\"(\.{0,2}\/)*log.html\">)/<a\ href=\"\/${2}\/${3}\/index.html\">Summary<\/a>\ \| \1/" -find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; - -# Add Back-Button (within title) -INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ \2\3/" +# Add Back-Button and Summary page (within title) +INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ <a\ href=\"\/${2}\/${3}\/\">\2<\/a>\3/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href