A-pollo can read documentation tags inside CSS, SASS or LESS files, right now it works by grouping widgets by filename, so if you have two SASS files with multiple examples inside documentation tags each file, you’ll see two example pages.
/*@pollo @name: Social button @auth: [Vittorio Vittori](http://vit.to) @category: Buttons @date: 2015-12-01 @text: This should be used to connect social accounts to the project service. It requires [Font Awesome](http://fontawesome.github.io/) to be loaded as dependency. The code above will show the Facebook version. @html:<a href="#" class="button-social button-social--facebook"> <div class="button-social__icon"> <i class="fa fa-facebook"></i> </div> <div class="button-social__network"> facebook </div> </a> */
/*@pollo @name: Twitter @auth: [Vittorio Vittori](http://vit.to) @date: 2015-12-02 @text: This twitter version has also `button-social--with-effects` modifier to show drop shadow effects @html:<a href="#" class="button-social button-social--twitter button-social--with-effects"> <div class="button-social__icon"> <i class="fa fa-twitter"></i> </div> <div class="button-social__network"> twitter </div> </a> */
.button-social { // sass code here... }
CSS documentation tags list
This is the list of the a-pollo documentation tags for CSS widgets:
Tag name
Required
Type
Description
@name
true
String
Title of the example
@auth
false
Markdown
Author or authors of the widget of the example
@date
false
YYYY-MM-DD
Date of the example
@category
false
String
Widgets will be grouped with this, it’s Uncategorized by default
@text
false
Markdown
Description of the example
@html
false
String
Code snippet of the example, can be copied with a click