docs: update docs config

This commit is contained in:
pengzhanbo 2024-10-02 01:28:17 +08:00
parent e2421a0c92
commit ae20e24fe2

View File

@ -6,7 +6,11 @@ export const theme: Theme = plumeTheme({
hostname: process.env.SITE_HOST || 'https://plume.pengzhanbo.cn',
plugins: {
shiki: { twoslash: true, lineNumbers: 10 },
shiki: {
twoslash: true,
lineNumbers: 10,
languages: ['sh', 'ts', 'md', 'html', 'js', 'go', 'kotlin', 'rust', 'vue', 'css', 'json', 'scss', 'yaml', 'bash', 'c++', 'java', 'py', 'ruby', 'make', 'objc', 'swift', 'php', 'rs', 'sql', 'xml', 'zig', 'pug', 'http', 'less', 'styl', 'jsx', 'tsx', 'astro', 'svelte', 'wasm', 'vb', 'bat', 'cs', 'cpp', 'mermaid'],
},
markdownEnhance: {
demo: true,