Permalink
Browse files

only add the anyalytics to production

  • Loading branch information...
fat committed Feb 2, 2012
1 parent 7f32d15 commit 59016d2198d18904a02f122601dc828663c506b6
View
@@ -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' }"
View
Binary file not shown.
View
@@ -1576,5 +1576,7 @@ <h3>Examples</h3>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -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, {
View
@@ -1511,5 +1511,7 @@ <h2>Close icon</h2>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -354,5 +354,7 @@ <h4>What's included?</h4>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -139,5 +139,7 @@ <h3>Starter template</h3>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -243,5 +243,7 @@ <h1>Built with Bootstrap.</h1>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -1459,5 +1459,7 @@ <h4>.typeahead(options)</h4>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -790,5 +790,7 @@ <h4><a href="http://wearekiss.com/simpless" target="_blank">Simpless</a></h4>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
View
@@ -432,5 +432,7 @@ <h2>Using the media queries</h2>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>
@@ -109,5 +109,24 @@
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+ {{#production}}
+ <!-- Analytics
+ ================================================== -->
+ <script>
+ var _gauges = _gauges || [];
+ (function() {
+ var t = document.createElement('script');
+ t.type = 'text/javascript';
+ t.async = true;
+ t.id = 'gauges-tracker';
+ t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
+ t.src = '//secure.gaug.es/track.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(t, s);
+ })();
+ </script>
+ {{/production}}
+
</body>
</html>
View
@@ -291,5 +291,7 @@ <h3>New plugins</h3>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
<script src="assets/js/application.js"></script>
+
+
</body>
</html>

0 comments on commit 59016d2

Please sign in to comment.