checkin in a completely broken docs build

This commit is contained in:
reaction.la 2023-08-26 07:39:57 +10:00
parent ae1a0b2b88
commit e679bb5960
No known key found for this signature in database
GPG Key ID: 99914792148C8388
9 changed files with 44 additions and 0 deletions

39
docs/program/mkdocs.sh Normal file
View File

@ -0,0 +1,39 @@
#!/bin/bash
set -e
cd `dirname $0`
docroot="../"
templates=$docroot"pandoc_templates"
echo $templates
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
osoptions=""
elif [[ "$OSTYPE" == "darwin"* ]]; then
osoptions=""
elif [[ "$OSTYPE" == "cygwin" ]]; then
osoptions="--fail-if-warnings --eol=lf "
elif [[ "$OSTYPE" == "msys" ]]; then
osoptions="--fail-if-warnings --eol=lf "
fi
options=$osoptions"--toc --number-sections --toc-depth=5 --from markdown+smart+raw_html+fenced_divs+bracketed_spans --to html5 --wrap=preserve --metadata=lang:en --css=$templates/style.css -Bnavbar -o"
for f in *.md
do
len=${#f}
base=${f:0:($len-3)}
if [[ $f -nt $destdir$base.html ]];
then
katex=""
line=""
for i in 1 2 3 4 5 6
do
read line
if [[ $line =~ katex$ ]];
then
katex=" --katex=./"
fi
done <$f
pandoc --variable banner_height:15ex --variable docroot:$docroot --template $templates/pandoc.template $katex $options $destdir$base.html $base.md
echo "$base.html from $f"
#else
# echo " $base.html up to date"
fi
done

5
docs/program/navbar Normal file
View File

@ -0,0 +1,5 @@
<div class="button-bar">
<button>Button 1</button>
<a href="file:///C:/Users/john/src/reactionId/wallet/docs/writing_and_editing_documentation.html">writing</a>
</div>