Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

JosePedroDias/inkdoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inkdoc - a KISS JavaScript documentation engine

dependency status published version still maintained?

NPM NPM


motivation

It shouldn't be THAT difficult to tame a documentation generation engine.

The rationale here is to have a generic-enough solution.

One can edit and extend its logic (kinda hard) and templates (easy as pie - it uses Handlebars!).

install

npm install -g inkdoc

(sudo may be required depending on your system configuration)

how to

sample results

internals

The engine is split into the following parts:

  • comments parsing into JSON metadata parseComments
  • additional massaging of the extracted data is done in prepareStructure
  • markup generation from JSON metadata generateMarkup

It uses esprima to extract block comments from JavaScript source files.

It uses handlebars templates for generating the final markup.

It uses marked to convert markdown syntax to HTML.

It groups information in a hierarchy of modules, classes and functions/attributes.

log

You can find a human-readable log of inkdoc versions and their changes here

About

a KISS JavaScript documentation engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published