Permalink
Browse files

Merge pull request #6 from arthurevans/tidoc-881

TIDOC-881 Adding -s (SEO) option to build docs index.php.
  • Loading branch information...
2 parents bc718bb + f487337 commit e778efafde001169896c72b063eff65baa28fc44 bhatfield committed Nov 27, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 deploy.sh
View
@@ -12,11 +12,12 @@ usage() {
echo " Options:"
echo " -c <config_file> (i.e., jsduck_21.config for 2.1 docs build)."
echo " -o <optional_project> (currently, only alloy is supported)"
+ echo " -s Enable --seo flag to jsduck."
echo " -t Do not generate video thumbnails"
echo ""
}
-while getopts ":to:c:" opt; do
+while getopts ":tso:c:" opt; do
case $opt in
c)
if [ "$OPTARG" ]; then
@@ -35,6 +36,9 @@ while getopts ":to:c:" opt; do
t)
no_thumbnails="no_thumbnails"
;;
+ s)
+ seo="--seo"
+ ;;
\?)
echo "Invalid option: -$OPTARG">&2
usage
@@ -121,7 +125,7 @@ else
compass compile ${JSDUCK}/template/resources/sass
TEMPLATE=${JSDUCK}/${DEBUG_TEMPLATE}
fi
-ruby ${JSDUCK}/bin/jsduck --template ${TEMPLATE} --config $config $alloyDirs
+ruby ${JSDUCK}/bin/jsduck --template ${TEMPLATE} $seo --config $config $alloyDirs
cp -r "./htmlguides/images" "dist/images"
cp -r "./htmlguides/attachments" "dist/attachments"
cp -r "./htmlguides/css/common.css" "dist/resources/css/common.css"

0 comments on commit e778efa

Please sign in to comment.