有人知道一个CSS文档工具吗?
问题描述:
我们最近使用OOCSS原则重建了我们的网站,允许一个真正模块化的方式来编写CSS。
We have recently rebuilt our site using the OOCSS principles that allow for a really modular way to write CSS.
这个网站很大,有很多开发人员所以我想要能够记录CSS,以便CSS模块尽可能有效地重用。
The site is large and has many devs working on it so I want to be able to document the CSS so that the CSS modules get reused as efficiently as possible.
有没有人有使用自动化CSS文档工具的任何经验?或修改另一个文档工具以使用CSS文件?
Does anyone have any experience using a automated CSS documentation tool? Or adapting another documentation tool to use CSS files?
答
CSS_DOC
以及文档注释的示例
/**
* Reset text color and line height.
*/
body {
line-height: 1;
color: black;
background: white;
}
这是Ruby的一个实现 CSSDOC 。有关 CSSDOC评论入门的简短教程
It is an implementation in Ruby of CSSDOC. A short tutorial on Getting Started With CSSDOC Commenting