This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-extensions-VisualEditor
Watch
1
Star
0
Fork
You've already forked mediawiki-extensions-VisualEditor
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced
2024-11-25 14:56:20 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
51de927b65
mediawiki-extensions-Visual...
/
bin
/
generateDocs.sh
6 lines
76 B
Bash
Raw
Normal View
History
Unescape
Escape
Add bin/ directory with updateStaticLoaders and generateDocs Adding a symlink in .docs/generate.sh because of Jenkins and possibly other uses. Change-Id: Ieb56852d0d0b978fbc1cbb873204d9e457cf969c
2013-10-22 21:51:51 +00:00
#!/usr/bin/env bash
generateDocs.sh: Simplify * Make more like mediawiki-core's mwjsduckgen. - Use bash set -e to have the script abort early when any part of it fails (especially the jsduck command). - Since it will abort early, we don't need the 'test' for the symlink. If jsduck succeeded, it will have re-created the docs directory and thus not have the symlink yet. - Don't "cd" into anything from the script, simply use absolute paths instead. Both jsduck and ln support this. Change-Id: I03c02d590e0f696c78da87ff638bb407e48a7cd7
2014-05-03 19:16:24 +00:00
set
-e
Update JSDuck config to standard jsduck.json Also * This way we don't need to pass the --config=jsduck.config.json parameter but can run plain 'jsduck' in Jenkins. Allowing it to use the standard job template for testing. * Move processes=0 to jsduck.json. Workaround for https://github.com/senchalabs/jsduck/issues/525 * Use standard ' - Documentation' suffix, which makes the first part of the title render in bold (similar to how we do in OOjs and OOjs UI already). Change-Id: I6c9c7a1f29df0a72dc8cd0d37a83aaef23068062
2015-03-05 22:51:53 +00:00
cd
$(
dirname
$0
)
/..
jsduck
ln -s ../lib docs/lib
Reference in a new issue
Copy permalink