diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 6a25c29a..00000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "book/bower_components" -} diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 1e8a204e..00000000 --- a/Gruntfile.js +++ /dev/null @@ -1,375 +0,0 @@ -'use strict'; - -// # Globbing -// for performance reasons we're only matching one level down: -// 'test/spec/{,*/}*.js' -// use this if you want to recursively match all subfolders: -// 'test/spec/**/*.js' - -module.exports = function (grunt) { - - // Load grunt tasks automatically - require('load-grunt-tasks')(grunt); - - // Time how long tasks take. Can help when optimizing build times - require('time-grunt')(grunt); - - // Define the configuration for all the tasks - grunt.initConfig({ - - // Project settings - yeoman: { - // Configurable paths - app: 'book', - dist: 'dist' - }, - - // Watches files for changes and runs tasks based on the changed files - watch: { - js: { - files: ['<%= yeoman.app %>/scripts/{,*/}*.js'], - tasks: ['jshint'], - options: { - livereload: true - } - }, - jstest: { - files: ['test/spec/{,*/}*.js'], - tasks: ['test:watch'] - }, - gruntfile: { - files: ['Gruntfile.js'] - }, - compass: { - files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], - tasks: ['compass:server', 'autoprefixer'] - }, - styles: { - files: ['<%= yeoman.app %>/styles/{,*/}*.css'], - tasks: ['newer:copy:styles', 'autoprefixer'] - }, - livereload: { - options: { - livereload: '<%= connect.options.livereload %>' - }, - files: [ - '<%= yeoman.app %>/{,*/}.html', - '.tmp/styles/{,*/}*.css', - '<%= yeoman.app %>/images/{,*/}*.{gif,jpeg,jpg,png,svg,webp}' - ] - } - }, - - // The actual grunt server settings - connect: { - options: { - port: 9000, - livereload: 35729, - // Change this to '0.0.0.0' to access the server from outside - hostname: 'localhost' - }, - livereload: { - options: { - open: true, - base: [ - '.tmp', - '<%= yeoman.app %>' - ] - } - }, - test: { - options: { - port: 9001, - base: [ - '.tmp', - '<%= yeoman.app %>' - ] - } - }, - dist: { - options: { - open: true, - base: '<%= yeoman.dist %>', - livereload: false - } - } - }, - - // Empties folders to start fresh - clean: { - dist: { - files: [{ - dot: true, - src: [ - '.tmp', - '<%= yeoman.dist %>/*', - '!<%= yeoman.dist %>/.git*' - ] - }] - }, - server: '.tmp' - }, - - // Make sure code styles are up to par and there are no obvious mistakes - jshint: { - options: { - jshintrc: '.jshintrc', - reporter: require('jshint-stylish'), - reporterOutput: '' - }, - all: [ - '<%= yeoman.app %>/scripts/{,*/}*.js', - '!<%= yeoman.app %>/scripts/vendor/*', - 'test/spec/{,*/}*.js' - ] - }, - - - // Mocha testing framework configuration options - mocha: { - all: { - options: { - run: true, - urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/index.html'] - } - } - }, - - - - // Compiles Sass to CSS and generates necessary files if requested - compass: { - options: { - sassDir: '<%= yeoman.app %>/styles', - cssDir: '.tmp/styles', - generatedImagesDir: '.tmp/images/generated', - imagesDir: '<%= yeoman.app %>/images', - javascriptsDir: '<%= yeoman.app %>/scripts', - fontsDir: '<%= yeoman.app %>/styles/fonts', - importPath: '<%= yeoman.app %>/bower_components', - httpImagesPath: '/images', - httpGeneratedImagesPath: '/images/generated', - httpFontsPath: '/styles/fonts', - relativeAssets: false, - assetCacheBuster: false - }, - dist: { - options: { - generatedImagesDir: '<%= yeoman.dist %>/images/generated' - } - }, - server: { - options: { - debugInfo: true - } - } - }, - - // Add vendor prefixed styles - autoprefixer: { - options: { - browsers: ['last 1 version'] - }, - dist: { - files: [{ - expand: true, - cwd: '.tmp/styles/', - src: '{,*/}*.css', - dest: '.tmp/styles/' - }] - } - }, - - // Automatically inject Bower components into the HTML file - 'bower-install': { - app: { - html: '<%= yeoman.app %>/index.html', - ignorePath: '<%= yeoman.app %>/' - } - }, - - // Renames files for browser caching purposes - rev: { - dist: { - files: { - src: [ - '<%= yeoman.dist %>/scripts/{,*/}*.js', - '<%= yeoman.dist %>/styles/{,*/}*.css', - '<%= yeoman.dist %>/images/{,*/}*.{gif,jpeg,jpg,png,webp}', - '<%= yeoman.dist %>/styles/fonts/{,*/}*.*' - ] - } - } - }, - - // Reads HTML for usemin blocks to enable smart builds that automatically - // concat, minify and revision files. Creates configurations in memory so - // additional tasks can operate on them - useminPrepare: { - options: { - dest: '<%= yeoman.dist %>' - }, - html: '<%= yeoman.app %>/index.html' - }, - - // Performs rewrites based on rev and the useminPrepare configuration - usemin: { - options: { - assetsDirs: ['<%= yeoman.dist %>'] - }, - html: ['<%= yeoman.dist %>/{,*/}*.html'], - css: ['<%= yeoman.dist %>/styles/{,*/}*.css'] - }, - - // The following *-min tasks produce minified files in the dist folder - imagemin: { - dist: { - files: [{ - expand: true, - cwd: '<%= yeoman.app %>/images', - src: '{,*/}*.{gif,jpeg,jpg,png}', - dest: '<%= yeoman.dist %>/images' - }] - } - }, - svgmin: { - dist: { - files: [{ - expand: true, - cwd: '<%= yeoman.app %>/images', - src: '{,*/}*.svg', - dest: '<%= yeoman.dist %>/images' - }] - } - }, - htmlmin: { - dist: { - options: { - collapseBooleanAttributes: true, - collapseWhitespace: true, - removeAttributeQuotes: true, - removeCommentsFromCDATA: true, - removeEmptyAttributes: true, - removeOptionalTags: true, - removeRedundantAttributes: true, - useShortDoctype: true - }, - files: [{ - expand: true, - cwd: '<%= yeoman.dist %>', - src: '{,*/}*.html', - dest: '<%= yeoman.dist %>' - }] - } - }, - - // By default, your `index.html`'s will take care of - // minification. These next options are pre-configured if you do not wish - // to use the Usemin blocks. - // cssmin: { - // dist: { - // files: { - // '<%= yeoman.dist %>/styles/main.css': [ - // '.tmp/styles/{,*/}*.css', - // '<%= yeoman.app %>/styles/{,*/}*.css' - // ] - // } - // } - // }, - // uglify: { - // dist: { - // files: { - // '<%= yeoman.dist %>/scripts/scripts.js': [ - // '<%= yeoman.dist %>/scripts/scripts.js' - // ] - // } - // } - // }, - // concat: { - // dist: {} - // }, - - // Copies remaining files to places other tasks can use - copy: { - dist: { - files: [{ - expand: true, - dot: true, - cwd: '<%= yeoman.app %>', - dest: '<%= yeoman.dist %>', - src: [ - '*.{ico,png,txt}', - '.htaccess', - 'images/{,*/}*.webp', - '{,*/}*.html', - 'styles/fonts/{,*/}*.*' - ] - }] - }, - styles: { - expand: true, - dot: true, - cwd: '<%= yeoman.app %>/styles', - dest: '.tmp/styles/', - src: '{,*/}*.css' - } - }, - - - - // Run some tasks in parallel to speed up build process - concurrent: { - server: [ - 'compass:server', - 'copy:styles' - ], - test: [ - 'copy:styles' - ], - dist: [ - 'copy:styles', - 'imagemin', - 'svgmin' - ] - } - }); - - - grunt.registerTask('serve', function (target) { - if (target === 'dist') { - return grunt.task.run(['build', 'connect:dist:keepalive']); - } - - grunt.task.run([ - 'clean:server', - 'concurrent:server', - 'autoprefixer', - 'connect:livereload', - 'watch' - ]); - }); - - grunt.registerTask('server', function () { - grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.'); - grunt.task.run(['serve']); - }); - - - grunt.registerTask('build', [ - 'clean:dist', - 'useminPrepare', - 'concurrent:dist', - 'autoprefixer', - 'concat', - 'cssmin', - 'uglify', - 'copy:dist', - //'rev', - 'usemin' - ]); - - grunt.registerTask('default', [ - 'newer:jshint', - 'build' - ]); -}; diff --git a/book/bower_components/codecode/.bower.json b/book/bower_components/codecode/.bower.json deleted file mode 100644 index 03017b16..00000000 --- a/book/bower_components/codecode/.bower.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "codecode", - "version": "0.1.2", - "author": "Stephen Sawchuk", - "description": "codecode allows your readers to dock your syntax-highlighted code blocks to the bottom of the page, allowing them to refer back without losing their place in your article.", - "homepage": "http://stephenplusplus.github.io/codecode", - "main": [ - "codecode.js", - "codecode.css" - ], - "repository": { - "type": "git", - "url": "git://github.com/stephenplusplus/codecode.git" - }, - "dependencies": { - "jquery": ">= 1.8.0" - }, - "_release": "0.1.2", - "_resolution": { - "type": "version", - "tag": "0.1.2", - "commit": "4cd82899a3c3296ac940fc390cc7d1de91d445f6" - }, - "_source": "git://github.com/stephenplusplus/codecode.git", - "_target": "~0.1.2", - "_originalSource": "codecode" -} \ No newline at end of file diff --git a/book/bower_components/codecode/.editorconfig b/book/bower_components/codecode/.editorconfig deleted file mode 100644 index ae2ebfee..00000000 --- a/book/bower_components/codecode/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -trim_trailing_whitespace = true -insert_final_newline = true diff --git a/book/bower_components/codecode/bower.json b/book/bower_components/codecode/bower.json deleted file mode 100644 index c7b0f0f9..00000000 --- a/book/bower_components/codecode/bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "codecode", - "version": "0.1.1", - "author": "Stephen Sawchuk", - "description": "codecode allows your readers to dock your syntax-highlighted code blocks to the bottom of the page, allowing them to refer back without losing their place in your article.", - "homepage": "http://stephenplusplus.github.io/codecode", - "main": [ - "codecode.js", - "codecode.css" - ], - "repository": { - "type": "git", - "url": "git://github.com/stephenplusplus/codecode.git" - }, - "dependencies": { - "jquery": ">= 1.8.0" - } -} diff --git a/book/bower_components/codecode/readme.md b/book/bower_components/codecode/readme.md deleted file mode 100644 index 83f26763..00000000 --- a/book/bower_components/codecode/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# codecode. ----- - -### What is `codecode`? -If you spend any time reading a programmer's blog, there's a good chance you're going to be reading some code samples. I often have the problem of either looking ahead to the code without reading the text, or I just want to refer back to the code as I'm digesting the author's point. Our monitors are only so tall; I just want to be able to see both at the same time, without losing my place in either. - -That's what `codecode` helps with. It's a jQuery plug-in which will split your page in two, allowing your readers to see your code as they read your article. - -### Will it work with [SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/)? -Omg, yes! Just include `codecode.js` on your page, and... that's it! - -### I use my own syntax highlighter / How do I use `codecode`? -`codecode` can be dropped onto your website, anywhere code blocks are used, such as: - -```html - - -
- -