Lichen

Annotated docs/tools/make_docs.sh

932:c07b0dd14f85
12 months ago Paul Boddie Moved integer instantiation support to library functions.
paul@898 1
#!/bin/sh
paul@898 2
paul@898 3
THISDIR=`dirname "$0"`
paul@898 4
INDIR="$THISDIR/../wiki"
paul@898 5
OUTDIR="$THISDIR/../html"
paul@898 6
paul@899 7
ROOT="Lichen"
paul@899 8
paul@898 9
MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/'
paul@898 10
THEME='--theme mercurial'
paul@898 11
paul@898 12
if [ "$1" = '--web' ] ; then
paul@898 13
    DOCINDEX=
paul@898 14
    shift 1
paul@898 15
else
paul@898 16
    DOCINDEX='--document-index index.html'
paul@898 17
fi
paul@898 18
paul@898 19
FILENAMES=${*:-'--all'}
paul@898 20
paul@898 21
moinconvert --input-dir "$INDIR" \
paul@898 22
            --input-page-sep '--' \
paul@898 23
            --output-dir "$OUTDIR" \
paul@899 24
            --root "$ROOT" \
paul@898 25
            --format html \
paul@898 26
            --macros \
paul@898 27
            $DOCINDEX \
paul@898 28
            $MAPPING \
paul@898 29
            $THEME \
paul@898 30
            $FILENAMES