aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2017-05-12 23:48:41 +0000
committerGogs <gogitservice@gmail.com>2017-05-12 23:48:41 +0000
commit5a29c33a2810e0ff44c03aef901b724072442824 (patch)
tree380cba577ab15f694599ef399c4122304e221d73 /www
parentba5f360e7bdd198b9cfb53fbe8b2fce8b1db33d3 (diff)
parentf2c1a8197bc9b8685851b21b8968216141582825 (diff)
downloadlibrebootfr-5a29c33a2810e0ff44c03aef901b724072442824.tar.gz
librebootfr-5a29c33a2810e0ff44c03aef901b724072442824.zip
Merge branch 'master' of ctag/libreboot into master
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..fbfddbd8 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 title anchors as [link]
+sed $FILE.html -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<h\1 style="display: inline;" id="\2">\3</h\1> [<a style="display: inline;" href="#\2">link</a>]_'