|
|
@ -5,6 +5,15 @@ import {
|
|
|
|
localIconLoader
|
|
|
|
localIconLoader
|
|
|
|
} from 'vitepress-plugin-group-icons'
|
|
|
|
} from 'vitepress-plugin-group-icons'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let buildConcurrency: number
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
const { cpus } = await import('os')
|
|
|
|
|
|
|
|
buildConcurrency = 4 * cpus().length
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
// edge services may not expose os module
|
|
|
|
|
|
|
|
buildConcurrency = 16
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
export default defineConfig({
|
|
|
|
title: 'VitePress',
|
|
|
|
title: 'VitePress',
|
|
|
|
|
|
|
|
|
|
|
@ -15,6 +24,7 @@ export default defineConfig({
|
|
|
|
lastUpdated: true,
|
|
|
|
lastUpdated: true,
|
|
|
|
cleanUrls: true,
|
|
|
|
cleanUrls: true,
|
|
|
|
metaChunk: true,
|
|
|
|
metaChunk: true,
|
|
|
|
|
|
|
|
buildConcurrency,
|
|
|
|
|
|
|
|
|
|
|
|
markdown: {
|
|
|
|
markdown: {
|
|
|
|
math: true,
|
|
|
|
math: true,
|
|
|
|