text: const { description } = require('../../package')
  
  module.exports = {
    /**
     * Ref：https://v1.vuepress.vuejs.org/config/#title
     */
    title: 'Redis Operator',
    base: '/redis-operator/',
    /**
     * Ref：https://v1.vuepress.vuejs.org/config/#description
     */
    description: description,
  
    /**
     * Extra tags to be injected to the page HTML `<head>`
     *
     * ref：https://v1.vuepress.vuejs.org/config/#head
     */
    head: [
      ['meta', { name: 'theme-color', content: '#0065b3' }],
      ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
      ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
    ],
  
    /**
     * Theme configuration, here is the default theme configuration for VuePress.
     *
     * ref：https://v1.vuepress.vuejs.org/theme/default-theme-config.html
     */
    themeConfig: {
      repo: 'https://github.com/OT-CONTAINER-KIT/redis-operator',
      editLinks: false,
      docsDir: '',
      editLinkText: '',
      lastUpdated: false,
      nav: [
        {
          text: 'Guide',
          link: '/guide/',
        },
        {
          text: 'OpsTree',
          link: 'https://opstree.com'
        }
      ],
      sidebar: {
        '/guide/': [
          {
            title: 'GUIDE',
            collapsable: false,
            children: [
              '',
              'redis',
            ]
          },
          {
            title: 'GETTING STARTED',
            collapsable: false,
            children: [
              'installation.md',
              'setup.md',
              'failover.md',
              'exposing-redis.md',
            ]
          },
          {
            title: 'CONFIGURATION',
            collapsable: false,
            children: [
              'redis-config.md',
              'redis-cluster-config.md',
            ]
          },
          {
            title: 'MONITORING',
            collapsable: false,
            children: [
              'monitoring.md',
              'grafana.md',
            ]
          },
          {
            title: 'DEVELOPMENT',
            collapsable: false,
            children: [
              'development.md',
            ]
          },
          {
            title: 'RELEASE MANAGEMENT',
            collapsable: false,
            children: [
              'release.md',
            ]
          },
          {
            title: 'CHANGELOG',
            collapsable: false,
            children: [
              'changelog.md',
            ]
          }
        ],
      }
    },
  
    /**
     * Apply plugins，ref：https://v1.vuepress.vuejs.org/zh/plugin/
     */
    plugins: [
      '@vuepress/plugin-back-to-top',
      '@vuepress/plugin-medium-zoom',
    ]
  }
  