2019-04-14 | Paul Boddie | file changeset files shortlog | Renamed FrontPage to Lichen, also changing the FullSearch macro to PageList. Updated the page packaging script and added a script for moinconvert. |
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@898 | 7 | MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/' |
paul@898 | 8 | THEME='--theme mercurial' |
paul@898 | 9 | |
paul@898 | 10 | if [ "$1" = '--web' ] ; then |
paul@898 | 11 | DOCINDEX= |
paul@898 | 12 | shift 1 |
paul@898 | 13 | else |
paul@898 | 14 | DOCINDEX='--document-index index.html' |
paul@898 | 15 | fi |
paul@898 | 16 | |
paul@898 | 17 | FILENAMES=${*:-'--all'} |
paul@898 | 18 | |
paul@898 | 19 | moinconvert --input-dir "$INDIR" \ |
paul@898 | 20 | --input-page-sep '--' \ |
paul@898 | 21 | --output-dir "$OUTDIR" \ |
paul@898 | 22 | --root Lichen \ |
paul@898 | 23 | --format html \ |
paul@898 | 24 | --macros \ |
paul@898 | 25 | $DOCINDEX \ |
paul@898 | 26 | $MAPPING \ |
paul@898 | 27 | $THEME \ |
paul@898 | 28 | $FILENAMES |