aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2019-01-06 11:40:51 +0000
committerGogs <gogitservice@gmail.com>2019-01-06 11:40:51 +0000
commit916b231a02c19d5a194e9df4cb8151fd1b548ec8 (patch)
tree8bb6832749f1e25e012d1ea2814ee1a449b90f89
parent23d9ebb0909384f73e798e5c534853eaa58b493e (diff)
parent919c74c8f8a252e82f0b9dcccc97ab8170733d9a (diff)
downloadlibrebootfr-916b231a02c19d5a194e9df4cb8151fd1b548ec8.tar.gz
librebootfr-916b231a02c19d5a194e9df4cb8151fd1b548ec8.zip
Merge branch 'www-generation' of and_who/libreboot into master
-rwxr-xr-xwww/publish.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/www/publish.sh b/www/publish.sh
index 9a8a6abc..d2924a48 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -56,12 +56,7 @@ if [[ $FILE != "./docs/fdl-1.3" && $FILE != "docs/fdl-1.3" &&
fi
# change out .md -> .html
-sed -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g' "$TMPFILE"
-sed -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g' "$TMPFILE"
-
-# change out .md -> .html
-sed -i -e 's/\.md\(#[a-z\-]*\)*)/.html\1)/g' "$TMPFILE"
-sed -i -e 's/\.md\(#[a-z\-]*\)*]/.html\1]/g' "$TMPFILE"
+sed -i -e 's/\.md\(#[a-zA-Z0-9_-]*\)\?\([])]*\)/.html\1\2/g' "$TMPFILE"
# work around issue #2872
TOC=$(grep -q "^x-toc-enable: true$" "$TMPFILE" && printf '%s\n' "--toc --toc-depth=2") || TOC=""