欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

source code document

程序员文章站 2024-03-20 22:32:34
...

It’s always good to write source code document. As it’s said better written than remember nothing.

Recently, I was involved in one js project. And the project contains basic control and app develop framework. So it’s a must to have clearlly wirten APIs.

We choose js doc as the tools.

First, install the tools

sudo npm install git+https://github.com/jsdoc3/jsdoc.git
sudo npm install ink-docstrap

Secondly, setup configuration.json file

Finally, run

jsdoc -c ./configuration.json -t $TemplatePath -d ./docstrap_doc

where $TemplatePath, is node_modules/ink-docstrap/template


After that, you have got bunches of .xml files. And you can put in in some website. They are static web sites.

相关标签: 代码文档