Giter Club home page Giter Club logo

assemble-boilerplate-site's Introduction

boilerplate-site Build Status

Boilerplate for generating a basic static site with Assemble.

NOTICE: THIS BOILERPLATE IS BEING REFACTORED

You may find outdated information or examples in this project. While we're refactoring, you might be more interested in boilerplate-bootstrap in the meantime.

Getting Started

  • Download this project and unzip it into a new folder.
  • In the project folder, run npm install to install Assemble, Grunt and any other dependencies.
  • Once the dependencies are installed you may run grunt assemble to build the example project.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile, as well as install and use Grunt plugins.

The "assemble" task

Overview

In the project's Gruntfile, the example assemble task is pre-loaded with paths and options following standard Grunt.js conventions:

grunt.initConfig({
  // The "assemble" task
  assemble: {
    // Task-level options.
    options: {
      flatten: true,
      assets: 'dist/assets',
      layout: 'templates/layouts/default.hbs',
      partials: 'templates/partials/*.hbs',
      data: 'src/data/*.{json,yml}'
    },
    // Templates to build into pages
    pages: {
      files: {
        'dist/': ['templates/pages/*.hbs']
      }
    }
  }
})

Boilerplate Author

Jon Schlinkert

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Use Assemble to build and maintain your gh-pages, blog or documentation. Lint and test your code using Grunt.

assemble-boilerplate-site's People

Contributors

doowb avatar hariadi avatar jonschlinkert avatar makotot avatar nschonni avatar sebastiankovacs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assemble-boilerplate-site's Issues

Pages collection weirdness(?)

I feel like I may have woefully misunderstood the docs, but if I add this at the top of examples.hbs:

{{#each pages}}
{{../pagename}}
{{/each}}

it outputs:

examples.html examples.html examples.html examples.html examples.html 

which I don't think is correct...or is it?! I thought it would be:

blog.html docs.html examples.html helpers.html markdown.html 

add boilerplate CSS

I think it's good that the CSS has been removed temporarily. this needed to be refactored badly (thanks @hariadi for taking the initiative!).

Perhaps we should include a few different "themes" that the developer can choose from?

What's wrong

i cloned this.
$ npm i
$ grunt

....

Assembling pages...
File "blog.html" assembled...ERROR
Warning: Could not find property 'toc' Use --force to continue.

Aborted due to warnings.

grunt assemble: Could not find property 'toc'

grunt assemble
Running "assemble:pages" (assemble) task
assembling default layout
assembling partials
assembling data

Assembling pages...
File "blog.html" assembled...ERROR
Warning: Could not find property 'toc' Use --force to continue.

Aborted due to warnings.

highlight.js is required for markdown helper

Strictly speaking, highlight.js isn't "required", but it is used as the default code highlighter with the markdown helpers that are bundled in. So we should probably add that back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.