2021-06-29 | Paul Boddie | raw annotate files changeset graph | Renamed the string class to str, replacing the str function with the new_str function, this being invoked specially by the string instantiation function. As with the Unicode type renaming, a more general instantiation mechanism might permit the new_str function to be part of the functionality of the str or basestring classes. |
1 #!/bin/sh 2 3 THISDIR=`dirname "$0"` 4 INDIR="$THISDIR/../wiki" 5 OUTDIR="$THISDIR/../html" 6 7 ROOT="Lichen" 8 9 MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/' 10 THEME='--theme mercurial' 11 12 if [ "$1" = '--web' ] ; then 13 DOCINDEX= 14 shift 1 15 else 16 DOCINDEX='--document-index index.html' 17 fi 18 19 FILENAMES=${*:-'--all'} 20 21 moinconvert --input-dir "$INDIR" \ 22 --input-page-sep '--' \ 23 --output-dir "$OUTDIR" \ 24 --root "$ROOT" \ 25 --format html \ 26 --macros \ 27 $DOCINDEX \ 28 $MAPPING \ 29 $THEME \ 30 $FILENAMES