![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
© 2018, 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 -g
You can use Docma CLI to build documentations directly from your console. Once you create the configuration (JSON) file, it's quite simple.
docma -c path/to/docma.json
You can even serve the docs locally and test.
docma serve path/to/docs
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.
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.
Note: If you're upgrading from Docma v1.x to v2.x, there are some breaking changes.
Read Docma documentation, built with Docma, for a Docma demo... :eyes:
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.
2.0.0 (2018-04-12)
This is a big release with some breaking changes.
Please read this changelog thoroughly before updating your Docma configuration.
assets
build configuration which provides ability to copy defined asset files/directories to build directory; so you can use/link to non-source, static asset files (such as images, PDFs, etc). See [build configuration][build-config]. Fixes #29.markdown.xhtml
option for build configuration.clean
option that specifies whether to empty destination directory before the build. Default is false
."path"
.100%
of parent container while keeping the aspect ratio.jsdom
), Docma v2+ requires Node.js v6 or newer.scope
, by access
type, by kind
, grouped
or alphabetic
(default). See jsdoc.sort
option in [build configuration][build-config].clean
option for the old behavior. Fixes #34.<h1 />
and <h2 />
tags are now followed with a <hr/>
, like on GitHub.docma.template.json
file that defines the template build and configuration options is dropped in favor of template module main (JS) file or package.json
. There are several other improvements. See updated documentation on Creating Docma Templates.compile
property of template configuration is removed. Now, scripts or less/sass files of the template should be pre-compiled. This is logical and speeds up the documentation build process of Docma.--clean
to empty destination directory before the build.docma serve
for starting a static server for serving / testing the generated SPA.docma template init
for initializing a new Docma template project.docma template doctor
for diagnosing a Docma template. Useful for template authors.docma.config.json
in favor of docma.json
(shorter) and .docma.json
if you need to hide it. This does not break anything, you can still use the former if you want.docma.json
(or .docma.json
) file in the current working directory if -c
option is omitted.-v
(lowercase) and -V
(uppercase) are swapped. -v
gets the Docma version now (alias --version
). And -V
is --verbose
.See [CLI documentation][cli] for detailed information on updated CLI.
navigate
that's triggered either when route is changed or on hash-change.docma.apis[name].documentation
instances, now has a .$docmaLink
property.DocmaWeb.Utils
: .type()
, .getSymbolLink()
, .getLevels()
, .getParentName()
, .getParent()
, .isPackagePrivate()
, .isEvent()
, .isGenerator()
, .isCallback()
, .isConstant()
, .isInterface()
, .isExternal()
and .isMixin()
..getCodeTags()
, .getFormattedTypeList()
. Fixes #33..trimNewLines()
. This also has a dust filter $tnl
.#
). e.g. when navigated to #MyClass%7EInnerObject
instead of #MyClass~InnerObject
.DocmaWeb.Utils.getLongName()
, occured after JSDoc core upgrade.currentRoute
parameter of the route
event. Passing null
instead of empty route object when route does not exist.DocmaWeb.Utils.isClass()
utility method where meta.code.type
is not set to ClassDeclaration
.DocmaWeb.Utils.isProperty()
utility method. It'll now return false
if symbol is a method/function. This also affects the following methods: .isStaticProperty()
, .isInstanceProperty()
.DocmaWeb.Utils
static namespace (formerly under docma.utils
).DocmaWeb.Utils.getSymbolByName()
signature is changed.FAQs
A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
The npm package docma receives a total of 1,450 weekly downloads. As such, docma popularity was classified as popular.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.