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.
A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
© 2019, Onur Yıldırım (@onury).
A powerful tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
...like this:
This is generated with the built-in template, Zebra.
click to view live
npm i docma -D
You can use Docma CLI to build documentations directly from your console.
Once you create the configuration file docma.json
in your project root, it's quite simple.
docma
You can even serve the docs locally and test.
docma serve
See
If you need to build documentation from within your code, use the API.
const Docma = require('docma');
Either by passing a configuration object.
const config = {
src: [
'./code/**/*.js',
'./README.md'
],
dest: './output/doc'
};
Docma.create()
.build(config)
.then(success => console.log('Documentation is built successfully.'))
.catch(error => console.log(error));
Or by reading configuration from a JSON file.
Docma.create()
.build('./path/to/docma.json')
.catch(error => console.log(error));
See Docma API Reference.
Sometimes, the issue is with invalid JSDoc comments. See this for linting/validating your JSDoc while you type and within a build process.
To investigate the parsed JSDoc output, enable the debug
option that will create a JSON output(s) within the root of the destination directory. If you have a problem with the parsed documentation data, open an issue @ jsdoc-x. (I'm the author.)
For markdown output issues (that are not related with style), you can open an issue @ marked.
See CHANGELOG.
Docma version | Node version |
---|---|
v3.0.0 | v8+ |
v2.0.0 | v6+ |
v1.0.0 | v4+ |
Read Docma documentation, built with Docma, for a Docma demo... :eyes:
Also see the F.A.Q. section.
MIT. You don't have to include any copyright notice in your documentation output or templates but I'd appreciate if you let people know about this tool so we can read better documentations.
Emoji shortcuts used in source markdown files are parsed into twemoji. Graphics and icons licensed under CC-BY 4.0.
3.2.2 (2019-01-08)
undefined
in docs parsed from ES5 code.jsdoc.predicate
(or jsdoc.filter
) option would not be taken into account.Invalid assignment
error due to ES2015 syntax.Map<String, Object>
. (PR #65 by @MaienM)FAQs
A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
We found that docma 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.