Permalink
Browse files

docs are not using requireJS anymore so use generated js/css resultin…

…g from build instead of the custom doc bundle.
  • Loading branch information...
1 parent d4a842d commit bf4c4c853c682d647d069ce970dde3f8e4531015 @gseguin gseguin committed Mar 1, 2012
Showing with 13 additions and 14 deletions.
  1. +13 −14 Makefile
View
@@ -93,27 +93,26 @@ css: init
# -------------------------------------------------
-docs: init
+docs: init js css
# Create the Demos/Docs/Tests/Tools
- # ... Build the docs bundle
- ${RUN_JS} \
- external/r.js/dist/r.js \
- -o build/docs.build.js \
- dir=tmp/demos
- # ... Prepend versioned license to jquery.mobile.js
- @@cat LICENSE-INFO.txt | ${VER} > tmp/demos/LICENSE-INFO.txt
- @@cat tmp/demos/LICENSE-INFO.txt | cat - tmp/demos/js/jquery.mobile.js > tmp/demos/js/jquery.mobile.js.tmp
- @@cat tmp/demos/js/jquery.mobile.js.tmp | ${SED_VER_API} > tmp/demos/js/jquery.mobile.js
- # ... Prepend versioned license to jquery.mobile.css
- @@cat tmp/demos/LICENSE-INFO.txt | cat - tmp/demos/css/themes/default/${BASE_NAME}.css > tmp/demos/css/themes/default/${NAME}.css.tmp
- @@mv tmp/demos/css/themes/default/${NAME}.css.tmp tmp/demos/css/themes/default/${NAME}.css
+ # ... Create staging directories
+ @@mkdir -p tmp/demos/js
+ @@mkdir -p tmp/demos/css/themes/${THEME}
+ # ... Copy script files
+ @@cp compiled/*.js tmp/demos/js
+ @@cp js/jquery.js tmp/demos/js
+ # ... Copy html files
+ @@cp index.html tmp/demos
+ @@cp -r docs tmp/demos
+ # ... Copy css and images
+ @@cp compiled/*.css tmp/demos/css/themes/${THEME}
+ @@cp -r compiled/images tmp/demos/css/themes/${THEME}
# ... replace "js/" with "js/jquery.mobile.js"
@@ # NOTE the deletion here is required by gnu/bsd sed differences
@@find tmp/demos -name "*.html" -exec sed -i${SED_INPLACE_EXT} -e 's@js/"@js/jquery.mobile.js"@' {} \;
@@find tmp/demos -name "*${SED_INPLACE_EXT}" -exec rm {} \;
# ... Move and zip up the the whole folder
@@rm -f ${OUTPUT}/${NAME}.docs.zip
- @@cd tmp/demos && rm -f *.php && rm -f Makefile
@@cd tmp/demos && zip -rq ../../${OUTPUT}/${NAME}.docs.zip *
@@rm -rf ${OUTPUT}/demos && mv -f tmp/demos ${OUTPUT}
# Finish by removing the temporary files

0 comments on commit bf4c4c8

Please sign in to comment.