Fix XmlTypeCheck docs
[mediawiki.git] / maintenance / mwjsduck-gen
blobcccc71588310465dfe99f1959599f42eaddf4be0
1 #!/usr/bin/env bash
3 JSDUCK_MWVERSION=master
4 if [[ "$1" == "--version" && "$2" != "" ]]
5 then
6 JSDUCK_MWVERSION="$2"
7 elif [[ "$*" != "" ]]
8 then
9 echo "Usage $0: [--version <mediawiki version>]"
10 echo
11 exit 1
14 jsduck \
15 --config=$(cd $(dirname $0)/..; pwd)/maintenance/jsduck/config.json \
16 --footer="Documentation for MediaWiki core ($JSDUCK_MWVERSION). Generated on {DATE} by {JSDUCK} {VERSION}." \
17 && echo 'JSDuck execution finished.'