public
Description: Emit documentation for sass files in easy to read formats
Homepage:
Clone URL: git://github.com/chriseppstein/sassdoc.git
richardaday (author)
Sun Mar 01 22:27:43 -0800 2009
commit  47ca60b972448b4d9a86007176997ce99fb3cba9
tree    f926f852cafba25ce0d8d04225214041221c4262
parent  6539ab2764fe5ff0e4da08ef59fc45e959cd450b
name age message
file README.markdown Loading commit data...
file TODO.markdown
directory bin/
directory lib/
README.markdown

SassDoc

SassDoc is a documentation tool for Sass libraries. It allows you to document the constants and mixins of your sass files within the contents of the sass file for easy maintenance.

SassDoc Syntax

To document a mixin you must make a comment prior to your mixin and mark it as documentation by adding two extra asterisks to the start of the documentation. This can be used with silent comments (//) or loud comments (/*).

Parameters are documented with an @parameter declaration and the value of the documentation indented below.

Example

//**
  The odd row color for a table
!odd_row_color = red

//**
  The even row color for a table
!even_row_color = blue

//**
  Sets background colors for a table so that rows and columns alternate and are shaded
  correctly.
  @parameter even_row_color
    The color of even rows. Even rows must have the .even class on them
  @parameter odd_row_color
    The color of odd rows. Odd rows must have the .odd class on them.
  @parameter dark_intersection
    This color will be subracted from the row color for even columns.
  @parameter header_color
    The color of the header.
  @parameter footer_color
    The color of the footer.

=alternating-rows-and-columns(!even_row_color, !odd_row_color, !dark_intersection, !header_color = #FFF, !footer_color = #FFF)
  ...

Example Output (Plain Text)

Mixin: +alternating-rows-and-columns(even_row_color, odd_row_color, dark_intersection[, header_color, footer_color])
--------------------------------------------------------------------------------------------------------------------
Sets background colors for a table so that rows and columns alternate and are shaded
correctly.

Parameter: even_row_color
  The color of even rows. Even rows must have the .even class on them
Parameter: odd_row_color
  The color of odd rows. Odd rows must have the .odd class on them.
Parameter: dark_intersection
  This color will be subracted from the row color for even columns.
Parameter: header_color (default value: white)
  The color of the header.
Parameter: footer_color (default value: white)
  The color of the footer.

Variable: !odd_row_color
-------------------------
The odd row color for a table


Variable: !even_row_color
--------------------------
The even row color for a table