diff --git a/Gruntfile.js b/Gruntfile.js index e98073f..8bee274 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,9 +6,9 @@ module.exports = function(grunt) { // Metadata. meta: { - srcPath: 'lib/', - distPath: 'dist/', - docsPath: 'docs-assets/' + distPath: 'dist/', + docsPath: 'docs/dist/', + docsAssetsPath: 'docs/assets/' }, banner: '/*\n' + @@ -27,15 +27,20 @@ module.exports = function(grunt) { }, ratchet: { src: [ - '<%= meta.srcPath %>js/modals.js', - '<%= meta.srcPath %>js/popovers.js', - '<%= meta.srcPath %>js/push.js', - '<%= meta.srcPath %>js/segmented-controllers.js', - '<%= meta.srcPath %>js/sliders.js', - '<%= meta.srcPath %>js/toggles.js' + 'js/modals.js', + 'js/popovers.js', + 'js/push.js', + 'js/segmented-controllers.js', + 'js/sliders.js', + 'js/toggles.js' ], dest: '<%= meta.distPath %><%= pkg.name %>.js' + }, + docs: { + src: '<%= meta.distPath %><%= pkg.name %>.js', + dest: '<%= meta.docsPath %><%= pkg.name %>.js' } + }, sass: { @@ -45,10 +50,13 @@ module.exports = function(grunt) { }, dist: { files: { - '<%= meta.distPath %><%= pkg.name %>.css': '<%= meta.srcPath %>sass/ratchet.scss', - '<%= meta.docsPath %>/css/docs.css': '<%= meta.srcPath %>sass/docs.scss', - '<%= meta.distPath %>ios-theme.css': '<%= meta.srcPath %>sass/theme-ios.scss', - '<%= meta.distPath %>android-theme.css': '<%= meta.srcPath %>sass/theme-android.scss' + '<%= meta.distPath %><%= pkg.name %>.css': 'sass/ratchet.scss', + '<%= meta.distPath %>ios-theme.css': 'sass/theme-ios.scss', + '<%= meta.distPath %>android-theme.css': 'sass/theme-android.scss', + '<%= meta.docsAssetsPath %>css/docs.css': 'sass/docs.scss', + '<%= meta.docsPath %><%= pkg.name %>.css': 'sass/ratchet.scss', + '<%= meta.docsPath %>ios-theme.css': 'sass/theme-ios.scss', + '<%= meta.docsPath %>android-theme.css': 'sass/theme-android.scss' } } }, diff --git a/_config.yml b/_config.yml index 9c1be2f..5530065 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,12 @@ name: Ratchet authors: Connor Sears, Dave Gamache, and Jacob Thornton description: Prototype iPhone apps with simple HTML, CSS, and JS components. -url: http://maker.github.io/ratchet pygments: true permalink: pretty + +# Server +source: ./docs +port: 4000 +baseurl: / +url: http://localhost:4000 diff --git a/dist/ratchet-theme.css b/dist/ratchet-theme.css deleted file mode 100644 index 0944fed..0000000 --- a/dist/ratchet-theme.css +++ /dev/null @@ -1,119 +0,0 @@ -/* - * ===================================================== - * Ratchet v2.0.0 - * Copyright 2014 Connor Sears, Dave Gamache, and Jacob Thornton - * Licensed under http://www.opensource.org/licenses/MIT - * - * Designed and built by @connors, @dhg, and @fat. - * ===================================================== - */ - -.bar-header-secondary ~ .content { - padding-top: 108px; -} - -.bar { - background-color: rgba(30, 176, 233, 0.98); -} -.bar.bar-standard, .bar.bar-footer-secondary { - background-color: rgba(245, 245, 245, 0.98); -} - -.bar-nav { - top: 20px; - -webkit-box-shadow: 0 -20px 0 rgba(30, 176, 233, 0.98), 0 0 1px rgba(0, 0, 0, 0.85); - box-shadow: 0 -20px 0 rgba(30, 176, 233, 0.98), 0 0 1px rgba(0, 0, 0, 0.85); -} - -.bar.bar-header-secondary { - top: 64px; -} - -.title { - color: #fff; -} - -.tab-label { - color: rgba(255, 255, 255, 0.5); -} - -.tab-item.active .tab-label { - color: white; -} - -.btn { - color: rgba(0, 0, 0, 0.3); - border-color: rgba(0, 0, 0, 0.3); -} -.btn:active, .btn.active, .btn.btn-filled { - background-color: rgba(0, 0, 0, 0.3); -} - -.btn-primary { - color: #1eb0e9; - border-color: #1eb0e9; -} -.btn-primary:active, .btn-primary.active, .btn-primary.btn-filled { - background-color: #1eb0e9; -} - -.btn-positive { - color: #34ba15; - border-color: #34ba15; -} -.btn-positive:active, .btn-positive.active, .btn-positive.btn-filled { - background-color: #34ba15; -} - -.btn-negative { - color: #e71e1e; - border-color: #e71e1e; -} -.btn-negative:active, .btn-negative.active, .btn-negative.btn-filled { - background-color: #e71e1e; -} - -.bar-title .btn { - color: #fff; -} -.bar-title .btn:active, -.bar-title .btn.active, -.bar-title .btn-prev:active, -.bar-title .btn-prev.active, -.bar-title .btn-next:active, -.bar-title .btn-next.active, -.bar-title .btn-primary:active, -.bar-title .btn-primary.active { - color: #fff; -} - -.segmented-control { - border-color: #1eb0e9; -} -.segmented-control li { - border-left-color: #1eb0e9; -} -.segmented-control li > a { - color: #1eb0e9; -} -.segmented-control li.active { - background-color: #1eb0e9; -} - -.bar-title .segmented-control { - border-color: #fff; -} -.bar-title .segmented-control li { - border-left-color: #fff; -} -.bar-title .segmented-control li > a { - color: #fff; -} -.bar-title .segmented-control li.active { - background-color: rgba(255, 255, 255, 0.4); -} - -input[type=search] { - color: #555; - background-color: rgba(0, 0, 0, 0.1); -} diff --git a/_includes/footer.html b/docs/_includes/footer.html similarity index 100% rename from _includes/footer.html rename to docs/_includes/footer.html diff --git a/_includes/header.html b/docs/_includes/header.html similarity index 70% rename from _includes/header.html rename to docs/_includes/header.html index 88a210c..c197321 100644 --- a/_includes/header.html +++ b/docs/_includes/header.html @@ -7,19 +7,17 @@ - - - + + + - - - - - + + + diff --git a/_includes/nav.html b/docs/_includes/nav.html similarity index 100% rename from _includes/nav.html rename to docs/_includes/nav.html diff --git a/_layouts/default.html b/docs/_layouts/default.html similarity index 100% rename from _layouts/default.html rename to docs/_layouts/default.html diff --git a/_layouts/home.html b/docs/_layouts/home.html similarity index 100% rename from _layouts/home.html rename to docs/_layouts/home.html diff --git a/docs-assets/css/docs.css b/docs/assets/css/docs.css similarity index 100% rename from docs-assets/css/docs.css rename to docs/assets/css/docs.css diff --git a/docs-assets/css/pygments.css b/docs/assets/css/pygments.css similarity index 100% rename from docs-assets/css/pygments.css rename to docs/assets/css/pygments.css diff --git a/docs-assets/img/android.png b/docs/assets/img/android.png similarity index 100% rename from docs-assets/img/android.png rename to docs/assets/img/android.png diff --git a/docs-assets/img/apple-touch-icon-114x114.png b/docs/assets/img/apple-touch-icon-114x114.png similarity index 100% rename from docs-assets/img/apple-touch-icon-114x114.png rename to docs/assets/img/apple-touch-icon-114x114.png diff --git a/docs-assets/img/apple-touch-icon-57x57.png b/docs/assets/img/apple-touch-icon-57x57.png similarity index 100% rename from docs-assets/img/apple-touch-icon-57x57.png rename to docs/assets/img/apple-touch-icon-57x57.png diff --git a/docs-assets/img/apple-touch-icon-72x72.png b/docs/assets/img/apple-touch-icon-72x72.png similarity index 100% rename from docs-assets/img/apple-touch-icon-72x72.png rename to docs/assets/img/apple-touch-icon-72x72.png diff --git a/docs-assets/img/iphone5c.png b/docs/assets/img/iphone5c.png similarity index 100% rename from docs-assets/img/iphone5c.png rename to docs/assets/img/iphone5c.png diff --git a/docs-assets/img/iphone5s.png b/docs/assets/img/iphone5s.png similarity index 100% rename from docs-assets/img/iphone5s.png rename to docs/assets/img/iphone5s.png diff --git a/docs-assets/img/slide-1.jpg b/docs/assets/img/slide-1.jpg similarity index 100% rename from docs-assets/img/slide-1.jpg rename to docs/assets/img/slide-1.jpg diff --git a/docs-assets/img/slide-2.jpg b/docs/assets/img/slide-2.jpg similarity index 100% rename from docs-assets/img/slide-2.jpg rename to docs/assets/img/slide-2.jpg diff --git a/docs-assets/img/slide-3.jpg b/docs/assets/img/slide-3.jpg similarity index 100% rename from docs-assets/img/slide-3.jpg rename to docs/assets/img/slide-3.jpg diff --git a/docs-assets/js/docs.js b/docs/assets/js/docs.js similarity index 100% rename from docs-assets/js/docs.js rename to docs/assets/js/docs.js diff --git a/docs-assets/js/fingerblast.js b/docs/assets/js/fingerblast.js similarity index 100% rename from docs-assets/js/fingerblast.js rename to docs/assets/js/fingerblast.js diff --git a/components.html b/docs/components.html similarity index 99% rename from components.html rename to docs/components.html index 12fb7d7..aa5e98a 100644 --- a/components.html +++ b/docs/components.html @@ -1,7 +1,6 @@ --- layout: default title: Components · Ratchet -base_url: "../" ---