
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
grunt-markdox
Advanced tools
A grunt task for running markdox.
This plugin requires Grunt ~0.4.1
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, you may install this plugin with this command:
npm install grunt-markdox --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-markdox');
In your project's Gruntfile, add a section named markdox
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
markdox: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
})
Type: String
or Array
Default value: {}
Type: String
or Array
Default value: undefined
The path of the file to write the generated documentation into.
Type: Function
Default value: undefined
A formatting function that takes a docFile and returns it.
Type: Function
Default value: undefined
A function that takes a filepath and data and returns the compiled data.
Type: String
Default value: undefined
The template's filepath.
Type: String
or Array
Default value: undefined
A string pattern that represents a file or group of files or an array file names.
Type: String
or Array
Default value: undefined
The path of the file to write the generated documentation into.
grunt.initConfig({
markdox: {
target: {
files: [
{src: 'src/file1.js', dest: 'docs/file1.md'}
{src: 'src/file2.js', dest: 'docs/file2.md'}
]
}
},
})
grunt.initConfig({
markdox: {
options: {
formatter: function (docfile) {
return docfile;
},
compiler: function(filepath, data){
return myCustomCompiler(data);
},
template: 'output.ejs'
},
target: {
files: [
{src: 'src/file1.js', dest: 'docs/file1.md'}
{src: 'src/file2.js', dest: 'docs/file2.md'}
]
}
},
})
FAQs
A grunt task for running markdox.
The npm package grunt-markdox receives a total of 119 weekly downloads. As such, grunt-markdox popularity was classified as not popular.
We found that grunt-markdox 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’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.