text: module.exports = {
    locales: {
      '/': {
        lang: 'English',
        title: 'Nushell',
        description: 'A new type of shell.',
      },
      '/de/': {
        lang: 'Deutsch',
        title: 'Nushell',
        description: 'Eine neue Art von Shell.',
      },
      '/es/': {
        lang: 'es',
        title: 'Nushell',
        description: 'Un nuevo tipo de shell.',
      },
      '/ja/': {
        lang: 'ja',
        title: 'Nushell',
        description: '新しいタイプのシェル。.',
      },
      '/pt-BR/': {
        lang: 'pt-BR',
        title: 'Nushell',
        description: 'Um novo tipo de shell.',
      },
      '/zh-cn/': {
        lang: 'zh-cn',
        title: 'Nushell',
        description: '一种新型的外壳。.',
      },
    },
    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' },
      ],
      ['link', { rel: 'icon', href: '/icon.png' }],
    ],
    themeConfig: {
      repo: 'nushell/nushell',
      repoLabel: 'GitHub',
      editLinks: true,
      docsRepo: 'nushell/nushell.github.io',
      docsBranch: 'main',
      lastUpdated: false,
      algolia: {
        apiKey: 'dd6a8f770a42efaed5befa429d167232',
        indexName: 'nushell',
        appId: 'GHCTOYCW6T',
      },
      locales: {
        '/': {
          selectText: 'Languages',
          label: 'English',
          editLinkText: 'Edit this page on GitHub',
          nav: [
            { text: 'Book', link: '/book/' },
            // { text: "Contributor Book", link: "/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/book/': [
              {
                title: 'Getting Started',
                collapsable: false,
                children: [
                  '',
                  'installation',
                  'thinking_in_nushell',
                  'moving_around',
                ],
              },
              {
                title: 'Nu Fundamentals',
                collapsable: false,
                children: [
                  'types_of_data',
                  'loading_data',
                  'working_with_strings',
                  'working_with_lists',
                  'working_with_tables',
                  'pipeline',
                  'command_reference',
                ],
              },
              {
                title: 'Programming in Nu',
                collapsable: false,
                children: [
                  'custom_commands',
                  'aliases',
                  'operators',
                  'variables_and_subexpressions',
                  'scripts',
                  'modules',
                ],
              },
              {
                title: 'Nu as a shell',
                collapsable: false,
                children: [
                  'configuration',
                  'environment',
                  'stdout_stderr_exit_codes',
                  'escaping',
                  '3rdpartyprompts',
                  'shells_in_shells',
                  'line_editor',
                  'externs',
                  'custom_completions',
                  'coloring_and_theming',
                ],
              },
              {
                title: 'Coming to Nu',
                collapsable: false,
                children: [
                  'coming_from_bash',
                  'nushell_map',
                  'nushell_map_imperative',
                  'nushell_map_functional',
                  'nushell_operator_map',
                ],
              },
              {
                title: 'Advanced',
                collapsable: false,
                children: [
                  'dataframes',
                  'metadata',
                  'creating_errors',
                  'parallelism',
                  'plugins',
                ],
              },
            ],
            '/old_book/': [
              {
                title: 'Nu Book (0.44)',
                collapsable: false,
                children: [
                  '',
                  'installation',
                  'moving_around',
                  'types_of_data',
                  'loading_data',
                  'working_with_lists',
                  'working_with_tables',
                  'pipeline',
                  'configuration',
                  'custom_commands',
                  'aliases',
                  'operators',
                  'math',
                  'variables_and_subexpressions',
                  'environment',
                  'scripts',
                  'metadata',
                  'shells_in_shells',
                  'escaping',
                  'plugins',
                  'dataframes',
                  'coming_from_bash',
                  'nushell_map',
                  'nushell_map_imperative',
                  'nushell_map_functional',
                  'nushell_operator_map',
                  'command_reference',
                ],
              },
            ],
            // "/contributor-book/": [
            //   {
            //     title: "Contributor Book",
            //     collapsable: false,
            //     children: [
            //       "",
            //       "philosophy",
            //       "values",
            //       "commands",
            //       "streams",
            //       "metadata",
            //       "plugins",
            //       "shells",
            //     ],
            //   },
            // ],
            '/cookbook/': [
              {
                title: 'Cookbook',
                collapsable: false,
                children: [
                  '',
                  'setup',
                  'help',
                  'system',
                  'parsing',
                  'native_shell_programs',
                  'files',
                  'git',
                  'parsing_git_log',
                  'http',
                  'misc',
                ],
              },
            ],
          },
        },
        '/de/': {
          selectText: 'Sprachen',
          label: 'Deutsch',
          editLinkText: 'Diese Seite auf GitHub bearbeiten',
          nav: [
            { text: 'Buch', link: '/de/book/' },
            // { text: "Contributor Book", link: "/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/de/book/': [
              {
                title: 'Nu Handbuch (0.59+)',
                collapsable: false,
                children: [
                  '',
                  'installation',
                  'konfiguration',
                  '3rdpartyprompts',
                  'eigene_befehle',
                  'aliase',
                  'mathematik',
                  'variablen_und_unterausdruecke',
                  'escaping',
                  'plugins',
                  'von_bash_kommend',
                  'command_reference',
                ],
              },
            ],
          },
        },
        '/es/': {
          selectText: 'Idiomas',
          label: 'Español',
          editLinkText: 'Edita esta página en GitHub',
          nav: [
            { text: 'Libro', link: '/es/book/' },
            // { text: "Libro Colaborador", link: "/es/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/es/book/': [
              {
                title: 'Nu Libro',
                collapsable: false,
                children: [
                  '',
                  'instalacion',
                  'explorando',
                  'tipos_de_datos',
                  'cargando_datos', // "trabajando_con_listas"
                  'trabajando_con_tablas',
                  'pipeline',
                  'configuracion', // "custom_commands"
                  'aliases', // "operadores"
                  'matematicas', // "variables_y_subexpresiones"
                  'entorno', // "scripts"
                  'metadatos',
                  'shells_en_shells',
                  'escapando',
                  'plugins', // "dataframes"
                  'llegando_de_bash',
                  'mapa_nushell',
                  'mapa_imperativo_nushell',
                  'mapa_funcional_nushell',
                  'mapa_operador_nushell',
                  '/book/command_reference.md',
                ],
              },
            ],
            // "/es/contributor-book/": [
            //   {
            //     title: "Contributor Book",
            //     collapsable: false,
            //     children: [
            //       "introduccion",
            //       "filosofia",
            //       "valores",
            //       "comandos",
            //       "metadatos",
            //     ],
            //   },
            // ],
          },
        },
        '/ja/': {
          selectText: '言語',
          label: '日本語',
          editLinkText: 'GitHubでこのページを編集する',
          nav: [
            { text: '本', link: '/ja/book/' },
            // { text: "Contributor Book", link: "/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/ja/book/': [
              {
                title: 'Nu 本',
                collapsable: false,
                children: [
                  'installation',
                  'introduction',
                  'moving_around',
                  'types_of_data',
                  'loading_data',
                  'working_with_tables',
                  'pipeline',
                  'configuration',
                  'metadata',
                  'shells_in_shells',
                  'escaping',
                  'plugins',
                  '/book/command_reference.md',
                ],
              },
            ],
          },
        },
        '/pt-BR/': {
          selectText: 'Línguas',
          label: 'Português do Brasil',
          editLinkText: 'Edite esta página no GitHub',
          nav: [
            { text: 'Livro', link: '/pt-BR/book/' },
            // { text: "Livro de Contribuidor", link: "/pt-BR/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/pt-BR/book/': [
              {
                title: 'Nu Livro',
                collapsable: false,
                children: [
                  'instalacao',
                  'introducao',
                  'explorando',
                  'tipos_de_dados',
                  'carregando_dados',
                  'trabalhando_com_tabelas',
                  'pipeline',
                  'metadados',
                  'shells_em_shells',
                  'escapando',
                  'plugins',
                  '/book/command_reference.md',
                ],
              },
            ],
            // "/pt-BR/contributor-book/": [
            //   {
            //     title: "Contributor Book",
            //     collapsable: false,
            //     children: [
            //       "introdução",
            //       "filosofia",
            //       "valores",
            //       "comandos",
            //       "streams",
            //       "metadados",
            //       "plugins",
            //       "shells",
            //     ],
            //   },
            // ],
          },
        },
        '/zh-cn/': {
          selectText: '语言',
          label: '中文',
          editLinkText: '在GitHub上编辑此页面',
          nav: [
            { text: '书', link: '/zh-cn/book/' },
            // { text: "Contributor Book", link: "/contributor-book/" },
            { text: 'Cookbook', link: '/cookbook/' },
            { text: 'Blog', link: '/blog/' },
          ],
          sidebar: {
            '/zh-cn/book/': [
              {
                title: '入门篇',
                collapsable: false,
                children: [
                  '',
                  'installation',
                  'thinking_in_nushell',
                  'moving_around',
                ],
              },
              {
                title: 'Nu 基础篇',
                collapsable: false,
                children: [
                  'types_of_data',
                  'loading_data',
                  'working_with_strings',
                  'working_with_lists',
                  'working_with_tables',
                  'pipeline',
                  'command_reference',
                ],
              },
              {
                title: '待续',
                collapsable: false,
                children: [
                  'configuration',
                  'aliases',
                  'math',
                  'environment',
                  'metadata',
                ],
              },
            ],
          },
        },
      },
    },
    plugins: [
      '@vuepress/plugin-back-to-top',
      '@vuepress/plugin-medium-zoom',
      [
        'feed',
        {
          canonical_base: 'https://www.nushell.sh/',
          feed_options: {
            title: 'Nushell Blog',
            link: 'https://www.nushell.sh/blog',
            favicon: 'https://www.nushell.sh/icon.png',
          },
          posts_directories: ['/blog/'],
          sort: (entries) =>
            entries.sort((a, b) => new Date(b.date) - new Date(a.date)),
        },
      ],
    ],
  };
  