3 JSDUCK_MWVERSION
=master
4 if [[ "$1" == "--version" && "$2" != "" ]]
9 FILENAME
=$
(basename $0)
10 echo "Usage: $FILENAME [--version <mediawiki version>]"
15 MWCORE_DIR
=$
(cd $
(dirname $0)/..
; pwd)
17 # Support jsduck 4.x and 5.x
18 JSDUCK_VERSION
="$(jsduck --version | sed -e 's/[.].*//')"
19 if [ "$JSDUCK_VERSION" = "JSDuck 4" ]; then
20 JSDUCK_VERSION_OPT
="--meta-tags $MWCORE_DIR/maintenance/jsduck/MetaTags.rb --warnings=-no_doc"
22 JSDUCK_VERSION_OPT
="--tags $MWCORE_DIR/maintenance/jsduck/CustomTags.rb --warnings=-nodoc(class,public)"
26 --config=$MWCORE_DIR/maintenance
/jsduck
/config.json \
28 --footer="Documentation for branch ($JSDUCK_MWVERSION) on {DATE} by {JSDUCK} {VERSION}." \
29 --processes 0 --warnings-exit-nonzero \
30 && echo 'JSDuck execution finished.' \
31 && ln -s ..
/..
/resources
$MWCORE_DIR/docs
/js
/modules