用于CSS的TOC生成器 - 与注释和文档相关的问题

时间:2012-10-22 20:13:24

标签: css documentation comments sections

我想改进我的CSS内联评论和文档。

我正在寻找一个能吃CSS输入的生成器,如:

/* @section 1.0 Foobar *

.foobar {
     color: #fff; }

/* @section 1.1 Hello *


... css definitions ...


/* Another sub comment *

... css definition ...

/* @section 1.2 Woop *

输出部分概述,如:

  1.0 Foobar

     1.1 Hello

        1.1.1 Another sub comment

     1.2 Woop

2 个答案:

答案 0 :(得分:0)

我不知道这是否涵盖您所寻找的内容,但请尝试http://csscomb.com/

答案 1 :(得分:0)

我写了一个小Grunt插件正在做我想要的事情:

https://github.com/redaxmedia/grunt-tocgen

相关问题