mirror of
https://github.com/YunoHost-Apps/mediawiki_ynh.git
synced 2024-09-03 19:46:05 +02:00
21 lines
512 B
Bash
Executable file
21 lines
512 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
JSDUCK_MWVERSION=master
|
|
if [[ "$1" == "--version" && "$2" != "" ]]
|
|
then
|
|
JSDUCK_MWVERSION="$2"
|
|
elif [[ "$*" != "" ]]
|
|
then
|
|
echo "Usage $0: [--version <mediawiki version>]"
|
|
echo
|
|
exit 1
|
|
fi
|
|
|
|
MWCORE_DIR=$(cd $(dirname $0)/..; pwd)
|
|
|
|
jsduck \
|
|
--config=$MWCORE_DIR/maintenance/jsduck/config.json \
|
|
--footer="Documentation for MediaWiki core ($JSDUCK_MWVERSION). Generated on {DATE} by {JSDUCK} {VERSION}." \
|
|
&& echo 'JSDuck execution finished.'
|
|
|
|
ln -s ../../resources $MWCORE_DIR/docs/js/modules
|