aboutsummaryrefslogtreecommitdiff
path: root/www/publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/publish.sh')
-rwxr-xr-xwww/publish.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/www/publish.sh b/www/publish.sh
index 55b6660a..e75ec332 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -35,18 +35,14 @@ if [ "${FILE}" != "./index" ]; then
fi
RETURN="<a href='$DEST'>Back to previous index</a>"
- OPTS="--css /headerleft.css -T Libreboot"
+ OPTS="-T Libreboot"
+else
+ OPTS="--css /headercenter.css"
fi
if [ "${FILE}" != "./docs/fdl-1.3" ] && [ "${FILE}" != "./conduct" ]; then
- echo "" >> temp.md
- printf "[License](/docs/fdl-1.3.md) --\n" >> temp.md
- printf "[Template](/license.md) --\n" >> temp.md
- printf "[Authors](/contrib.md) --\n" >> temp.md
- printf "[Conduct Guidelines](/conduct.md) --\n" >> temp.md
- printf "[Management Guidelines](/management.md) --\n" >> temp.md
- printf "[Peers Community](https://peers.community/) \n" >> temp.md
+ cat footer.md >> temp.md
fi
# change out .md -> .html
@@ -65,3 +61,6 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \
# additionally, produce bare file for RSS
pandoc $1 > $FILE.bare.html
+
+# generate section title anchors as [link]
+sed $FILE.html -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_'