webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link
documentation-generator jsdoc-comments nodejs webdoc

© 2020-2022 webdoc Labs

Logo-Frame

webdoc Example documentation

webdoc is the next generation documentation generator for the family of web languages. It supports the JSDoc notation and infers type data from TypeScript definitions.

You can checkout the documentation for example/ here!

Usage :newspaper_roll:

npm install --save-dev @webdoc/cli

To get started, create a webdoc.conf.json file in your project directory.

{
  "source": {
    "include": "src/",
    "excludePattern": "(node_modules|lib|test)"
  },
  "plugins": [
    "plugins/markdown"
  ],
  "opts": {
    "destination": "docs"
  },
  "template": {
    "repository": "<your_github_url>",
    "outputSourceFiles": false
  }
}

The only required field is source.include which tells webdoc where the source files are. @webdoc/cli's README details more configuration options

You can now run webdoc in your terminal and documentation will be generated. Be sure to serve the documentation from the folder it is generated in. If you need to serve from an ancestor directory, provide the documentation path relative to the root using the --site-root option, e.g. webdoc --site-root docs.

Features :tada:

Coming soon: