mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
Merge "generateDocs.sh: Simplify"
This commit is contained in:
commit
13a7023dd6
|
@ -1,13 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
cd $(cd $(dirname $0)/..; pwd)
|
||||
set -e
|
||||
|
||||
REPO_DIR=$(cd $(dirname $0)/..; pwd)
|
||||
|
||||
# Disable parallel processing which seems to be causing problems under Ruby 1.8
|
||||
jsduck --config .docs/config.json --processes 0
|
||||
ec=$?
|
||||
jsduck --config $REPO_DIR/.docs/config.json --processes 0
|
||||
|
||||
test ! -L docs/lib && ln -s ../lib docs/lib || echo 'Symlink already exists'
|
||||
|
||||
cd - > /dev/null
|
||||
|
||||
# Exit with exit code of jsduck command
|
||||
exit $ec
|
||||
ln -s ../lib $REPO_DIR/docs/lib
|
||||
|
|
Loading…
Reference in a new issue