This post was originally posted here
I'm building a simple doc tool for inline commentaries, with markdown support. The project started as a need to have a simple documentation tool for documenting reusable components.
Installation
npm install @nhevia/simple-docs
or install as a development dependency:
npm install --save-dev @nhevia/simple-docs
Usage
sdoc
as a package.json script:"scripts": { "docs": "sdoc" }
sdoc
preffix:/*sdoc This is the main component */ // your code
npm run docs
. It will indentify documentation blocks in your project and generates an output file (sdoc.md
by default, on root folder):Since the generated file is markdown, it is supported inside documentation blocks.
/*sdoc This is the **main** component */
There is more info (examples, options, etc) in the repository's readme
This is my first public package and I got some help from a couple awesome people, but the project is totally open for PRs, enhancement, fixes, documentation, you call it.
I'm posting this hoping someone might find it useful or want to improve it a little bit. I don't intend this to be super serious because there are awesome documentation tools with lot of support, but it surely is a fun way to spend some time.