forked from cheng/wallet
checkin in a completely broken docs build
This commit is contained in:
parent
ae1a0b2b88
commit
e679bb5960
39
docs/program/mkdocs.sh
Normal file
39
docs/program/mkdocs.sh
Normal 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
5
docs/program/navbar
Normal 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>
|
||||
|
Loading…
Reference in New Issue
Block a user