-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyuidoc.sh
executable file
·37 lines (28 loc) · 1.35 KB
/
yuidoc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# The location of your yuidoc install
yuidoc_home=~/web-data/libs/yuidoc
# The location of the files to parse. Parses subdirectories, but will fail if
# there are duplicate file names in these directories. You can specify multiple
# source trees:
# parser_in="%HOME/www/yui/src %HOME/www/event/src"
#parser_in="$HOME/src"
parser_in=./src
# The location to output the parser data. This output is a file containing a
# json string, and copies of the parsed files.
parser_out=./temp/yuidoc
# The directory to put the html file outputted by the generator
generator_out=./docs
# The location of the template files. Any subdirectories here will be copied
# verbatim to the destination directory.
template=$yuidoc_home/template
# The version of your project to display within the documentation.
version=1.0.0
# The version of YUI the project is using. This effects the output for
# YUI configuration attributes. This should start with '2' or '3'.
yuiversion=3
##############################################################################
# clear env
rm -rf $parser_out $generator_out
mkdir $parser_out $generator_out
# add -s to the end of the line to show items marked private
python -W ignore::DeprecationWarning $yuidoc_home/bin/yuidoc.py $parser_in -p $parser_out -o $generator_out -t $template -m 'RefineryCMS js library' -v $version -Y $yuiversion