Skip to content

Instantly share code, notes, and snippets.

@mitomex
Created February 22, 2013 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitomex/5014841 to your computer and use it in GitHub Desktop.
Save mitomex/5014841 to your computer and use it in GitHub Desktop.
How to Styledocco

Styledocco の使い方メモ

http://jacobrask.github.com/styledocco/

Install

npm install -fg styledocco
  • -f は、--force で強制かしら?
  • -g は、--global でグローバルかしら?

Compile

基本的な変換は、以下のとおり。

styledocco -n "名前" css

これで、CSSディレクト内のファイルを変換し、docsディレクトリ内に出力される。名前は Style Guide に表示されるタイトルみたいなもの。

Use compass

コンパスを使って変換するときは、以下のとおり。

styledocco -n "名前" --preprocessor "sass" sass

さらに、コンパスをコンパイルしつつ、Style Guide も出力というときは、以下のとおり。

compass compile && styledocco -n "名前" --preprocessor "sass" sass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment