zoukankan      html  css  js  c++  java
  • VuePress config All In One

    VuePress config All In One

    docs/.vuepress/config.js

    const {
      title,
      description,
    } = require('../../package')
    
    module.exports = {
      // https://v1.vuepress.vuejs.org/config/#title
      // title: " ",
      title,
      // title: title,
      // https://v1.vuepress.vuejs.org/config/#description
      description,
      // description: description,
      // https://v1.vuepress.vuejs.org/config/#head
      head: [
        ['meta', { name: 'theme-color', content: '#3eaf7c' }],
        ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
        ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
      ],
      // https://v1.vuepress.vuejs.org/theme/default-theme-config.html
      themeConfig: {
        repo: '',
        editLinks: false,
        docsDir: '',
        editLinkText: '',
        lastUpdated: false,
        nav: [
          {
            text: 'Guide',
            link: '/guide/',
          },
          // {
          //   text: 'Config',
          //   link: '/config/'
          // },
          // {
          //   text: 'VuePress',
          //   link: 'https://v1.vuepress.vuejs.org'
          // },
        ],
        sidebar: {
          '/guide/': [
            {
              title: 'Guide',
              collapsable: false,
              children: [
                '',
                'github',
              ],
            }
          ],
        }
      },
      // host: '0.0.0.0',
      // port: 8080,
      // temp: '/path/to/@vuepress/core/.temp',
      // dest: '.vuepress/dist',
      // locales: undefined,
      // https://v1.vuepress.vuejs.org/zh/guide/i18n.html
      // locales: { [path: string]: Object },
      // shouldPrefetch: () => true,
      // https://v1.vuepress.vuejs.org/zh/plugin/
      plugins: [
        '@vuepress/plugin-back-to-top',
        '@vuepress/plugin-medium-zoom',
      ]
    }
    
    
    

    i18n

    
    
    

    refs

    https://v1.vuepress.vuejs.org/zh/config/

    https://v1.vuepress.vuejs.org/zh/guide/i18n.html



    ©xgqfrms 2012-2020

    www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


    xgqfrms
  • 相关阅读:
    HDU 1594 find the max
    mongoose 数据库操作2
    我也来开发2048之终极奥义
    cocos2d-x 2.2.0 怎样在lua中注冊回调函数给C++
    windows常用运行命令
    机器学习——Pandas库
    搭建靶场环境
    Ubuntu快速安装MSF
    docker 基本使用
    linux下杀死进程
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/14287555.html
Copyright © 2011-2022 走看看