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!
npm install -g @webdoc/cli
To get started, create a webdoc.conf.json
file in your project directory.
{
"includePattern": ["src/**/*.js"],
"plugins": [
"plugins/markdown"
],
"opts": {
"destination": "docs"
},
"template": {
"repository": "<your_github_url>",
"outputSourceFiles": false
}
}
The only required field is includePattern
which tells webdoc where the documented code is located at.
You can now run webdoc
in your terminal and documentation will be generated.
Packages | npm | |
---|---|---|
@webdoc/cli | ||
@webdoc/model | ||
@webdoc/types | ||
@webdoc/parser | ||
@webdoc/externalize | ||
@webdoc/template-library | ||
@webdoc/legacy-template | ||
@webdoc/default-template |
-
Support for JavaScript, Flow, and TypeScript. The modular structure of @webdoc/parser allows you to integrate it with other languages as well.
-
High-performance document tree that enforces proper relationships between symbols.
-
Importing external APIs to integrate your documentation
Coming soon:
-
Documentation coverage analysis
-
Powerful default template that:
- integrates with JSFiddle & CodePen for live examples of your API
- provides a neat and clean navigation for users
- makes it easy to write tutorials
- This Trello board has all the future plans for this project: https://trello.com/b/aXh3G8En
Glad you asked! Open an issue and I'll get you something to work on! webdoc has an amazing potential to disrupt the stagnated documentation process!