Skip to content

Commit b0498c1

Browse files
authored
Merge pull request #10 from mambax7/master
Mermaid
2 parents 8e6fdfb + 0f6923b commit b0498c1

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

apps/docs-27/astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
// apps/docs-27/astro.config.mjs
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import mermaid from 'astro-mermaid';
45

56
export default defineConfig({
67
site: 'https://xoops.github.io',
78
base: '/xoops-docs/2.7',
89

910
integrations: [
11+
// mermaid MUST come before starlight
12+
mermaid({ autoTheme: true }),
13+
1014
starlight({
1115
title: 'XOOPS 2.7 Docs',
1216

apps/docs-27/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.38.4",
1414
"astro": "^6.1.9",
15+
"astro-mermaid": "^1.0.0",
16+
"mermaid": "^11.0.0",
1517
"sharp": "^0.34.5"
1618
}
1719
}

apps/docs-4x/astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
// apps/docs-4x/astro.config.mjs
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import mermaid from 'astro-mermaid';
45

56
export default defineConfig({
67
site: 'https://xoops.github.io',
78
base: '/xoops-docs/4.x',
89

910
integrations: [
11+
// mermaid MUST come before starlight
12+
mermaid({ autoTheme: true }),
13+
1014
starlight({
1115
title: 'XOOPS 4.x Docs',
1216

apps/docs-4x/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.38.4",
1414
"astro": "^6.1.9",
15+
"astro-mermaid": "^1.0.0",
16+
"mermaid": "^11.0.0",
1517
"sharp": "^0.34.5"
1618
}
1719
}

0 commit comments

Comments
 (0)