@@ -40,6 +40,156 @@ const packages = [
40
40
url : 'https://raw.githubusercontent.com/tauri-apps/tao/dev/CHANGELOG.md' ,
41
41
tag : 'https://github.com/tauri-apps/tao/releases/tag' ,
42
42
} ,
43
+ {
44
+ name : 'autostart' ,
45
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/autostart/CHANGELOG.md' ,
46
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
47
+ group : 'plugins-workspace' ,
48
+ } ,
49
+ {
50
+ name : 'barcode-scanner' ,
51
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/barcode-scanner/CHANGELOG.md' ,
52
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
53
+ group : 'plugins-workspace' ,
54
+ } ,
55
+ {
56
+ name : 'biometric' ,
57
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/biometric/CHANGELOG.md' ,
58
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
59
+ group : 'plugins-workspace' ,
60
+ } ,
61
+ {
62
+ name : 'cli' ,
63
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/cli/CHANGELOG.md' ,
64
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
65
+ group : 'plugins-workspace' ,
66
+ } ,
67
+ {
68
+ name : 'clipboard-manager' ,
69
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/clipboard-manager/CHANGELOG.md' ,
70
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
71
+ group : 'plugins-workspace' ,
72
+ } ,
73
+ {
74
+ name : 'deep-link' ,
75
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/deep-link/CHANGELOG.md' ,
76
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
77
+ group : 'plugins-workspace' ,
78
+ } ,
79
+ {
80
+ name : 'dialog' ,
81
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/dialog/CHANGELOG.md' ,
82
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
83
+ group : 'plugins-workspace' ,
84
+ } ,
85
+ {
86
+ name : 'fs' ,
87
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/fs/CHANGELOG.md' ,
88
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
89
+ group : 'plugins-workspace' ,
90
+ } ,
91
+ {
92
+ name : 'global-shortcut' ,
93
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/global-shortcut/CHANGELOG.md' ,
94
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
95
+ group : 'plugins-workspace' ,
96
+ } ,
97
+ {
98
+ name : 'http' ,
99
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/http/CHANGELOG.md' ,
100
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
101
+ group : 'plugins-workspace' ,
102
+ } ,
103
+ {
104
+ name : 'log' ,
105
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/log/CHANGELOG.md' ,
106
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
107
+ group : 'plugins-workspace' ,
108
+ } ,
109
+ {
110
+ name : 'nfc' ,
111
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/nfc/CHANGELOG.md' ,
112
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
113
+ group : 'plugins-workspace' ,
114
+ } ,
115
+ {
116
+ name : 'notification' ,
117
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/notification/CHANGELOG.md' ,
118
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
119
+ group : 'plugins-workspace' ,
120
+ } ,
121
+ {
122
+ name : 'opener' ,
123
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/opener/CHANGELOG.md' ,
124
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
125
+ group : 'plugins-workspace' ,
126
+ } ,
127
+ {
128
+ name : 'os' ,
129
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/os/CHANGELOG.md' ,
130
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
131
+ group : 'plugins-workspace' ,
132
+ } ,
133
+ {
134
+ name : 'positioner' ,
135
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/positioner/CHANGELOG.md' ,
136
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
137
+ group : 'plugins-workspace' ,
138
+ } ,
139
+ {
140
+ name : 'process' ,
141
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/process/CHANGELOG.md' ,
142
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
143
+ group : 'plugins-workspace' ,
144
+ } ,
145
+ {
146
+ name : 'shell' ,
147
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/shell/CHANGELOG.md' ,
148
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
149
+ group : 'plugins-workspace' ,
150
+ } ,
151
+ {
152
+ name : 'sql' ,
153
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/sql/CHANGELOG.md' ,
154
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
155
+ group : 'plugins-workspace' ,
156
+ } ,
157
+ {
158
+ name : 'store' ,
159
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/store/CHANGELOG.md' ,
160
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
161
+ group : 'plugins-workspace' ,
162
+ } ,
163
+ {
164
+ name : 'stronghold' ,
165
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/stronghold/CHANGELOG.md' ,
166
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
167
+ group : 'plugins-workspace' ,
168
+ } ,
169
+ {
170
+ name : 'updater' ,
171
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/updater/CHANGELOG.md' ,
172
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
173
+ group : 'plugins-workspace' ,
174
+ } ,
175
+ {
176
+ name : 'upload' ,
177
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/upload/CHANGELOG.md' ,
178
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
179
+ group : 'plugins-workspace' ,
180
+ } ,
181
+ {
182
+ name : 'websocket' ,
183
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/websocket/CHANGELOG.md' ,
184
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
185
+ group : 'plugins-workspace' ,
186
+ } ,
187
+ {
188
+ name : 'window-state' ,
189
+ url : 'https://raw.githubusercontent.com/tauri-apps/plugins-workspace/v2/plugins/window-state/CHANGELOG.md' ,
190
+ tag : 'https://github.com/tauri-apps/plugins-workspace/releases/tag' ,
191
+ group : 'plugins-workspace' ,
192
+ } ,
43
193
] ;
44
194
45
195
const baseDir = '../../src/content/docs/release' ;
@@ -65,7 +215,7 @@ async function generator() {
65
215
} )
66
216
. filter ( ( { version } ) => ! version . includes ( 'Not Published' ) ) ;
67
217
68
- mkdirSync ( join ( baseDir , pkg . name ) , { recursive : true } ) ;
218
+ mkdirSync ( join ( baseDir , pkg . group || '' , pkg . name ) , { recursive : true } ) ;
69
219
70
220
releases . sort ( ( a , b ) => {
71
221
return semver . rcompare ( a . version , b . version ) ;
@@ -107,7 +257,7 @@ async function generator() {
107
257
//
108
258
109
259
writeFileSync (
110
- join ( baseDir , pkg . name , `v${ thisVersion } .mdx` ) ,
260
+ join ( baseDir , pkg . group || '' , pkg . name , `v${ thisVersion } .mdx` ) ,
111
261
`${ frontmatter } \n${ linksDiv } \n${ entitify ( releases [ i ] . notes ) } `
112
262
) ;
113
263
}
@@ -129,7 +279,7 @@ async function generator() {
129
279
'---' ,
130
280
] . join ( '\n' ) ;
131
281
132
- const links = [
282
+ const mainLinks = [
133
283
{ title : 'tauri' , key : 'tauri' } ,
134
284
{ title : '@tauri-apps/api' , key : '@tauri-apps/api' } ,
135
285
{ title : 'tauri-cli (Rust)' , key : 'tauri-cli' } ,
@@ -139,6 +289,34 @@ async function generator() {
139
289
{ title : 'tao' , key : 'tao' } ,
140
290
] ;
141
291
292
+ const pluginLinks = [
293
+ { title : 'autostart' , key : 'autostart' } ,
294
+ { title : 'barcode-scanner' , key : 'barcode-scanner' } ,
295
+ { title : 'biometric' , key : 'biometric' } ,
296
+ { title : 'cli' , key : 'cli' } ,
297
+ { title : 'clipboard-manager' , key : 'clipboard-manager' } ,
298
+ { title : 'deep-link' , key : 'deep-link' } ,
299
+ { title : 'dialog' , key : 'dialog' } ,
300
+ { title : 'fs' , key : 'fs' } ,
301
+ { title : 'global-shortcut' , key : 'global-shortcut' } ,
302
+ { title : 'http' , key : 'http' } ,
303
+ { title : 'log' , key : 'log' } ,
304
+ { title : 'nfc' , key : 'nfc' } ,
305
+ { title : 'notification' , key : 'notification' } ,
306
+ { title : 'opener' , key : 'opener' } ,
307
+ { title : 'os' , key : 'os' } ,
308
+ { title : 'positioner' , key : 'positioner' } ,
309
+ { title : 'process' , key : 'process' } ,
310
+ { title : 'shell' , key : 'shell' } ,
311
+ { title : 'sql' , key : 'sql' } ,
312
+ { title : 'store' , key : 'store' } ,
313
+ { title : 'stronghold' , key : 'stronghold' } ,
314
+ { title : 'updater' , key : 'updater' } ,
315
+ { title : 'upload' , key : 'upload' } ,
316
+ { title : 'websocket' , key : 'websocket' } ,
317
+ { title : 'window-state' , key : 'window-state' } ,
318
+ ] ;
319
+
142
320
const generateLinkCards = ( links : any [ ] , latestVersions : { [ x : string ] : any } ) => {
143
321
return links
144
322
. map (
@@ -159,15 +337,17 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
159
337
160
338
export const latestVersions = ${ JSON . stringify ( latestVersions ) } ;
161
339
162
- export const links = ${ JSON . stringify ( links ) } ;
340
+ export const mainLinks = ${ JSON . stringify ( mainLinks ) } ;
341
+ export const pluginLinks = ${ JSON . stringify ( pluginLinks ) } ;
163
342
164
- export const LinkCards = () => (
165
343
<CardGrid>
166
- ${ generateLinkCards ( links , latestVersions ) }
344
+ ${ generateLinkCards ( mainLinks , latestVersions ) }
167
345
</CardGrid>
168
- );
169
346
170
- <LinkCards />
347
+ ## Plugins
348
+ <CardGrid>
349
+ ${ generateLinkCards ( pluginLinks , latestVersions ) }
350
+ </CardGrid>
171
351
` ;
172
352
173
353
writeFileSync ( join ( baseDir , 'index.mdx' ) , `${ indexPage } \n${ indexPageContent } ` ) ;
0 commit comments