Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
styledocco
Advanced tools
_______ __ __ _____
| __| |_.--.--| |-----.| \-----.----.----.-----.
|__ | _| | | | -__|| -- | _ | __| __| _ |
|_______|____|___ |__|_____||_____/_____|____|____|_____|
|_____|
StyleDocco generates documentation and style guide documents from your stylesheets.
It takes the comments from stylesheets and produces HTML documents that display your comments alongside your code, with any HTML snippets from the comments rendered using the processed stylesheets.
There is no special syntax, comments are just parsed with (GitHub flavored) Markdown. This means that the documentation will still make sense when reading the plain stylesheets, or if you decide to not keep using StyleDocco.
If your project includes a README
file, it will be used as the base for an index.html
. StyleDocco will also add some default styles to your documentation, but they are easy to modify to make it fit with your project.
StyleDocco will automatically compile any SASS, SCSS, Less or Stylus code before it is applied to the page.
StyleDocco requires Node.js.
npm install -g styledocco
or checkout this repository.
StyleDocco is free software, released under the MIT license.
styledocco [options] [INPUT]
--name
, -n
Name of the project (required)--out
, -o
Output directory (default: "docs")--tmpl
Directory for custom index.jade
and docs.jade
templates (optional)--overwrite
Overwrite existing files (docs.css
) in target directory./* <button class="btn primary">Primary</button>
Provides extra visual weight and identifies the primary action in a set of buttons */
.btn.primary {
background: blue;
color: white;
}
Would output an HTML document with one column displaying the rendered button followed by the description, and another column with the code. The code will also be included in a style
element of the document.
See the examples
folder for more in-depth examples.
Thanks to:
FAQs
Generate documentation and style guides with design patterns from stylesheets.
The npm package styledocco receives a total of 3,051 weekly downloads. As such, styledocco popularity was classified as popular.
We found that styledocco demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.