MCPcopy Index your code
hub / github.com/documentationjs/documentation

github.com/documentationjs/documentation @v14.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v14.0.3 ↗ · + Follow
478 symbols 936 edges 171 files 161 documented · 34% updated 14mo agov14.0.0 · 2022-08-19★ 5,798191 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The documentation system for modern JavaScript

Circle CI npm version Gitter Inline docs

:date: Current maintenance status

  • Supports modern JavaScript: ES5, ES2017, JSX, Vue and Flow type annotations.
  • Infers parameters, types, membership, and more. Write less documentation: let the computer write it for you.
  • Integrates with GitHub to link directly from documentation to the code it refers to.
  • Customizable output: HTML, JSON, Markdown, and more

Examples

Documentation

User Guide

Globally install documentation using the npm package manager:

$ npm install -g documentation

This installs a command called documentation in your path, that you can point at JSDoc-annotated source code to generate human-readable documentation. First, run documentation with the --help option for help:

Usage:

# generate markdown docs for index.js and files it references
documentation build index.js -f md

# generate html docs for all files in src, and include links to source files in github
documentation build src/** -f html --github -o docs

# document index.js, ignoring any files it requires or imports
documentation build index.js -f md --shallow

# validate JSDoc syntax in util.js
documentation lint util.js

# update the API section of README.md with docs from index.js
documentation readme index.js --section=API

# build docs for all values exported by index.js
documentation build --document-exported index.js

# build html docs for a TypeScript project
documentation build index.ts --parse-extension ts -f html -o docs

Commands:
  build [input..]   build documentation
  lint [input..]    check for common style and uniformity mistakes
  readme [input..]  inject documentation into your README.md

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Contributing

We have plenty of issues that we'd love help with.

  • Robust and complete JSDoc support, including typedefs.
  • Strong support for HTML and Markdown output
  • Documentation coverage, statistics, and validation

documentation is an OPEN Open Source Project. This means that:

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

Extension points exported contracts — how you extend this code

Foo (Interface)
* This is my interface.
__tests__/fixture/interface.input.js

Core symbols most depended-on inside this repo

inferKind
called by 35
src/infer/kind.js
t
called by 21
src/output/util/format_type.js
synonym
called by 19
src/parse.js
getOption
called by 15
src/default_theme/assets/split.js
findTarget
called by 13
src/infer/finders.js
typeAnnotation
called by 11
src/type_annotation.js
generate
called by 11
src/output/markdown_ast.js
formatType
called by 11
src/output/util/format_type.js

Shape

Function 378
Method 53
Class 46
Interface 1

Languages

TypeScript100%

Modules by API surface

src/parse.js35 symbols
__tests__/fixture/document-exported.input.js26 symbols
src/default_theme/assets/split.js23 symbols
__tests__/fixture/es6.input.js23 symbols
src/output/markdown_ast.js15 symbols
src/extractors/exported.js14 symbols
__tests__/fixture/sort-order-alpha.input.js14 symbols
__tests__/fixture/params.input.js11 symbols
src/infer/params.js10 symbols
src/infer/membership.js10 symbols
__tests__/lib/infer/membership.js10 symbols
__tests__/fixture/html/nested.input.js10 symbols

Dependencies from manifests, versioned

@babel/core7.18.10 · 1×
@babel/generator7.18.10 · 1×
@babel/parser7.18.11 · 1×
@babel/traverse7.18.11 · 1×
@babel/types7.18.10 · 1×
chalk5.0.1 · 1×
chdir0.0.0 · 1×
chokidar3.5.3 · 1×
cz-conventional-changelog3.3.0 · 1×
diff5.1.0 · 1×
doctrine-temporary-fork2.1.0 · 1×
documentation-schema0.0.1 · 1×

For agents

$ claude mcp add documentation \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact