[docs] switch generated docs to MkDocs
This commit is contained in:
parent
5e95d66a7e
commit
a82eb5858a
54 changed files with 350 additions and 2000 deletions
20
make_docs.sh
20
make_docs.sh
|
|
@ -2,18 +2,12 @@
|
|||
|
||||
set -Eeuo pipefail
|
||||
|
||||
cd ~/projects/meanas
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
# Approach 1: pdf to html?
|
||||
#pdoc3 --pdf --force --template-dir pdoc_templates -o doc . | \
|
||||
# pandoc --metadata=title:"meanas" --toc --toc-depth=4 --from=markdown+abbreviations --to=html --output=doc.html --gladtex -s -
|
||||
mkdocs build --clean
|
||||
|
||||
# Approach 2: pdf to html with gladtex
|
||||
rm -rf _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 -b black doc.htex
|
||||
|
||||
# Approach 3: html with gladtex
|
||||
#pdoc3 --html --force --template-dir pdoc_templates -o doc .
|
||||
#find doc -iname '*.html' -exec gladtex -a -n -d _mathimg -c white {} \;
|
||||
PRINT_PAGE='site/print_page/index.html'
|
||||
if [[ -f "$PRINT_PAGE" ]] && command -v htmlark >/dev/null 2>&1; then
|
||||
htmlark "$PRINT_PAGE" -o site/standalone.html
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue