1
0
forked from GitHub/gf-rgl

Updated sidebat in synopsis page

- toggleable
- overlay content at narrow widths
- right of page
- background & border
This commit is contained in:
John J. Camilleri
2018-12-03 10:40:00 +01:00
parent d63311c65c
commit 99bc5be071
4 changed files with 61 additions and 8 deletions

View File

@@ -29,10 +29,13 @@ index: index.html
index.txt: MkSynopsis.hs MkExxTable.hs $(INCLUDES) $(EXAMPLES_OUT) $(SRC_FILES)
runghc -i$(ROOT) MkSynopsis.hs
TITLE=$(shell head -n 1 index.txt)
index.html: index.txt $(TEMPLATE)
index-t2t.html: index.txt
txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$<
sed -i.bak "s/<A NAME=\"\(.*\)\"><\/A>/<div id=\"\1\"><\/div>/" $@
rm "$@.bak"
TITLE=$(shell head -n 1 index.txt)
index.html: index-t2t.html $(TEMPLATE)
pandoc \
--from=html \
--to=html5 \
@@ -44,7 +47,7 @@ index.html: index.txt $(TEMPLATE)
--css="synopsis.css" \
--include-after-body="quicklinks.html" \
--output=$(TMP) \
$@
index-t2t.html
mv $(TMP) $@
sed -i.bak "s/<table>/<table class=\"table w-auto\">/" $@
sed -i.bak -e '/img src="categories.png"/r categories-imagemap.html' -e '/img src="categories.png"/d' $@