documentation?documentation is a documentation generation system that targets JavaScript code; and is itself implemented
in JavaScript. It exposes multiple interfaces for users:
npm i -g documentation, it provides a binary for command-line usagedocumentation with npm to use the node-facing interfacedocumentation runs in node.js but supports JavaScript
that runs in any environment. You can use it to document browser libraries,
server libraries, and wherever RequireJS or another module system is used.
documentation?There are two main ways:
documentation command on your command-line to generate docs
from your source code.documentation differ from JSDoc?JSDoc is both a standard syntax for documenting code and an
application, also called jsdoc, that processes that syntax into documentation.
documentation uses the JSDoc syntax and provides an alternative to the jsdoc
application.
documentation instead of JSDoc?documentation aims to modernize and simplify the process of generating JavaScript
documentation.
require() syntax so that node modules can be documented
by giving their main filedocumentation
are documented. JSDoc is not well documented internally.documentation instead of writing a Markdown file by hand?documentation can generate multiple formats. When you create a
website, documentation can take your documentation and generate
beautiful HTML output.Array<String>, and to support custom object types with inter-linkingBy default, documentation.js follows dependencies within your source tree
and excludes node_modules from results. This is meant to process your application
code automatically but avoid documenting the npm modules you're
using.
This means that if you point documentation.js at your index.js file and
that file uses require or import to include other source files,
those source files will be documented too.
You can customize this behavior by specifying the --shallow command-line
option. With --shallow specified, dependencies aren't followed: documentation.js
processes only those files you explicitly name.
If you're using ES modules, you enable the option --document-exported to automatically
document all exported bindings in your project, even if they don't have JSDoc comments.
This also ignores non-exported items, even if they are commented.
The short answer is "no".