contrib/static-html: split off from Makefile

This commit is contained in:
Christian Hesse 2025-11-17 13:17:17 +01:00
parent ed9dee3c5f
commit e10455fb18
4 changed files with 12 additions and 7 deletions

View file

@ -6,8 +6,5 @@ HTML := $(wildcard *.html)
all: docs all: docs
docs: $(HTML) docs: static-html.sh $(HTML)
sed -i \ ./static-html.sh $(HTML)
-e '/href=/s|\.md|\.html|' \
-e '/blockquote/s|/\*! display \*/|display: none;|' \
$(HTML)

View file

@ -18,7 +18,7 @@
<p><a href="../README.md">⬅️ Go back to main README</a></p> <p><a href="../README.md">⬅️ Go back to main README</a></p>
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links <blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
on it may be broken on code hosting sites. Use on it may be broken on code hosting sites. Use
<a href="https://rsc.eworm.de/main/contrib/logo-color.html">Logo Color Changer</a> <a href="https://rsc.eworm.de/main/contrib/logo-color.html">Logo Color Changer</a>
instead.</p></blockquote> instead.</p></blockquote>

View file

@ -18,7 +18,7 @@
<p><a href="../README.md">⬅️ Go back to main README</a></p> <p><a href="../README.md">⬅️ Go back to main README</a></p>
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links <blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
on it may be broken on code hosting sites. Use on it may be broken on code hosting sites. Use
<a href="https://rsc.eworm.de/main/contrib/notification.html">Notification Generator</a> <a href="https://rsc.eworm.de/main/contrib/notification.html">Notification Generator</a>
instead.</p></blockquote> instead.</p></blockquote>

8
contrib/static-html.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -e
sed -i \
-e '/href=/s|\.md|\.html|' \
-e '/blockquote/s|/\* display \*/|display: none;|' \
"${@}"