mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 03:41:23 +00:00
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
import { customElements } from './config/customElements'
|
|
import { markdown } from './config/markdown'
|
|
import { metaData } from './config/constants'
|
|
import { head } from './config/head'
|
|
import { themeConfig } from './config/theme'
|
|
|
|
export default defineConfig({
|
|
lang: metaData.lang, // i18n default english translation
|
|
title: metaData.title, // title from metadata config
|
|
description: metaData.description, // description from metadata config
|
|
markdown: markdown, // markdown config
|
|
lastUpdated: true, // whether enabling lastupdated or not
|
|
head, // documentation head tag options
|
|
themeConfig, // default exported theme config
|
|
cleanUrls: true, // clean urls configs to remove standard genreated page file type extensions
|
|
outDir: '../dist', // specify staic pages build output dir
|
|
// vue template options for preventing katex build crashes
|
|
vue: {
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: tag => customElements.includes(tag),
|
|
},
|
|
},
|
|
},
|
|
ignoreDeadLinks: true
|
|
})
|
|
|
|
customElements // custom element tags of markdown-it-katex in vitepress
|