jsdoc2vitepress

1.0.5 • Public • Published

NPM version NPM downloads NPM License

Generates vitepress API documentation from jsdoc annotated source code.

What you need is to write comments that conform to the jsdoc specification, and jsdoc2vitepress will help you generate API documentation by VitePress.

Install

npm install -D jsdoc2vitepress

Usage

Init docs directory

jsdoc2vitepress init 
What will happen?

In local Directory

md目录

Start VitePress

Generates vitepress API documentation from jsdoc annotated source code and run Vitepress

jsdoc2vitepress start
What will happen?

In console

init&start

In local Directory

md目录

In Once of the Markdown

MD内容

Build VitePress

Generates vitepress API documentation from jsdoc annotated source code and build Vitepress

jsdoc2vitepress build
What will happen?

In console

构建网站

In local Directory

vitepress-dist

Website

文档网站

How it work

JS/TS annotated source code -> Markdown ->VitePress website

总体流程

See More detail in 注释生成文档太难看?试试用注释生成vitepress文档

License

MIT

Copyright (c) 2022-present, luciozhang

/jsdoc2vitepress/

    Package Sidebar

    Install

    npm i jsdoc2vitepress

    Weekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    28.7 kB

    Total Files

    34

    Last publish

    Collaborators

    • luciozhang