github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/docs/site/src/.vuepress/config.js (about)

     1  const { description } = require('../../package')
     2  
     3  enSideBar = {
     4    nav: [
     5      {
     6        text: 'docs',
     7        link: '/docs/getting-started/introduction',
     8      },
     9      {
    10        text: 'github',
    11        link: 'https://github.com/alibaba/sealer'
    12      }
    13    ],
    14    sidebar: {
    15      '/docs/': [
    16        {
    17          title: 'Getting Started',
    18          collapsable: true,
    19          children: [
    20            'getting-started/introduction',
    21            'getting-started/quick-start',
    22            'getting-started/run-cloudimage',
    23            'getting-started/using-clusterfile',
    24            'getting-started/build-cloudimage',
    25            'getting-started/build-appimage',
    26            'getting-started/config',
    27            'getting-started/plugin',
    28            'getting-started/applications',
    29          ]
    30        },
    31        {
    32          title: 'Advanced',
    33          collapsable: true,
    34          children: [
    35            'advanced/architecture',
    36            'advanced/arm-cloudimage',
    37            'advanced/containerd-baseimage',
    38            'advanced/define-cloudimage',
    39            'advanced/develop-plugin',
    40            'advanced/gpu-cloudimage',
    41            'advanced/raw-docker-baseimage',
    42            'advanced/registry-configuration',
    43            'advanced/save-charts-package',
    44            'advanced/takeover-existed-cluster',
    45            'advanced/use-kyverno-baseimage',
    46            'advanced/use-sealer-in-container',
    47          ]
    48        },
    49        {
    50          title: 'Reference',
    51          collapsable: true,
    52          children: [
    53            'reference/cli',
    54            'reference/cloudrootfs',
    55            'reference/clusterfile',
    56            'reference/kubefile',
    57          ]
    58        },
    59        {
    60          title: 'Contributing',
    61          collapsable: true,
    62          children: [
    63            'contributing/code-of-conduct',
    64            'contributing/contribute',
    65          ]
    66        },
    67        {
    68          title: 'Help',
    69          collapsable: true,
    70          children: [
    71            'help/contact',
    72            'help/faq',
    73          ]
    74        },
    75      ],
    76    },
    77  };
    78  
    79  zhSideBar = {
    80    selectText:'选择语言',
    81    nav: [
    82      {
    83        text: '文档',
    84        link: '/zh/getting-started/introduction',
    85      },
    86      {
    87        text: 'github',
    88        link: 'https://github.com/alibaba/sealer'
    89      }
    90    ],
    91    sidebar: {
    92      '/zh/': [
    93        {
    94          title: '快速开始',
    95          collapsable: true,
    96          children: [
    97            'getting-started/introduction',
    98            'getting-started/quick-start',
    99            'getting-started/using-clusterfile',
   100            'getting-started/use-cloudimage',
   101            'getting-started/build-cloudimage',
   102            'getting-started/build-appimage',
   103            'getting-started/config',
   104            'getting-started/plugin',
   105            'getting-started/applications',
   106          ]
   107        },
   108        {
   109          title: '高阶教程',
   110          collapsable: true,
   111          children: [
   112            'advanced/architecture',
   113            'advanced/arm-cloudimage',
   114            'advanced/containerd-baseimage',
   115            'advanced/define-cloudimage',
   116            'advanced/develop-plugin',
   117            'advanced/gpu-cloudimage',
   118            'advanced/raw-docker-baseimage',
   119            'advanced/registry-configuration',
   120            'advanced/save-charts-package',
   121            'advanced/use-kyverno-baseimage',
   122          ]
   123        },
   124        {
   125          title: 'CLI&API',
   126          collapsable: true,
   127          children: [
   128            'reference/cli',
   129            'reference/cloudrootfs',
   130            'reference/clusterfile',
   131            'reference/kubefile',
   132          ]
   133        },
   134        {
   135          title: '贡献',
   136          collapsable: true,
   137          children: [
   138            'contributing/code-of-conduct',
   139            'contributing/contribute',
   140          ]
   141        },
   142        {
   143          title: '帮助',
   144          collapsable: true,
   145          children: [
   146            'help/contact',
   147            'help/faq',
   148          ]
   149        },
   150      ],
   151    },
   152  };
   153  
   154  module.exports = {
   155    /**
   156     * Ref:https://v1.vuepress.vuejs.org/config/#title
   157     */
   158    title: 'sealer',
   159    /**
   160     * Ref:https://v1.vuepress.vuejs.org/config/#description
   161     */
   162    description: description,
   163  
   164    /**
   165     * Extra tags to be injected to the page HTML `<head>`
   166     *'
   167     * ref:https://v1.vuepress.vuejs.org/config/#head
   168     */
   169    head: [
   170      ['meta', { name: 'theme-color', content: '#3eaf7c' }],
   171      ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
   172      ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
   173      ['link', { rel: 'icon', href: 'https://user-images.githubusercontent.com/8912557/139633211-96844d27-55d7-44a9-9cdc-5aea96441613.png' }]
   174    ],
   175    locales: {
   176      '/': {
   177        lang: 'en-US',
   178        title: 'sealer',
   179        description: description,
   180      },
   181      '/zh/': {
   182          lang: '简体中文',
   183          title: 'sealer',
   184          description: 'sealer 官方文档',
   185      }
   186    },
   187  
   188    /**
   189     * Theme configuration, here is the default theme configuration for VuePress.
   190     *
   191     * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
   192     */
   193    themeConfig: {
   194      repo: '',
   195      logo: 'https://user-images.githubusercontent.com/8912557/139633211-96844d27-55d7-44a9-9cdc-5aea96441613.png',
   196      editLinks: false,
   197      docsDir: '',
   198      editLinkText: '',
   199      lastUpdated: false,
   200      locales: {
   201        '/zh/': zhSideBar,
   202        '/': enSideBar,
   203      }
   204    },
   205  
   206    /**
   207     * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
   208     */
   209    plugins: [
   210      '@vuepress/plugin-back-to-top',
   211      '@vuepress/plugin-medium-zoom',
   212    ]
   213  }