|
|
@ -4,12 +4,11 @@ import { defineConfig, type DefaultTheme } from 'vitepress'
|
|
|
|
const require = createRequire(import.meta.url)
|
|
|
|
const require = createRequire(import.meta.url)
|
|
|
|
const pkg = require('vitepress/package.json')
|
|
|
|
const pkg = require('vitepress/package.json')
|
|
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
export const en = defineConfig({
|
|
|
|
lang: 'en-US',
|
|
|
|
lang: 'en-US',
|
|
|
|
description: 'Vite & Vue powered static site generator.',
|
|
|
|
description: 'Vite & Vue powered static site generator.',
|
|
|
|
|
|
|
|
|
|
|
|
themeConfig: {
|
|
|
|
themeConfig: {
|
|
|
|
logo: { src: '/vitepress-logo-mini.svg', width: 24, height: 24 },
|
|
|
|
|
|
|
|
nav: nav(),
|
|
|
|
nav: nav(),
|
|
|
|
|
|
|
|
|
|
|
|
sidebar: {
|
|
|
|
sidebar: {
|
|
|
@ -22,27 +21,9 @@ export default defineConfig({
|
|
|
|
text: 'Edit this page on GitHub'
|
|
|
|
text: 'Edit this page on GitHub'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
socialLinks: [
|
|
|
|
|
|
|
|
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
footer: {
|
|
|
|
footer: {
|
|
|
|
message: 'Released under the MIT License.',
|
|
|
|
message: 'Released under the MIT License.',
|
|
|
|
copyright: 'Copyright © 2019-present Evan You'
|
|
|
|
copyright: 'Copyright © 2019-present Evan You'
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
search: {
|
|
|
|
|
|
|
|
provider: 'algolia',
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
appId: '8J64VVRP8K',
|
|
|
|
|
|
|
|
apiKey: 'a18e2f4cc5665f6602c5631fd868adfd',
|
|
|
|
|
|
|
|
indexName: 'vitepress'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
carbonAds: {
|
|
|
|
|
|
|
|
code: 'CEBDT27Y',
|
|
|
|
|
|
|
|
placement: 'vuejsorg'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -75,7 +56,6 @@ function nav(): DefaultTheme.NavItem[] {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* prettier-ignore */
|
|
|
|
|
|
|
|
function sidebarGuide(): DefaultTheme.SidebarItem[] {
|
|
|
|
function sidebarGuide(): DefaultTheme.SidebarItem[] {
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -104,7 +84,10 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
|
|
|
|
collapsed: false,
|
|
|
|
collapsed: false,
|
|
|
|
items: [
|
|
|
|
items: [
|
|
|
|
{ text: 'Using a Custom Theme', link: 'custom-theme' },
|
|
|
|
{ text: 'Using a Custom Theme', link: 'custom-theme' },
|
|
|
|
{ text: 'Extending the Default Theme', link: 'extending-default-theme' },
|
|
|
|
{
|
|
|
|
|
|
|
|
text: 'Extending the Default Theme',
|
|
|
|
|
|
|
|
link: 'extending-default-theme'
|
|
|
|
|
|
|
|
},
|
|
|
|
{ text: 'Build-Time Data Loading', link: 'data-loading' },
|
|
|
|
{ text: 'Build-Time Data Loading', link: 'data-loading' },
|
|
|
|
{ text: 'SSR Compatibility', link: 'ssr-compat' },
|
|
|
|
{ text: 'SSR Compatibility', link: 'ssr-compat' },
|
|
|
|
{ text: 'Connecting to a CMS', link: 'cms' }
|
|
|
|
{ text: 'Connecting to a CMS', link: 'cms' }
|