1
0
forked from cheng/wallet

rootdocs broken, manifesto working

This commit is contained in:
reaction.la 2023-09-19 13:13:07 +10:00
parent 5a5403de9c
commit 1606968f28
No known key found for this signature in database
GPG Key ID: 99914792148C8388
5 changed files with 56 additions and 7 deletions

View File

@ -14,6 +14,9 @@ elif [[ "$OSTYPE" == "msys" ]]; then
osoptions="--fail-if-warnings --eol=lf " osoptions="--fail-if-warnings --eol=lf "
fi 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" 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"
if [[ -z $targetDocroot ]]; then
targetDocroot=$docroot
fi
for f in * for f in *
do do
[[ -d $item && -x $item/mkdocs.sh ]] && $item/mkdocs.sh [[ -d $item && -x $item/mkdocs.sh ]] && $item/mkdocs.sh
@ -30,7 +33,7 @@ do
katex=" --katex="$docroot katex=" --katex="$docroot
fi fi
done <$f done <$f
pandoc --variable $banner_height --variable docroot:$docroot --template $templates/pandoc.template $katex $options $destdir$base.html $base.md pandoc --variable $banner_height --variable targetDocroot:$targetDocroot --template $templates/pandoc.template $katex $options $destdir$base.html $base.md
echo "$destdir$base.html from $f" echo "$destdir$base.html from $f"
#else #else
# echo " $base.html up to date" # echo " $base.html up to date"

View File

@ -23,7 +23,7 @@ $endif$
$for(css)$ $for(css)$
<link rel="stylesheet" href="$css$" /> <link rel="stylesheet" href="$css$" />
$endfor$ $endfor$
<link rel="shortcut icon" href="$docroot$rho.ico"> <link rel="shortcut icon" href="$targetDocroot$rho.ico">
$for(header-includes)$ $for(header-includes)$
$endfor$ $endfor$
$header-includes$ $header-includes$
@ -47,8 +47,8 @@ $endif$
</head> </head>
<body> <body>
<div class="logo-header"> <div class="logo-header">
<a href="$docroot$manifesto/motivation.html"> <a href="$targetDocroot$manifesto/motivation.html">
<img src="$docroot$pandoc_templates/logo.svg" id="logo-graphic" alt="logo"> <img src="$targetDocroot$pandoc_templates/logo.svg" id="logo-graphic" alt="logo">
<div style="height:18px;"></div> <div style="height:18px;"></div>
<div id="Rhocoin"></div> <div id="Rhocoin"></div>
</a> </a>

View File

@ -1,7 +1,10 @@
--- ---
title: >- title: >-
README README
sidebar: true
notmine: false
--- ---
[pre alpha documentation (mostly a wish list)](docs/index.htm) [pre alpha documentation (mostly a wish list)](docs/index.htm)
[copyright © and license](./license.txt) [copyright © and license](./license.txt)

View File

@ -1,8 +1,44 @@
#!/bin/bash #!/bin/bash
set -e set -e
echo `dirname $0`
cd `dirname $0` cd `dirname $0`
docroot="../" docroot="../"
templates=$docroot"pandoc_templates" targetDocroot="docs/"
destdir="../../" destdir="../../"
. $templates"/mkdocs.cfg" banner_height=banner_height:15ex
templates=$docroot"pandoc_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"
if [[ -z $targetDocroot ]]; then
targetDocroot=$docroot
fi
for f in *
do
[[ -d $item && -x $item/mkdocs.sh ]] && $item/mkdocs.sh
if [[ $f =~ (.*)".md"$ ]];then
base=${BASH_REMATCH[1]}
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="$docroot
fi
done <$f
pandoc --variable $banner_height --variable targetDocroot:$targetDocroot --template $templates/pandoc.template $katex $options $destdir$base.html $base.md
echo "$destdir$base.html from $f"
#else
# echo " $base.html up to date"
fi
fi
done

7
docs/rootDocs/navbar Normal file
View File

@ -0,0 +1,7 @@
<div class="button-bar">
<a href="vision.html">vision</a>
<a href="scalability.html">scalability</a>
<a href="social_networking.html">social networking</a>
<a href="Revelation.html">revelation</a>
</div>