text: /*
   * example-assemble-anchors
   * https://github.com/assemble/example-assemble-anchors
   * Copyright (c) 2013
   * Licensed under the MIT license.
   */
  
  'use strict';
  
  module.exports = function(grunt) {
  
    var pretty = require('pretty');
  
    // Project configuration.
    grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),
      vendor: grunt.file.readJSON('.bowerrc').directory,
      site: grunt.file.readYAML('_config.yml'),
  
      // Build HTML from templates and data
      assemble: {
        options: {
          flatten: true,
          site: '<%= site %>',
          assets: '_gh_pages/assets',
          partials: ['templates/includes/*.hbs'],
          layouts: 'templates/layouts',
          postprocess: pretty
        },
        example: {
          options: {
            plugins: ['assemble-contrib-anchors'],
          },
          files: {'_gh_pages/': ['templates/*.hbs']}
        }
      },
  
      // Before generating any new files,
      // remove any previously-created files.
      clean: {
        example: ['_gh_pages/*.html']
      }
    });
  
    // Load npm plugins to provide necessary tasks.
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('assemble');
  
    // Default tasks to be run.
    grunt.registerTask('default', ['clean', 'assemble']);
  };
  