|
1 | 1 | import { defineConfig } from 'vitepress'
|
| 2 | +import { shared } from './shared' |
2 | 3 | import { en } from './en'
|
3 |
| -import { zh, search as zhSearch } from './zh' |
| 4 | +import { zh } from './zh' |
4 | 5 |
|
5 | 6 | export default defineConfig({
|
6 |
| - title: 'VitePress', |
7 |
| - |
8 |
| - lastUpdated: true, |
9 |
| - cleanUrls: true, |
10 |
| - |
11 |
| - markdown: { |
12 |
| - math: true, |
13 |
| - codeTransformers: [ |
14 |
| - // We use `[!!code` in demo to prevent transformation, here we revert it back. |
15 |
| - { |
16 |
| - postprocess(code) { |
17 |
| - return code.replace(/\[\!\!code/g, '[!code') |
18 |
| - } |
19 |
| - } |
20 |
| - ] |
21 |
| - }, |
22 |
| - |
23 |
| - sitemap: { |
24 |
| - hostname: 'https://vitepress.dev', |
25 |
| - transformItems(items) { |
26 |
| - return items.filter((item) => !item.url.includes('migration')) |
27 |
| - } |
28 |
| - }, |
29 |
| - |
30 |
| - /* prettier-ignore */ |
31 |
| - head: [ |
32 |
| - ['link', { rel: 'icon', type: 'image/svg+xml', href: '/vitepress-logo-mini.svg' }], |
33 |
| - ['link', { rel: 'icon', type: 'image/png', href: '/vitepress-logo-mini.png' }], |
34 |
| - ['meta', { name: 'theme-color', content: '#5f67ee' }], |
35 |
| - ['meta', { name: 'og:type', content: 'website' }], |
36 |
| - ['meta', { name: 'og:locale', content: 'en' }], |
37 |
| - ['meta', { name: 'og:site_name', content: 'VitePress' }], |
38 |
| - ['meta', { name: 'og:image', content: 'https://vitepress.dev/vitepress-og.jpg' }], |
39 |
| - ['script', { src: 'https://cdn.usefathom.com/script.js', 'data-site': 'AZBRSFGG', 'data-spa': 'auto', defer: '' }] |
40 |
| - ], |
41 |
| - |
42 |
| - themeConfig: { |
43 |
| - logo: { src: '/vitepress-logo-mini.svg', width: 24, height: 24 }, |
44 |
| - |
45 |
| - socialLinks: [ |
46 |
| - { icon: 'github', link: 'https://github.com/vuejs/vitepress' } |
47 |
| - ], |
48 |
| - |
49 |
| - search: { |
50 |
| - provider: 'algolia', |
51 |
| - options: { |
52 |
| - appId: '8J64VVRP8K', |
53 |
| - apiKey: 'a18e2f4cc5665f6602c5631fd868adfd', |
54 |
| - indexName: 'vitepress', |
55 |
| - locales: { ...zhSearch } |
56 |
| - } |
57 |
| - }, |
58 |
| - |
59 |
| - carbonAds: { code: 'CEBDT27Y', placement: 'vuejsorg' } |
60 |
| - }, |
61 |
| - |
| 7 | + ...shared, |
62 | 8 | locales: {
|
63 | 9 | root: { label: 'English', ...en },
|
64 | 10 | zh: { label: '简体中文', ...zh }
|
|
0 commit comments