@@ -40,6 +40,156 @@ const packages = [
4040 url : 'https://raw.githubusercontent.com/tauri-apps/tao/dev/CHANGELOG.md' ,
4141 tag : 'https://github.com/tauri-apps/tao/releases/tag' ,
4242 } ,
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+ } ,
43193] ;
44194
45195const baseDir = '../../src/content/docs/release' ;
@@ -65,7 +215,7 @@ async function generator() {
65215 } )
66216 . filter ( ( { version } ) => ! version . includes ( 'Not Published' ) ) ;
67217
68- mkdirSync ( join ( baseDir , pkg . name ) , { recursive : true } ) ;
218+ mkdirSync ( join ( baseDir , pkg . group || '' , pkg . name ) , { recursive : true } ) ;
69219
70220 releases . sort ( ( a , b ) => {
71221 return semver . rcompare ( a . version , b . version ) ;
@@ -107,7 +257,7 @@ async function generator() {
107257 //
108258
109259 writeFileSync (
110- join ( baseDir , pkg . name , `v${ thisVersion } .mdx` ) ,
260+ join ( baseDir , pkg . group || '' , pkg . name , `v${ thisVersion } .mdx` ) ,
111261 `${ frontmatter } \n${ linksDiv } \n${ entitify ( releases [ i ] . notes ) } `
112262 ) ;
113263 }
@@ -129,7 +279,7 @@ async function generator() {
129279 '---' ,
130280 ] . join ( '\n' ) ;
131281
132- const links = [
282+ const mainLinks = [
133283 { title : 'tauri' , key : 'tauri' } ,
134284 { title : '@tauri-apps/api' , key : '@tauri-apps/api' } ,
135285 { title : 'tauri-cli (Rust)' , key : 'tauri-cli' } ,
@@ -139,6 +289,34 @@ async function generator() {
139289 { title : 'tao' , key : 'tao' } ,
140290 ] ;
141291
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+
142320 const generateLinkCards = ( links : any [ ] , latestVersions : { [ x : string ] : any } ) => {
143321 return links
144322 . map (
@@ -159,15 +337,17 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
159337
160338export const latestVersions = ${ JSON . stringify ( latestVersions ) } ;
161339
162- export const links = ${ JSON . stringify ( links ) } ;
340+ export const mainLinks = ${ JSON . stringify ( mainLinks ) } ;
341+ export const pluginLinks = ${ JSON . stringify ( pluginLinks ) } ;
163342
164- export const LinkCards = () => (
165343 <CardGrid>
166- ${ generateLinkCards ( links , latestVersions ) }
344+ ${ generateLinkCards ( mainLinks , latestVersions ) }
167345 </CardGrid>
168- );
169346
170- <LinkCards />
347+ ## Plugins
348+ <CardGrid>
349+ ${ generateLinkCards ( pluginLinks , latestVersions ) }
350+ </CardGrid>
171351` ;
172352
173353 writeFileSync ( join ( baseDir , 'index.mdx' ) , `${ indexPage } \n${ indexPageContent } ` ) ;
0 commit comments