vvdoc
TypeScript icon, indicating that this package has built-in type declarations

2.6.1 • Public • Published

vvdoc version

基于 Vite 快速生成文档站点

特性

  1. 开箱即用,快速生成文档站点
  2. 基于vite 启动速度快,编写体验极佳
  3. 支持文档搜索
  4. 自动生成文章目录
  5. 自定义主题

开始使用

yarn create vvdoc
yarn
yarn dev

使用本文档生成的站点

名称 地址
vvModal https://vvmodal.vercel.app/

vvdoc.config.ts

https://github.com/zwmmm/create-vvdoc/blob/main/template/vvdoc.config.ts

自定义入口

当你需要自定义入口,比如全局修改Antd的配置 根目录新增一个 index.tsx

import { ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale/zh_CN'

export default function (props: any) {
  return (
    <ConfigProvider locale={zhCN} componentSize="small">
      {props.children}
    </ConfigProvider>
  )
}

内置组件

  • Message,
  • Alert,
  • Playground

Readme

Keywords

none

Package Sidebar

Install

npm i vvdoc

Weekly Downloads

1

Version

2.6.1

License

MIT

Unpacked Size

46.7 kB

Total Files

59

Last publish

Collaborators

  • zwmmm