Skip to content

universalweb/Docredux

Repository files navigation

Docredux

Dead simple documentation generator for JSDOC syntax. Docredux plucks out the JSDOC syntax inside of your compiled code and returns an organized JSON structure and saves it to a JSON file. The generated JSON Object is then used for creating an HTML documentation website for the code.

Example

The destination is the location where the generated file will save.

import docredux from '@universalweb/docredux';
import { dirname } from 'path';
import { fileURLToPath } from 'url';
const currentDirname = dirname(fileURLToPath(import.meta.url));
await docredux({
  destination: `${currentDirname}/docs/`,
  source: `${currentDirname}/docs/bundle.js`,
});

© copyright 2023 Universal Web, Inc

About

Dead simple documentation generator for JSDOC syntax.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published