1
1
import { defineConfig } from 'vitepress'
2
+ import { withMermaid } from 'vitepress-plugin-mermaid'
2
3
3
- export default defineConfig ( {
4
+ export default withMermaid ( defineConfig ( {
4
5
title : 'Nuxt SmartScript' ,
5
6
description : 'Smart typography transformations for Nuxt' ,
6
7
@@ -17,6 +18,13 @@ export default defineConfig({
17
18
vite : {
18
19
resolve : {
19
20
preserveSymlinks : true ,
21
+ alias : {
22
+ // Fix for d3-array blur2 export issue
23
+ 'd3-array' : 'd3-array/dist/d3-array.min.js' ,
24
+ } ,
25
+ } ,
26
+ optimizeDeps : {
27
+ include : [ 'mermaid' ] ,
20
28
} ,
21
29
} ,
22
30
@@ -28,9 +36,26 @@ export default defineConfig({
28
36
text : 'Guide' ,
29
37
items : [
30
38
{ text : 'Getting Started' , link : '/guide/getting-started' } ,
39
+ { text : 'Deployment Modes' , link : '/guide/deployment-modes' } ,
31
40
{ text : 'Vue Integration' , link : '/vue-integration' } ,
32
41
{ text : 'Examples' , link : '/examples' } ,
33
- { text : 'Architecture' , link : '/architecture' } ,
42
+ ] ,
43
+ } ,
44
+ {
45
+ text : 'Architecture' ,
46
+ items : [
47
+ { text : 'Overview' , link : '/architecture' } ,
48
+ { text : 'System Architecture' , link : '/system-architecture' } ,
49
+ { text : 'Processing Pipeline' , link : '/processing-architecture' } ,
50
+ ] ,
51
+ } ,
52
+ {
53
+ text : 'Testing' ,
54
+ items : [
55
+ { text : 'Overview' , link : '/testing' } ,
56
+ { text : 'Unit Tests' , link : '/testing/unit-tests' } ,
57
+ { text : 'Integration Tests' , link : '/testing/integration-tests' } ,
58
+ { text : 'E2E Tests' , link : '/testing/e2e-tests' } ,
34
59
] ,
35
60
} ,
36
61
{
@@ -58,10 +83,32 @@ export default defineConfig({
58
83
collapsed : false ,
59
84
items : [
60
85
{ text : 'Getting Started' , link : '/guide/getting-started' } ,
86
+ { text : 'Deployment Modes' , link : '/guide/deployment-modes' } ,
61
87
{ text : 'Vue Integration' , link : '/vue-integration' } ,
62
88
{ text : 'Patterns & Examples' , link : '/examples' } ,
63
89
] ,
64
90
} ,
91
+ {
92
+ text : 'Architecture' ,
93
+ collapsed : false ,
94
+ items : [
95
+ { text : 'Overview' , link : '/architecture' } ,
96
+ { text : 'System Architecture' , link : '/system-architecture' } ,
97
+ { text : 'Processing Pipeline' , link : '/processing-architecture' } ,
98
+ ] ,
99
+ } ,
100
+ {
101
+ text : 'Testing' ,
102
+ collapsed : false ,
103
+ items : [
104
+ { text : 'Testing Overview' , link : '/testing' } ,
105
+ { text : 'Testing Guide' , link : '/testing/index' } ,
106
+ { text : 'Unit Tests' , link : '/testing/unit-tests' } ,
107
+ { text : 'Integration Tests' , link : '/testing/integration-tests' } ,
108
+ { text : 'E2E Tests' , link : '/testing/e2e-tests' } ,
109
+ { text : 'Writing Tests' , link : '/testing/writing-tests' } ,
110
+ ] ,
111
+ } ,
65
112
{
66
113
text : 'API Reference' ,
67
114
collapsed : false ,
@@ -75,16 +122,24 @@ export default defineConfig({
75
122
text : 'Advanced' ,
76
123
collapsed : true ,
77
124
items : [
78
- { text : 'Architecture' , link : '/architecture' } ,
79
125
{ text : 'Custom Patterns' , link : '/advanced/custom-patterns' } ,
80
126
{ text : 'Performance' , link : '/advanced/performance' } ,
127
+ { text : 'Pattern Design' , link : '/pattern-design' } ,
81
128
] ,
82
129
} ,
83
130
{
84
- text : 'Resources ' ,
131
+ text : 'Contributing ' ,
85
132
collapsed : true ,
86
133
items : [
87
134
{ text : 'Contributing Guide' , link : '/contributing' } ,
135
+ { text : 'Development Workflow' , link : '/contributing/development-workflow' } ,
136
+ { text : 'Release Process' , link : '/contributing/release-process' } ,
137
+ ] ,
138
+ } ,
139
+ {
140
+ text : 'Resources' ,
141
+ collapsed : true ,
142
+ items : [
88
143
{ text : 'Changelog' , link : 'https://github.com/mitre/nuxt-smartscript/blob/main/CHANGELOG.md' } ,
89
144
{ text : 'License' , link : 'https://github.com/mitre/nuxt-smartscript/blob/main/LICENSE' } ,
90
145
] ,
@@ -104,4 +159,17 @@ export default defineConfig({
104
159
provider : 'local' ,
105
160
} ,
106
161
} ,
107
- } )
162
+
163
+ // Mermaid configuration
164
+ mermaid : {
165
+ theme : 'default' ,
166
+ themeVariables : {
167
+ primaryColor : '#3eaf7c' ,
168
+ primaryTextColor : '#fff' ,
169
+ primaryBorderColor : '#2c8658' ,
170
+ lineColor : '#5c5c5c' ,
171
+ secondaryColor : '#4fc08d' ,
172
+ tertiaryColor : '#fff' ,
173
+ } ,
174
+ } ,
175
+ } ) )
0 commit comments