New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ektx/v-book

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ektx/v-book

Make Vue Demo Easy!!

  • 0.7.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

VBook

[TOC]

Make Vue Demo Easy!!

欢迎你使用 VBook。
VBook 希望可以帮助你高效的书写 Vue 组件库文档。

特性

  • 简单易用。
  • 快速搭建自己的 Vue 组件或示例的文档。
  • 灵活的定制化,可以自己调整风格与主题。

安装

npm i -g @ektx/v-book

使用

# 进入你需要展示的 markdown 目录
cd doc

# 初始化目录
vbook init

# 运行
vbook run

# 帮助
vbook -h

基础约定

项目结构

 Project
  ├─── doc (示例)markdown示例文档目录
  │  ├─── readme.md (可选)markdown文档,这里只列一个
  │  ├─── index.js  (必须 自动)vbook 展示控制文件
  |  ├─── .vbook    (必须 自动)功能扩展目录
  |     ├─── enhance.js  (可选)自定义组件库引用与第三方组件库扩展
  ├─── src          (示例)组件库位置,可以自定义位置
  │  ├─── index.js  (示例)组件库主入口
  │  ├─── styles    (示例)组件库样式文件夹
  │     ├─── index.less (示例)样式文件主入口,支持index.sass

说明:

  • 示例:例子,用户可以自定义文件(夹)位置与名称
  • 可选:非必须文件,用户可以删除或自己创建类似文件
  • 必须:vbook运行必须文件,不可删除
  • 自动:vbook运行或初始化会自动生成

index.js 规则

export default {
  // 页面标题
  title: 'VBook',
  // logo地址
  logo: '',
  // 侧边菜单内容列表
  aside: [
    {
      label: '使用指南',
      children: [
        {
          label: '使用指南',
          // doc/readme.md
          file: 'readme'
        }
      ]
    },
  ]
}

enhance.js

enhance.js 用于添加自己的组件库或引用第三方组件(库)。

// root/index => Project/src/index.js
import VC from 'root/index';
import ElementUI from 'element-ui';

import 'root/styles/index.less'
import 'element-ui/lib/theme-chalk/index.css';

export default (Vue) => {
  Vue.use(VC)
  Vue.use(ElementUI)
}

rootProject/src 目录

兼容性

ChromeFirefoxIEEdgeSafari
49+31+-16+9.1+

CSS Variables

FAQs

Package last updated on 18 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc