Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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
The npm package grunt-build-docs receives a total of 1 weekly downloads. As such, grunt-build-docs popularity was classified as not popular.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.