Gathering detailed insights and metrics for grunt-mdoc
Gathering detailed insights and metrics for grunt-mdoc
Gathering detailed insights and metrics for grunt-mdoc
Gathering detailed insights and metrics for grunt-mdoc
Grunt plugin generating HTML documentation from Markdown sources using mdoc
npm install grunt-mdoc
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
64 Commits
1 Forks
2 Watchers
3 Branches
2 Contributors
Updated on Sep 24, 2019
Latest Version
1.0.3
Package Id
grunt-mdoc@1.0.3
Unpacked Size
7.09 kB
Size
3.22 kB
File Count
5
NPM Version
6.9.0
Node Version
10.16.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This module provides a grunt multi-task generating HTML documentation from Markdown sources using mdoc.
You need node >= 0.10, npm and grunt >= 0.4 installed and your project build managed by a Gruntfile with the necessary modules listed in package.json. 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:
1$ npm install grunt-mdoc --save-dev
Store your written articles in to a folder (input), specify a target folder for the generated HTML pages and optionally a title page (index.md):
1input/ 2 overview.md 3 ... 4output/ 5 assets_/ 6 index.html 7 overview.html 8 ... 9index.md 10Gruntfile.js
Add the mdoc
entry with the mdoc task configuration to the options of the
grunt.initConfig
method:
1grunt.initConfig({
2 mdoc: {
3 dist: {
4 src: 'input',
5 dest: 'output',
6 options: {
7 indexContentPath: 'index.md',
8 baseTitle: 'My Project Documentation'
9 }
10 }
11 }
12});
The supported options are:
src
: (required) the source folder with files in the Markdown
format; sub-folders will be searched recursivelydest
: (required) the target folder for the HTML filesindexContent
: (optional) HTML markup to put to the top of the index
page; it takes precedence over indexContentPath
indexContentPath
: (optional) Markdown source file for the index pagebaseTitle
: (optional) the title text for the HTML page headThen, load the plugin:
1grunt.loadNpmTasks('grunt-mdoc');
Call the mdoc
task:
1$ grunt mdoc
or integrate it to your build sequence in Gruntfile.js
:
1grunt.registerTask('default', ['mdoc', ...]);
The generated index.html
file should be opened from a HTTP server. The
sidebar that shows the documentation index is loaded by AJAX, which does
not work when the HTML page is opened from the file://
scheme.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2015-2019 Ferdinand Prantl
Licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
43 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More