styleguide-gen
v1.0.0
Published
This Tool reads commented .scss-Files from a specified Folder and extract the comments to html.
Downloads
2
Readme
Team Enterprise Styleguide
This Tool reads commented .scss-Files from a specified Folder and extract the comments to html.
GETTING STARTED
Navigate with your Terminal into the scssComments2HTML Folder.
To start copy all scss.-Files you want to use in your Styleguide in the /content-Folder
type "npm run build" in your terminal.
Out of all the content the Tool creates a styleguide.min.css and a webpage.min.css, placed in the /docs-Folder. A index.html is also created inside the /docs-Folder. This file contains the Living Styelguide which you can explore in your Browser.
HOW TO USE THE STYLEGUIDE
You can import the styleguide.min.css file with the link-Tag or you copy it directly into your Project and use it like a regulary .css-File.
HOW IT WORKS
The Tool looks for all .scss-Files in the Folder.
An Container is created for each .scss-File. Be sure that you follow the correct Format-Style to gather all informations from the file.
Every article should have a "title", an "overview" and as many "sections" you want
a section contains an "example" of the rendered object, an "snippet" which shows how the Code looks like. And also an optional description.
To read the correct information from the Files, your Comments should look like this:
- Out of all the content the Tool creates a styleguide.min.css and a webpage.min.css, placed in the /docs-Folder. A index.html is also created inside the /docs-Folder. This file contains the Living Styelguide which you can explore in your Browser.
NEED CHANGES IN THE INDEX.HTML?
If you need to change something like the design of the highlight.js or something else, you need to change the template.html! Also all paths need to be relative to the index.html in /docs! Otherwise it will not work.
After you have changed something run the build command to add all changes to the index.html in /docs