Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only add the anyalytics to production

  • Loading branch information...
commit 59016d2198d18904a02f122601dc828663c506b6 1 parent 7f32d15
@fat fat authored
View
9 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' }"
View
BIN  docs/assets/bootstrap.zip
Binary file not shown
View
2  docs/base-css.html
@@ -1576,5 +1576,7 @@
<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
2  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, {
View
2  docs/components.html
@@ -1511,5 +1511,7 @@ <h4 class="alert-heading">Warning!</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
2  docs/download.html
@@ -354,5 +354,7 @@ <h4 class="muted">Heads up!</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
2  docs/examples.html
@@ -139,5 +139,7 @@
<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
2  docs/index.html
@@ -243,5 +243,7 @@
<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
2  docs/javascript.html
@@ -1459,5 +1459,7 @@ <h4 class="alert-heading">Oh snap! You got an error!</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
2  docs/less.html
@@ -790,5 +790,7 @@
<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
2  docs/scaffolding.html
@@ -432,5 +432,7 @@
<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
19 docs/templates/layout.mustache
@@ -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
2  docs/upgrading.html
@@ -291,5 +291,7 @@
<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>
Please sign in to comment.
Something went wrong with that request. Please try again.