Book Image

Less Web Development Cookbook

Book Image

Less Web Development Cookbook

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Compiling style guides with Grunt


In the Building style guides with StyleDocco recipe in Chapter 2, Debugging and Documenting Your Less Code, you can see how style guides can help you, and content developers can directly see the effect of your work. With the Grunt style guide plugin, you can automate the process of creating style guides.

Getting ready

For this recipe, you need to have the style guide plugin installed and loaded in the Gruntfile.js file. If you have not installed this plugin, which requires you to read the Installing Grunt plugins recipe of this chapter, you can do so using the following command in the root of your project:

$ npm install grunt-styleguide --save-dev

In this recipe, the style guide will be built with StyleDocco, which requires your Less code to be commented with comments written in the Markdown syntax. Markdown is a plain text formatting syntax, designed such that it can be easily converted in to HTML.

Note

At http://stackoverflow.com/, the popular question and...