From 59016d2198d18904a02f122601dc828663c506b6 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 1 Feb 2012 16:38:58 -0800 Subject: [PATCH 1/2] only add the anyalytics to production --- Makefile | 9 +++++++-- docs/assets/bootstrap.zip | Bin 52330 -> 52330 bytes docs/base-css.html | 2 ++ docs/build/index.js | 2 ++ docs/components.html | 2 ++ docs/download.html | 2 ++ docs/examples.html | 2 ++ docs/index.html | 2 ++ docs/javascript.html | 2 ++ docs/less.html | 2 ++ docs/scaffolding.html | 2 ++ docs/templates/layout.mustache | 19 +++++++++++++++++++ docs/upgrading.html | 2 ++ 13 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5492b8e112..6537aae813 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,17 @@ bootstrap: uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.js # -# WATCH LESS FILES +# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O ) # -gh-pages: +gh-pages: docs + node docs/build production cp -r docs/* ../bootstrap-gh-pages +# +# WATCH LESS FILES +# + watch: echo "Watching less files..."; \ watchr -e "watch('less/.*\.less') { system 'make' }" diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 8922a5c7ad0d111e86eb9265a610953224b953e8..8a68adafe31bc4f381af589d787ba3ab2f5a31e5 100644 GIT binary patch delta 1045 zcmaDggZb4AX5IjAW)?065IEZ6IFVOD<4-!WTqRr}?w}^nPzjs{H{H-G>a+31%ONvX15(|Jn zV}@I7Zkn8#l;xUV!(8|NH zL|VocREzSFgBg;DFkK9emx5E0EK3?+9N@cQE0Zx~-EKxk2AOQ54Ai`%r9>bE! ze@+l&< delta 1045 zcmaDggZb4AX5IjAW)?065O_D+ej=}eiohlfe<2_)t>9*0Wckj>z`!B`ltrj}4^$VZ zq9TY}9Y{R~14!LWLw=At5Qdt!@us%{Gf-->x}hmp4#}>~*@g>r!IFIOHW-qT@gD48 z$t7tP7?Q8k4stMqd=MzDo0*%g9~#2Rz>LQ$5GMjPO#Ytl#1B%46{GcE}wqAYn77?)Z_l`@N|8N9F zPEvk;NpVS0Vgb-+tPr1JL=YpB95W;;LE)=+LQ>_2qYH}O)!vy(tv^Clr1BJG=l`lRt8|~Gi+$=VVHdJq?9mFH`sD)nkO|KUfie4z;IKHkwG3s zvy>r7^W*?SPClT+vFR;f_$g<`4zx**fk6#LFJnAZFUw@>cpfbJWkC-Ac*m?^JqH7W zz9s{M60-iu=T7P + + diff --git a/docs/build/index.js b/docs/build/index.js index 4c759c6e0b..5321fa7504 100644 --- a/docs/build/index.js +++ b/docs/build/index.js @@ -1,6 +1,7 @@ #!/usr/bin/env node var hogan = require('hogan.js') , fs = require('fs') + , prod = process.argv[2] == 'production' var layout, pages @@ -21,6 +22,7 @@ pages.forEach(function (name) { context[name.replace(/\.mustache$/, '')] = 'active' context._i = true + context.production = prod page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] }) page = layout.render(context, { diff --git a/docs/components.html b/docs/components.html index 0ccbf512e6..0951c23b85 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1511,5 +1511,7 @@ + + diff --git a/docs/download.html b/docs/download.html index a3dc42f6ae..f975ac3b24 100644 --- a/docs/download.html +++ b/docs/download.html @@ -354,5 +354,7 @@ + + diff --git a/docs/examples.html b/docs/examples.html index d317405aea..ff165685f3 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -139,5 +139,7 @@ + + diff --git a/docs/index.html b/docs/index.html index ea370e1cd3..dcf39a7929 100644 --- a/docs/index.html +++ b/docs/index.html @@ -243,5 +243,7 @@ + + diff --git a/docs/javascript.html b/docs/javascript.html index 4287f852db..d74fc5234d 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1459,5 +1459,7 @@ $('.myCarousel').carousel({ + + diff --git a/docs/less.html b/docs/less.html index 4249822d7b..9a4df78c25 100644 --- a/docs/less.html +++ b/docs/less.html @@ -790,5 +790,7 @@ + + diff --git a/docs/scaffolding.html b/docs/scaffolding.html index 7f9c9de661..b8a635cdde 100644 --- a/docs/scaffolding.html +++ b/docs/scaffolding.html @@ -432,5 +432,7 @@ + + diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 28a11d3fd6..5f49bb62a1 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -109,5 +109,24 @@ + + {{#production}} + + + {{/production}} + diff --git a/docs/upgrading.html b/docs/upgrading.html index 3bf02e178d..4d8328b7c2 100644 --- a/docs/upgrading.html +++ b/docs/upgrading.html @@ -291,5 +291,7 @@ + + From 87df2304083b7e2da0cc0d43e77a1199948fb3e3 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 1 Feb 2012 16:39:15 -0800 Subject: [PATCH 2/2] rebuild --- docs/assets/bootstrap.zip | Bin 52330 -> 52330 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 8a68adafe31bc4f381af589d787ba3ab2f5a31e5..b8ba926d3ca8588e2c7e0ade39c185aec120811c 100644 GIT binary patch delta 431 zcmaDggZb4AX6^uQW)?065O^|?TZv8kwx++%?a7U&g*g%8{%UMGaPf(K9E?vUPB#V% zY2V&>A;f_3$z)YSbEullNro$Rfg(Kdb}*5E_&|1`$f7hWn8>5FQy^3PW%)C6)Ad6` zI2o7`HiK=L{59VN>>BOco9zoK1%Uc@HrT;L{x(#DL@Fn$LQMp@7^3gML_?S@-zUCS z0IGVt$rL6cw|TD!P~^^W114>dFU8rRexIy!!h{Lzaao{z!wE+O=iv!g1jp^94}!Dl yqz8n9Y>ez=^Hbsw(?Le%oeDy59-Q()x7X*iF~Y$4r|l7(f2W-x9O21fXG8#l7p%1a delta 431 zcmaDggZb4AX6^uQW)?065I8!KTZ!${ElvN=wP>|PweAhJUVf@F<9u+ zt&JB#3>c42Ry8z-3T#d?T&W8b;fc3{i3G$4vI9jHrCGs59;KZEnc^?YpP8Gk9~#2R zz>KgNY{TTQ`7SWk_63y!K>a%#;3ocUs0N8tPE-Y}fw&l=@4!SusMzN36JIMZ9-I7l zlPTM0puaxd+AOzuuLw}zo#O^fpFqA8XNUTIvd#$;h>$E$zTt!;g7ff%D}v*8(g(rW zbkYODK{iHqviT`-gqpllK?u%+Q&8Oq4L+xh5%Tj-+rv1=CjUF_%mne+h($