mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
import { createRequire } from 'module'
|
|
import { defineConfig } from 'vitepress'
|
|
import locales from './locales'
|
|
|
|
export default defineConfig({
|
|
title: 'VitePress',
|
|
|
|
lastUpdated: true,
|
|
cleanUrls: true,
|
|
|
|
markdown: {
|
|
math: true
|
|
},
|
|
|
|
sitemap: {
|
|
hostname: 'https://vitepress.dev',
|
|
transformItems(items) {
|
|
return items.filter((item) => !item.url.includes('migration'))
|
|
}
|
|
},
|
|
|
|
head: [
|
|
['link', { rel: 'icon', href: '/vitepress-logo-mini.svg' }],
|
|
['meta', { name: 'theme-color', content: '#5f67ee' }],
|
|
['meta', { name: 'og:type', content: 'website' }],
|
|
['meta', { name: 'og:locale', content: 'en' }],
|
|
['meta', { name: 'og:site_name', content: 'VitePress' }],
|
|
[
|
|
'meta',
|
|
{ name: 'og:image', content: 'https://vitepress.dev/vitepress-og.jpg' }
|
|
],
|
|
[
|
|
'meta',
|
|
{
|
|
name: 'twitter:image',
|
|
content: 'https://vitepress.dev/vitepress-og.jpg'
|
|
}
|
|
],
|
|
[
|
|
'script',
|
|
{
|
|
src: 'https://cdn.usefathom.com/script.js',
|
|
'data-site': 'AZBRSFGG',
|
|
'data-spa': 'auto',
|
|
defer: ''
|
|
}
|
|
]
|
|
],
|
|
|
|
locales: locales.locales
|
|
})
|