From d54249d778dd407f3cfbd3b5fb9ada4088afcdcb Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Wed, 6 Jan 2016 17:11:28 -0600 Subject: [PATCH] Switch examples to .html extensions to get syntax highlighting in editor --- Gruntfile.js | 21 ++-- .../dashboard-bs4/{index.md => index.html} | 0 .../dashboard/{index.md => index.html} | 1 + docs/examples/drawer/drawer.scss | 117 ++++++++++++++++++ docs/examples/drawer/index.html | 48 +++++++ .../offcanvas/{index.md => index.html} | 45 ++----- docs/examples/offcanvas/offcanvas.scss | 3 + docs/examples/signin/{index.md => index.html} | 0 docs/examples/starter-template/index.html | 12 ++ docs/examples/starter-template/index.md | 12 -- 10 files changed, 202 insertions(+), 57 deletions(-) rename docs/examples/dashboard-bs4/{index.md => index.html} (100%) rename docs/examples/dashboard/{index.md => index.html} (96%) create mode 100644 docs/examples/drawer/drawer.scss create mode 100644 docs/examples/drawer/index.html rename docs/examples/offcanvas/{index.md => index.html} (61%) rename docs/examples/signin/{index.md => index.html} (100%) create mode 100644 docs/examples/starter-template/index.html delete mode 100644 docs/examples/starter-template/index.md diff --git a/Gruntfile.js b/Gruntfile.js index 21cdf87d..ec125f06 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -395,24 +395,21 @@ module.exports = function (grunt) { }, watch: { - src: { - files: '<%= jscs.core.src %>', - tasks: ['babel:core', 'babel:docs'] // only watch/gen local non-minified sources (quicker) + corejs: { + files: 'js/src/*.js', + tasks: ['dist-js'] }, - docsjs: { files: ['docs/assets/js/src/*.js'], - tasks: ['babel:docs'] + tasks: ['docs-js'] + }, + core: { + files: 'scss/**/*.scss', + tasks: ['dist-css'] }, - - // FIXME: restore this after getting fundamentals done, just trying to reduce churn while developing - //sass: { - // files: 'scss/**/*.scss', - // tasks: ['dist-css', 'docs'] - //}, docs: { // watch both the source and docs scss files: ['docs/assets/scss/**/*.scss', 'scss/**/*.scss'], - tasks: ['scsslint:docs', 'sass:docs', 'postcss:docs'] //FIXME: docs-css yanks sourcemap from local docs.css, working around just doing the minimal compile here ['docs-css'] //['dist-css', 'docs'] + tasks: ['scsslint:docs', 'sass:docs', 'postcss:docs'] } }, diff --git a/docs/examples/dashboard-bs4/index.md b/docs/examples/dashboard-bs4/index.html similarity index 100% rename from docs/examples/dashboard-bs4/index.md rename to docs/examples/dashboard-bs4/index.html diff --git a/docs/examples/dashboard/index.md b/docs/examples/dashboard/index.html similarity index 96% rename from docs/examples/dashboard/index.md rename to docs/examples/dashboard/index.html index af2d313d..6bd5146e 100644 --- a/docs/examples/dashboard/index.md +++ b/docs/examples/dashboard/index.html @@ -17,6 +17,7 @@ group: material-design - - + + + + - - + + +