开源软件名称(OpenSource Name):styledown/styledown开源软件地址(OpenSource Url):https://github.com/styledown/styledown开源编程语言(OpenSource Language):JavaScript 94.6%开源软件介绍(OpenSource Introduction):StyledownWrite maintainable CSS styleguides efficiently using a Markdown. See example ▸ Installation$ npm install -g styledown
$ styledown --help How it worksStyledown is made to work in most web development setups. It doesn't favor any framework or language or any preprocessor.
Quickstart guideHere's a generic guide on getting started with Styledown on any project. We're gonna assume that you're using Sass and that your project bundles all CSS files into one file. Let's assume that your files are in
Step 1: DocumentDocument your project's stylesheets with inline comments, or as separate /**
* Component name:
* `.your-component-here` - documentation on what your
* component is goes here. Markdown is encouraged.
*
* @example
* div.your-component-here
* h3 Sample code
* p goes here
*/
.your-component-here {
display: block;
...
} Read more: Documenting ▸ Step 2: ConfigureMake a file, let's call it # Styleguide options
### Head
link(rel="stylesheet" href="/assets/application.css")
link(rel='stylesheet' href='https://cdn.rawgit.com/styledown/styledown/v1.0.2/data/styledown.css')
script(src='https://cdn.rawgit.com/styledown/styledown/v1.0.2/data/styledown.js')
### Body
h1 My Awesome Styleguides
div#styleguides(sg-content) The first one ( Read more: Configuration ▸ Step 3: BuildInvoke $ styledown css/*.css css/config.md > public/styleguides.html Enjoy!Now open UsageStyledown generates Inline CSS mode: Parses comments from CSS files. This is what happens when you pass .css, .sass, .scss, .less and .styl files.
Markdown mode: Takes Markdown files.
Markup formatRead more: Markup format ▸
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论