diff --git a/docs/crypto_currency_and_the_beast.html b/docs/program/Revelation.md similarity index 100% rename from docs/crypto_currency_and_the_beast.html rename to docs/program/Revelation.md diff --git a/docs/crypto_currency.md b/docs/program/crypto_currency.md similarity index 100% rename from docs/crypto_currency.md rename to docs/program/crypto_currency.md diff --git a/docs/program/mkdocs.sh b/docs/program/mkdocs.sh new file mode 100644 index 0000000..cdfad08 --- /dev/null +++ b/docs/program/mkdocs.sh @@ -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 diff --git a/docs/program/navbar b/docs/program/navbar new file mode 100644 index 0000000..369ba85 --- /dev/null +++ b/docs/program/navbar @@ -0,0 +1,5 @@ +
+ \ No newline at end of file diff --git a/docs/social_networking.md b/docs/program/social_networking.md similarity index 100% rename from docs/social_networking.md rename to docs/program/social_networking.md diff --git a/docs/tim_may_on_bitcoin.md b/docs/program/tim_may_on_bitcoin.md similarity index 100% rename from docs/tim_may_on_bitcoin.md rename to docs/program/tim_may_on_bitcoin.md diff --git a/docs/vision_statement.html b/docs/program/vision.md similarity index 100% rename from docs/vision_statement.html rename to docs/program/vision.md diff --git a/docs/white_paper.md b/docs/program/white_paper.md similarity index 100% rename from docs/white_paper.md rename to docs/program/white_paper.md diff --git a/docs/white_paper_YarvinAppendix.md b/docs/program/white_paper_YarvinAppendix.md similarity index 100% rename from docs/white_paper_YarvinAppendix.md rename to docs/program/white_paper_YarvinAppendix.md