
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
grunt-build-docs
Advanced tools
Generate the documentation of your projects using YUIDOC
If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:
npm install grunt-build-docs --save-dev
Run this task with the grunt docs
command.
This task is a [multi task][] so any targets, files and options should be specified according to the [multi task][] documentation. [multi task]: https://github.com/gruntjs/grunt/wiki/Configuring-tasks
This plugin is compatible with grunt 0.4.0rc7
Settings mirror YUIDoc config.
First possibility: Create a documentation for each directory
docs: {
compile: {
name: "Example",
description: 'Example Description',
version: '1.0',
url: 'http://www.example.com',
options: {
outdir: "docs" // path or name of the documentation directory
},
files: [{expand: true, flatten: true, cwd: "test/tests", src: "*", dest: "test/tests"}]
}
}
If you want to create a index page that list and link all the available documentations (Usefull if several parts of your project own a documentation)
options: {
indexdir: "test/tmp/indexdocs", // Path to the index page
indextheme: "themes/simpleIndex" // Optional, if you want to use a custom theme
}
Second possibility: Create a commun documentation (Because the dest is the same for all directories)
docs: {
compile: {
name: "Example",
description: 'Example Description',
version: '1.0',
url: 'http://www.example.com',
options: {
outdir: "../docs"
},
files: [{expand: true, flatten: true, cwd: "test/tests", src: "*", dest: "test/tmp"}]
}
}
All these examples are tested in the plugin, you can see how it works by runnning "grunt test" inside the plugin.
FAQs
Build documentations using YUIDOC
We found that grunt-build-docs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.