From a515191afddb3952fa93c6aacf83c73c8024e069 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 29 Oct 2014 06:46:02 +0200 Subject: [PATCH] Customizer: include the minified files only on GitHub pages. --- Gruntfile.js | 1 + docs/_includes/footer.html | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index f1430e0265..cbf01ac1ff 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -138,6 +138,7 @@ module.exports = function (grunt) { dest: 'dist/js/<%= pkg.name %>.min.js' }, customize: { + // NOTE: This src list is duplicated in footer.html; if making changes here, be sure to update the other copy too. src: [ 'docs/assets/js/vendor/less.min.js', 'docs/assets/js/vendor/jszip.min.js', diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index ef68da3eba..c6ad43cd53 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -46,7 +46,17 @@ {% endif %} {% if page.slug == "customize" %} +{% if site.github %} +{% else %} + + + + + + + +{% endif %} {% endif %}