aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristopher Bero <csb0019@uah.edu>2017-05-12 00:06:34 -0500
committerChristopher Bero <bigbero@gmail.com>2017-05-12 00:07:35 -0500
commit17292069a6503d94baad317a4261ea42d327e818 (patch)
tree83e672c2531681f351008f8d5434a410ce5ddab6 /www
parentba5f360e7bdd198b9cfb53fbe8b2fce8b1db33d3 (diff)
downloadlibrebootfr-17292069a6503d94baad317a4261ea42d327e818.tar.gz
librebootfr-17292069a6503d94baad317a4261ea42d327e818.zip
example of section hyperlinks, do not merge.
Diffstat (limited to 'www')
-rwxr-xr-xwww/publish.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/publish.sh b/www/publish.sh
index 55b6660a..f795ee15 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -65,3 +65,6 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \
# additionally, produce bare file for RSS
pandoc $1 > $FILE.bare.html
+
+# generate section id links
+sed $FILE.html -i -e 's:^<h2 id="\(.*\)">\(.*\)</h2>:<a href="#\1"><h2 id="\1">\2</h2></a>:g'