Socket
Book a DemoInstallSign in
Socket

vvdoc

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vvdoc

1. 开箱即用,快速生成文档站点 2. 基于vite 启动速度快,编写体验极佳 3. 基于mdx,直接运行React组件

npmnpm
Version
2.3.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

vvdoc version

基于 Vite 快速生成文档站点

特性

  • 开箱即用,快速生成文档站点
  • 基于vite 启动速度快,编写体验极佳
  • 基于mdx,直接运行React组件

开始使用

yarn create vvdoc
yarn
yarn dev

使用本文档生成的站点

名称地址
vvModalhttps://vvmodal.vercel.app/

vvdoc.config.json

{
  "title": "vvModal",
  "logo": "",
  "repository": "https://github.com/zwmmm/vvModal",
  "menus": [
    {
      "text": "首页",
      "active": "^/",
      "path": "/"
    },
    {
      "text": "API",
      "active": "^/apis",
      "path": "/apis/"
    }
  ],
  "chapters": {
    "/apis/": [
      {
        "name": "Apis",
        "children": [
          {
            "name": "create",
            "path": "/apis/"
          },
          {
            "name": "show",
            "path": "/apis/show"
          },
          {
            "name": "antdModal",
            "path": "/apis/antdModal"
          },
          {
            "name": "antdDrawer",
            "path": "/apis/antdDrawer"
          }
        ]
      },
      {
        "name": "Hooks",
        "children": [
          {
            "name": "useModal",
            "path": "/apis/useModal"
          },
          {
            "name": "useShow",
            "path": "/apis/useShow"
          },
          {
            "name": "useHide",
            "path": "/apis/useHide"
          }
        ]
      }
    ]
  }
}

自定义入口

当你需要自定义入口,比如全局修改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

FAQs

Package last updated on 29 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts