Permalink
Browse files

Change destination from site to _gh-pages

  • Loading branch information...
1 parent 208e161 commit 854b5809fc267bd55587fe67003fdb7cd880eee3 @hariadi hariadi committed Aug 17, 2013
View
@@ -3,4 +3,5 @@ npm-debug.log
vendor
tmp
*.sublime-project
-*.sublime-workspace
+*.sublime-workspace
+_gh_pages
View
@@ -12,14 +12,17 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
+ pkg : grunt.file.readJSON('package.json'),
+ site: grunt.file.readYAML('src/data/site.yml'),
assemble: {
// Task-level options
options: {
- flatten: true,
+ prettify: {indent: 2},
+ marked: {sanitize: false},
+ production: true,
data: 'src/**/*.{json,yml}',
- assets: 'site/assets',
+ assets: '<%= site.destination %>/assets',
helpers: 'src/helpers/helper-*.js',
layoutdir: 'src/layouts',
partials: ['src/includes/**/*.hbs'],
@@ -28,7 +31,7 @@ module.exports = function(grunt) {
// Target-level options
options: {layout: 'default.hbs'},
files: [
- { expand: true, cwd: 'src', src: ['*.hbs', '!index.hbs'], dest: 'site/' },
+ { expand: true, cwd: 'src', src: ['*.hbs', '!index.hbs'], dest: '<%= site.destination %>/' },
{ expand: true, cwd: 'src', src: ['index.hbs'], dest: './' }
]
}
@@ -37,7 +40,7 @@ module.exports = function(grunt) {
// Before generating any new files,
// remove any previously-created files.
clean: {
- all: ['site/**/*.{html,md}', 'index.html']
+ all: ['<%= site.destination %>/**/*.{html,md}', 'index.html']
}
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Home</title>
- <link rel="stylesheet" href="site/assets/bootstrap.css">
+ <link rel="stylesheet" href="_gh-pages/assets/bootstrap.css">
</head>
<body>
<!-- nav partial -->
@@ -35,7 +35,7 @@
<!-- body partial, used for adding pages to layout -->
-<h1><a href="http://github.com/assemble/boilerplate-site">boilerplate-site v0.1.1</a> <a href="https://travis-ci.org/assemble/boilerplate-site"><img src="https://travis-ci.org/assemble/boilerplate-site.png" alt="Build Status"></a></h1>
+<h1><a href="http://github.com/assemble/boilerplate-site">boilerplate-site v0.1.1</a></h1>
<blockquote>
<p>Boilerplate for generating a basic static site with Assemble.</p>
</blockquote>
@@ -51,21 +51,21 @@
<h2>The &quot;assemble&quot; task</h2>
<h3>Overview</h3>
<p>In the project&#39;s Gruntfile, the example <code>assemble</code> task is pre-loaded with paths and options following standard Grunt.js conventions:</p>
-<pre><code class="lang-js">grunt.initConfig({
- // The &quot;assemble&quot; task
+<pre><code class="language-js">grunt.initConfig({
+ <span class="comment">// The "assemble" task</span>
assemble: {
- // Task-level options.
+ <span class="comment">// Task-level options.</span>
options: {
- flatten: true,
- assets: &#39;dist/assets&#39;,
- layout: &#39;templates/layouts/default.hbs&#39;,
- partials: &#39;templates/partials/*.hbs&#39;,
- data: &#39;src/data/*.{json,yml}&#39;
+ flatten: <span class="literal">true</span>,
+ assets: <span class="string">'dist/assets'</span>,
+ layout: <span class="string">'templates/layouts/default.hbs'</span>,
+ partials: <span class="string">'templates/partials/*.hbs'</span>,
+ data: <span class="string">'src/data/*.{json,yml}'</span>
},
- // Templates to build into pages
+ <span class="comment">// Templates to build into pages</span>
pages: {
files: {
- &#39;dist/&#39;: [&#39;templates/pages/*.hbs&#39;]
+ <span class="string">'dist/'</span>: [<span class="string">'templates/pages/*.hbs'</span>]
}
}
}
@@ -85,7 +85,7 @@
- <script src="site/assets/highlight.js"></script>
+ <script src="_gh-pages/assets/highlight.js"></script>
</div>
</body>
</html>
View
@@ -0,0 +1,6 @@
+###
+# Site variables
+###
+
+production: <%= production %>
+destination: ./_gh-pages

0 comments on commit 854b580

Please sign in to comment.