1
- import { version } from '../package.json'
1
+ import { resolve } from "node:path" ;
2
+ import { version } from '../../packages/vue-pdf/package.json' ;
3
+
2
4
3
5
export default {
4
6
vite : {
5
7
optimizeDeps : {
6
8
esbuildOptions : {
7
9
supported : {
8
- ' top-level-await' : true ,
10
+ " top-level-await" : true ,
9
11
} ,
10
12
} ,
11
13
} ,
12
14
build : {
13
- target : 'esnext' ,
15
+ target : 'esnext'
16
+ } ,
17
+ resolve : {
18
+ alias : {
19
+ "@tato30/vue-pdf" : resolve ( __dirname , "../../packages/vue-pdf/dist" )
20
+ } ,
14
21
} ,
15
22
} ,
16
- title : ' VuePDF' ,
17
- description : ' PDF component for Vue 3' ,
18
- base : ' /vue-pdf/' ,
23
+ title : " VuePDF" ,
24
+ description : " PDF component for Vue 3" ,
25
+ base : " /vue-pdf/" ,
19
26
lastUpdated : true ,
20
- head : [ [ ' link' , { rel : ' icon' , type : ' image/png' , href : ' /logo.png' } ] ] ,
27
+ head : [ [ " link" , { rel : " icon" , type : " image/png" , href : " /logo.png" } ] ] ,
21
28
themeConfig : {
22
- logo : ' /logo.png' ,
29
+ logo : " /logo.png" ,
23
30
editLink : {
24
- pattern : ' https://github.com/TaTo30/vue-pdf/edit/master/docs/:path' ,
31
+ pattern : " https://github.com/TaTo30/vue-pdf/edit/master/docs/:path" ,
25
32
} ,
26
33
socialLinks : [
27
34
{
28
- icon : ' github' ,
29
- link : ' https://github.com/TaTo30/vue-pdf' ,
35
+ icon : " github" ,
36
+ link : " https://github.com/TaTo30/vue-pdf" ,
30
37
} ,
31
38
] ,
32
39
search : {
33
- provider : ' local' ,
40
+ provider : " local" ,
34
41
} ,
35
42
nav : [
36
43
{
37
- text : ' Guide' ,
38
- link : ' /guide/introduction.md' ,
44
+ text : " Guide" ,
45
+ link : " /guide/introduction.md" ,
39
46
} ,
40
47
{
41
- text : ' Examples' ,
48
+ text : " Examples" ,
42
49
items : [
43
50
{
44
- text : ' Basic usages' ,
45
- link : ' /examples/basic/one_page.md' ,
51
+ text : " Basic usages" ,
52
+ link : " /examples/basic/one_page.md" ,
46
53
} ,
47
54
{
48
- text : ' Advanced usages' ,
49
- link : ' /examples/advanced/watermark.md' ,
55
+ text : " Advanced usages" ,
56
+ link : " /examples/advanced/watermark.md" ,
50
57
} ,
51
58
{
52
- text : ' Events' ,
53
- link : ' /examples/loaded_events/loaded.md' ,
59
+ text : " Events" ,
60
+ link : " /examples/loaded_events/loaded.md" ,
54
61
} ,
55
62
] ,
56
63
} ,
57
64
{
58
65
text : `v${ version } ` ,
59
66
items : [
60
67
{
61
- text : ' Changelog' ,
62
- link : ' https://github.com/TaTo30/vue-pdf/releases' ,
68
+ text : " Changelog" ,
69
+ link : " https://github.com/TaTo30/vue-pdf/releases" ,
63
70
} ,
64
71
{
65
- text : ' Contributing' ,
66
- link : ' https://github.com/TaTo30/vue-pdf#contributing' ,
72
+ text : " Contributing" ,
73
+ link : " https://github.com/TaTo30/vue-pdf#contributing" ,
67
74
} ,
68
75
] ,
69
76
} ,
70
77
] ,
71
78
sidebar : {
72
- ' /guide/' : {
73
- base : ' /guide/' ,
79
+ " /guide/" : {
80
+ base : " /guide/" ,
74
81
items : [
75
82
{
76
- text : ' Guide' ,
83
+ text : " Guide" ,
77
84
items : [
78
85
{
79
- text : ' Introduction' ,
80
- link : ' introduction' ,
86
+ text : " Introduction" ,
87
+ link : " introduction" ,
81
88
} ,
82
89
{
83
- text : ' Composables' ,
84
- link : ' composables' ,
90
+ text : " Composables" ,
91
+ link : " composables" ,
85
92
} ,
86
93
] ,
87
94
} ,
88
95
{
89
- text : ' Reference' ,
96
+ text : " Reference" ,
90
97
items : [
91
98
{
92
- text : ' Props' ,
93
- link : ' props' ,
99
+ text : " Props" ,
100
+ link : " props" ,
94
101
} ,
95
102
{
96
- text : ' Events' ,
97
- link : ' events' ,
103
+ text : " Events" ,
104
+ link : " events" ,
98
105
} ,
99
106
{
100
- text : ' Methods' ,
101
- link : ' methods' ,
107
+ text : " Methods" ,
108
+ link : " methods" ,
102
109
} ,
103
110
{
104
- text : ' Slots' ,
105
- link : ' slots' ,
111
+ text : " Slots" ,
112
+ link : " slots" ,
106
113
} ,
107
114
] ,
108
115
} ,
109
116
] ,
110
117
} ,
111
- ' /examples/' : {
118
+ " /examples/" : {
112
119
items : [
113
120
{
114
- text : ' Basic usages' ,
115
- base : ' /examples/basic/' ,
121
+ text : " Basic usages" ,
122
+ base : " /examples/basic/" ,
116
123
items : [
117
124
{
118
- text : ' One Page' ,
119
- link : ' one_page' ,
125
+ text : " One Page" ,
126
+ link : " one_page" ,
120
127
} ,
121
128
{
122
- text : ' All Pages' ,
123
- link : ' all_pages' ,
129
+ text : " All Pages" ,
130
+ link : " all_pages" ,
124
131
} ,
125
132
{
126
- text : ' Scale' ,
127
- link : ' scale' ,
133
+ text : " Scale" ,
134
+ link : " scale" ,
128
135
} ,
129
136
{
130
- text : ' Rotation' ,
131
- link : ' rotation' ,
137
+ text : " Rotation" ,
138
+ link : " rotation" ,
132
139
} ,
133
140
{
134
- text : ' Text Layer' ,
135
- link : ' text_layer' ,
141
+ text : " Text Layer" ,
142
+ link : " text_layer" ,
136
143
} ,
137
144
{
138
- text : ' Annotation Layer' ,
139
- link : ' annotation_layer' ,
145
+ text : " Annotation Layer" ,
146
+ link : " annotation_layer" ,
140
147
} ,
141
148
{
142
- text : ' XFA Layer' ,
143
- link : ' xfa_layer' ,
149
+ text : " XFA Layer" ,
150
+ link : " xfa_layer" ,
144
151
} ,
145
152
] ,
146
153
} ,
147
154
{
148
- text : ' Advanced usages' ,
149
- base : ' /examples/advanced/' ,
155
+ text : " Advanced usages" ,
156
+ base : " /examples/advanced/" ,
150
157
items : [
151
158
{
152
- text : ' Watermark' ,
153
- link : ' watermark' ,
159
+ text : " Watermark" ,
160
+ link : " watermark" ,
154
161
} ,
155
162
{
156
- text : ' Fit Parent' ,
157
- link : ' fit_parent' ,
163
+ text : " Fit Parent" ,
164
+ link : " fit_parent" ,
158
165
} ,
159
166
{
160
- text : ' Highlight Text' ,
161
- link : ' highlight_text' ,
167
+ text : " Highlight Text" ,
168
+ link : " highlight_text" ,
162
169
} ,
163
170
{
164
- text : ' Annotation Filter' ,
165
- link : ' annotation_filter' ,
171
+ text : " Annotation Filter" ,
172
+ link : " annotation_filter" ,
166
173
} ,
167
174
{
168
- text : ' Multiple PDF' ,
169
- link : ' multiple_pdf' ,
175
+ text : " Multiple PDF" ,
176
+ link : " multiple_pdf" ,
170
177
} ,
171
178
{
172
- text : ' Table of Content' ,
173
- link : ' toc' ,
179
+ text : " Table of Content" ,
180
+ link : " toc" ,
174
181
} ,
175
182
] ,
176
183
} ,
177
184
{
178
- text : ' Events' ,
179
- base : ' /examples/' ,
185
+ text : " Events" ,
186
+ base : " /examples/" ,
180
187
items : [
181
188
{
182
- text : ' Loaded Event' ,
183
- link : ' /loaded_events/loaded' ,
189
+ text : " Loaded Event" ,
190
+ link : " /loaded_events/loaded" ,
184
191
} ,
185
192
{
186
- text : ' Text Loaded Event' ,
187
- link : ' /loaded_events/text_loaded' ,
193
+ text : " Text Loaded Event" ,
194
+ link : " /loaded_events/text_loaded" ,
188
195
} ,
189
196
{
190
- text : ' Annotation Loaded Event' ,
191
- link : ' /loaded_events/annotation_loaded' ,
197
+ text : " Annotation Loaded Event" ,
198
+ link : " /loaded_events/annotation_loaded" ,
192
199
} ,
193
200
{
194
- text : ' XFA Loaded Event' ,
195
- link : ' /loaded_events/xfa_loaded' ,
201
+ text : " XFA Loaded Event" ,
202
+ link : " /loaded_events/xfa_loaded" ,
196
203
} ,
197
204
{
198
- text : ' Highlight Event' ,
199
- link : ' /text_events/text_highlight' ,
205
+ text : " Highlight Event" ,
206
+ link : " /text_events/text_highlight" ,
200
207
} ,
201
208
{
202
- text : ' Annotation Events' ,
203
- base : ' /examples/annotation_events/' ,
209
+ text : " Annotation Events" ,
210
+ base : " /examples/annotation_events/" ,
204
211
items : [
205
212
{
206
- text : ' Form fields' ,
207
- link : ' annotation_forms' ,
213
+ text : " Form fields" ,
214
+ link : " annotation_forms" ,
208
215
} ,
209
216
{
210
- text : ' Links' ,
211
- link : ' annotation_links' ,
217
+ text : " Links" ,
218
+ link : " annotation_links" ,
212
219
} ,
213
220
{
214
- text : ' Attachment' ,
215
- link : ' annotation_attachment' ,
221
+ text : " Attachment" ,
222
+ link : " annotation_attachment" ,
216
223
} ,
217
224
] ,
218
225
} ,
@@ -222,4 +229,4 @@ export default {
222
229
} ,
223
230
} ,
224
231
} ,
225
- }
232
+ } ;
0 commit comments