Skip to content

Commit ab4cea7

Browse files
committed
chore: add mermaid and vitepress-plugin-mermaid to devDependencies
1 parent 0831fe1 commit ab4cea7

3 files changed

Lines changed: 1464 additions & 40 deletions

File tree

site/.vitepress/config.mts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'vitepress'
2+
import { withMermaid } from 'vitepress-plugin-mermaid'
23
import { readFileSync } from 'fs'
34
import { resolve, dirname } from 'path'
45
import { fileURLToPath } from 'url'
@@ -8,7 +9,7 @@ const cdsGrammar = JSON.parse(readFileSync(resolve(__dirname, '../cds.tmLanguage
89
// Shiki matches by name — grammar.name is "CDS" but fenced blocks use lowercase "cds"
910
cdsGrammar.name = 'cds'
1011

11-
export default defineConfig({
12+
export default withMermaid(defineConfig({
1213
title: 'SWAPI Docs',
1314
description: 'SAP Cloud Application Programming Model — Star Wars API sample',
1415
base: '/cloud-cap-hana-swapi/',
@@ -89,4 +90,4 @@ export default defineConfig({
8990

9091
search: { provider: 'local' },
9192
},
92-
})
93+
}))

0 commit comments

Comments
 (0)