StyleDocco uses comments formatted in Markdown in your Less code to generate documentation and style guide documents from your Less files automatically. Style guides can help you and others, such as content developers, to make sure correct styles are used and generated after changing your Less code base.
For this recipe, you will have to install StyleDocco. This requires Node.js
and can be installed with npm
. You can install StyleDocco with the following command:
npm install styledocco
Read the Installing Node and Grunt recipe in Chapter 11, Compiling Less Real Time for Development Using Grunt, to learn more about Node.js
and npm
.
Markdown is a plain text formatting syntax that can be easily converted into HTML. Stackoverflow (http://stackoverflow.com/), a popular developer forum, uses Markdown for comments and asking questions. Markdown is readable, easy-to-learn, and does not require any special software. If you are not familiar with Markdown...