// .vuepress/config.js module.exports = { title: "Spring 中文文档社区", base: "/spring/", head: [ [ 'link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `/images/icons/favicon.ico`, }, ], [ 'link', { rel: 'icon', type: 'image/png', sizes: '48x48', href: `/images/icons/icon-48x48.png`, }, ], [ 'link', { rel: 'icon', type: 'image/png', sizes: '72x72', href: `/images/icons/icon-72x72.png`, }, ], ['link', { rel: 'manifest', href: '/manifest.webmanifest' }], ['meta', { name: 'application-name', content: 'Spring 中文文档社区' }], ['meta', { name: 'apple-mobile-web-app-title', content: 'Spring 中文社区' }], [ 'meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }, ], [ 'link', { rel: 'apple-touch-icon', href: `/images/icons/icon_48x48.png` }, ], [ 'link', { rel: 'mask-icon', href: '/images/icons/favicon.ico', color: '#3eaf7c', }, ], ['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }], ['meta', { name: 'theme-color', content: '#3eaf7c' }], ], locales: { '/en/': { lang: 'en-US', title: 'Spring Docs', description: '' }, '/': { lang: 'zh-CN', title: '中文文档', description: '' } }, themeConfig: { repo: "https://gitcode.net/dev-cloud/spring", repoLabel: "GitCode", docsRepo: "https://gitcode.net/dev-cloud/spring", editLinks: true, editLinkText: "帮助我们改善此页面!", lastUpdated: "Last Updated", logo: '/images/icons/spring-logo.svg', sidebarDepth: 3, activeHeaderLinks: true, // nav: [{ // text: '语言', // ariaLabel: 'Language', // items: [ // { text: '中文文档', link: '/' }, // { text: '英文原文', link: '/en/' } // ] // }], locales: { '/en/': { // 多语言下拉菜单的标题 selectText: 'Language', // 该语言在下拉菜单中的标签 label: 'English', lastUpdated: 'Last Updated', lang: 'en-US', // 编辑链接文字 editLinkText: 'Edit this page on GitCode', algolia: {}, // nav: [ // { text: 'English', link: '/en/' } // ], sidebar: { "/": [ "", "/en/quickstart.md", "/en/initializr.md", "/en/installing.md", "/en/system-requirements.md", "/en/vscode_ide.md", "/en/why-spring.md" ] } }, '/': { selectText: '选择语言', label: '简体中文', ariaLabel: '语言', lang: 'zh-CN', editLinkText: '在 GitCode 上编辑此页', lastUpdated: '上次更新', algolia: {}, // nav: [ // { text: '中文文档', link: '/', ariaLabel: '中文文档' } // ], sidebar: { "/": [ "", "quickstart.md", "initializr.md", "installing.md", "system-requirements.md", "vscode_ide.md", "why-spring.md" ] } } } } }