File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// apps/docs-27/astro.config.mjs
22import { defineConfig } from 'astro/config' ;
33import starlight from '@astrojs/starlight' ;
4+ import mermaid from 'astro-mermaid' ;
45
56export 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
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11// apps/docs-4x/astro.config.mjs
22import { defineConfig } from 'astro/config' ;
33import starlight from '@astrojs/starlight' ;
4+ import mermaid from 'astro-mermaid' ;
45
56export 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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments