1. vue-docs
vue docs
vue-docs
Package: vue-docs
Created by: vue-tools
Last modified: Tue, 28 Jun 2022 19:21:28 GMT
Version: 1.5.6
License: MIT
Downloads: 188
Repository: https://github.com/vue-tools/vue-docs

Install

npm install vue-docs
yarn add vue-docs

vue-docs

让你的文档轻松成为一个 VUE SPA, 面向vue编程 ^_^

Install

 // global
npm i vue-docs -g --registry=https://registry.npm.taobao.org

// or
npm i -g --registry=https://registry.npm.taobao.org

Config

默认可没有 docs.config.js, 若需要配置,按照下列操作

  • 在根目录创建 docs.config.js
  • 写入下列内容 docs.config.js
var path = require('path')
var webpack = require('webpack')
module.exports = {
    port: 9999,
    // your webpack config
    webpack: {
        resolve: {
            alias: {
                'vt-tabs': path.resolve(__dirname, 'src')
            }
        }
    },
    md: { dir: './' },
    vue: { dir: './docs' }
}

Start

// global
vue-docs start

// project
./node_modules/.bin/vue-docs start

Build Doc

// global
vue-docs build

// project
./node_modules/.bin/vue-docs build

Deploy

docs目录下的内容发布到 你的服务器即可访问, 发布到 github pages 可参考vt-tabs

ChanageLog

  • 增加 editorconfig, eslint编码规范
  • 增加 enableSw参数, 控制是否支持 serviceWorker

备注

请保证在使用vue-docs的时候, 项目中的 vue-loadervue-docs中的vue-loader major版本一致.

Reference

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code