improve doc generation and fix code links

This commit is contained in:
jan 2021-07-05 14:58:39 -07:00
commit 23490694ff
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,7 @@
#!/bin/bash
set -Eeuo pipefail
cd ~/projects/meanas
# Approach 1: pdf to html?
@ -6,9 +9,10 @@ cd ~/projects/meanas
# pandoc --metadata=title:"meanas" --toc --toc-depth=4 --from=markdown+abbreviations --to=html --output=doc.html --gladtex -s -
# Approach 2: pdf to html with gladtex
pdoc3 --pdf --force --template-dir pdoc_templates -o doc . > doc.md
pandoc --metadata=title:"meanas" --from=markdown+abbreviations --to=html --output=doc.html --gladtex -s --css pdoc_templates/pdoc.css doc.md
gladtex -a -n -d _doc_mathimg -c white doc.html
rm -r _doc_mathimg
pdoc --pdf --force --template-dir pdoc_templates -o doc . > doc.md
pandoc --metadata=title:"meanas" --from=markdown+abbreviations --to=html --output=doc.htex --gladtex -s --css pdoc_templates/pdoc.css doc.md
gladtex -a -n -d _doc_mathimg -c white doc.htex
# Approach 3: html with gladtex
#pdoc3 --html --force --template-dir pdoc_templates -o doc .