Prepare deployment

This commit is contained in:
benweet 2013-05-18 15:52:20 +01:00
parent 2b5cdadfed
commit da50801acc
9 changed files with 95 additions and 24547 deletions

View File

@ -1 +1,66 @@
CACHE MANIFEST # v31 CACHE: index.html viewer.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png lib/MathJax/MathJax.js?config=TeX-AMS_HTML lib/MathJax/config/TeX-AMS_HTML.js lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff lib/MathJax/images/CloseX-31.png lib/MathJax/images/MenuArrow-15.png lib/MathJax/jax/output/HTML-CSS/jax.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js NETWORK: *
CACHE MANIFEST
# Sat May 18 15:52:20 GMT 2013
CACHE:
index.html
viewer.html
css/main-min.css
js/main-min.js
js/require.js
img/ajax-loader.gif
img/glyphicons-halflings.png
img/glyphicons-halflings-white.png
img/icons.png
img/stackedit-32.ico
img/stackedit-promo.png
lib/MathJax/MathJax.js?config=TeX-AMS_HTML
lib/MathJax/config/TeX-AMS_HTML.js
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff
lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff
lib/MathJax/images/CloseX-31.png
lib/MathJax/images/MenuArrow-15.png
lib/MathJax/jax/output/HTML-CSS/jax.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js
lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js
NETWORK:
*

2
js/main-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +0,0 @@
// RequireJS optimizer configuration file
// Usage: node r.js -o optimize-css.json
({
cssIn: "css/main.css",
out: "css/main-min.css"
})

View File

@ -1,8 +0,0 @@
// RequireJS optimizer configuration file
// Usage: node r.js -o optimize-js.json
({
baseUrl: "js",
name: "main",
out: "js/main-min.js",
mainConfigFile: 'js/main.js',
})

24531
r.js

File diff suppressed because one or more lines are too long

12
run_deploy Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
echo '### Optimizing resources ###'
scripts/run_optimize
echo '### Modifying cache.manifest ###'
sed -i "s/^#.*$/# `date`/g" cache.manifest
echo '### Commit and push ###'
git commit -a -m "Prepare deployment"
git checkout gh-pages
git merge master
git checkout master
git push --all

4
scripts/run_optimize Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
npm install requirejs
r.js -o tools/optimize-css.json
r.js -o tools/optimize-js.json

5
tools/optimize-css.json Normal file
View File

@ -0,0 +1,5 @@
// RequireJS optimizer configuration file
({
cssIn: "../css/main.css",
out: "../css/main-min.css"
})

7
tools/optimize-js.json Normal file
View File

@ -0,0 +1,7 @@
// RequireJS optimizer configuration file
({
baseUrl: "../js",
name: "main",
out: "../js/main-min.js",
mainConfigFile: '../js/main.js',
})