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
  • 相关阅读:
    生成器
    装饰器
    类的特殊方法
    获取对象的信息之反射
    获取对象信息之内置函数dir()
    获取对象的信息之内置函数type()
    获取对象的信息之内置函数issubclass() 和 isinstance()
    生成可下载图片
    js数组常用方法
    sql存储过程基本语法
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/14287555.html
Copyright © 2011-2022 走看看