forked from cheng/wallet
fixing automatic doc generation
This commit is contained in:
parent
7d8ebed948
commit
a7e2e65b62
1
docs/icon.pandoc
Normal file
1
docs/icon.pandoc
Normal file
@ -0,0 +1 @@
|
|||||||
|
<link rel="shortcut icon" href="rho.ico">
|
@ -11,8 +11,9 @@ elif [[ "$OSTYPE" == "cygwin" ]]; then
|
|||||||
elif [[ "$OSTYPE" == "msys" ]]; then
|
elif [[ "$OSTYPE" == "msys" ]]; then
|
||||||
osoptions="--fail-if-warnings --eol=lf "
|
osoptions="--fail-if-warnings --eol=lf "
|
||||||
fi
|
fi
|
||||||
templates="./pandoc_templates"
|
templates=$(pwd)"/pandoc_templates"
|
||||||
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=$templates/icon.pandoc --include-before-body=$templates/before.pandoc --css=$templates/style.css -o"
|
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=icon.pandoc --include-before-body=$templates/before.pandoc --css=$templates/style.css -o"
|
||||||
|
pwd
|
||||||
for f in *.md
|
for f in *.md
|
||||||
do
|
do
|
||||||
len=${#f}
|
len=${#f}
|
||||||
@ -41,8 +42,8 @@ if [[ $line =~ notmine$ ]];
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd libraries
|
cd libraries
|
||||||
templates="../pandoc_templates"
|
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=./icon.pandoc --include-before-body=$templates/before.pandoc --css=$templates/style.css --include-after-body=$templates/after.pandoc -o"
|
||||||
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=$templates/icondotdot.pandoc --include-before-body=$templates/beforedotdot.pandoc --css=$templates/style.css --include-after-body=$templates/after.pandoc -o"
|
pwd
|
||||||
for f in *.md
|
for f in *.md
|
||||||
do
|
do
|
||||||
len=${#f}
|
len=${#f}
|
||||||
@ -66,8 +67,8 @@ do
|
|||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
cd names
|
cd names
|
||||||
templates="../pandoc_templates"
|
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=./icon.pandoc --include-before-body=$templates/before.pandoc --css=$templates/style.css --include-after-body=$templates/after.pandoc -o"
|
||||||
options=$osoptions"--toc -N --toc-depth=5 --wrap=preserve --metadata=lang:en --include-in-header=$templates/icondotdot.pandoc --include-before-body=$templates/beforedotdot.pandoc --css=$templates/style.css --include-after-body=$templates/after.pandoc -o"
|
pwd
|
||||||
for f in *.md
|
for f in *.md
|
||||||
do
|
do
|
||||||
len=${#f}
|
len=${#f}
|
||||||
@ -91,7 +92,8 @@ do
|
|||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
cd rootDocs
|
cd rootDocs
|
||||||
templates="../pandoc_templates"
|
pwd
|
||||||
|
katex=""
|
||||||
for f in *.md
|
for f in *.md
|
||||||
do
|
do
|
||||||
len=${#f}
|
len=${#f}
|
||||||
@ -99,7 +101,7 @@ do
|
|||||||
if [ $f -nt ../../$base.html ];
|
if [ $f -nt ../../$base.html ];
|
||||||
then
|
then
|
||||||
echo "generating $base.html from $f"
|
echo "generating $base.html from $f"
|
||||||
pandoc $osoptions --wrap=preserve --from markdown --to html --metadata=lang:en --css=$templates/style.css --self-contained -o ../../$base.html $base.md
|
pandoc $katex $options ../../$base.html $base.md
|
||||||
#--include-in-header=style.css
|
#--include-in-header=style.css
|
||||||
#else
|
#else
|
||||||
# echo " $base.html up to date"
|
# echo " $base.html up to date"
|
||||||
|
1
docs/names/icon.pandoc
Normal file
1
docs/names/icon.pandoc
Normal file
@ -0,0 +1 @@
|
|||||||
|
<link rel="shortcut icon" href="../rho.ico">
|
@ -1 +0,0 @@
|
|||||||
<p><a href="../index.html"> To Home page</a></p>
|
|
@ -1 +0,0 @@
|
|||||||
<link rel="shortcut icon" href="../../rho.ico">
|
|
1
docs/rootDocs/icon.pandoc
Normal file
1
docs/rootDocs/icon.pandoc
Normal file
@ -0,0 +1 @@
|
|||||||
|
<link rel="shortcut icon" href="docs/rho.ico">
|
2
mpir
2
mpir
@ -1 +1 @@
|
|||||||
Subproject commit 20795fa90044ea9adfc5a2e28c9a60d8e2eebcbd
|
Subproject commit c7f9435392ede4c7f2c887a44d7a9ca7d724f4dc
|
@ -1 +1 @@
|
|||||||
Subproject commit 3a3654c27f3110b7ca8887b424417b6d26e2682e
|
Subproject commit 8880bc88ff6c2cfcd72c3fcd3ef532b5470b2103
|
Loading…
Reference in New Issue
Block a user