@@ -16,21 +16,21 @@ const ALLOW_BETA_COMMANDS = process.env.ALLOW_BETA_COMMANDS;
1616const categoriesOrder = {
1717 completion : 30 ,
1818 authentication : 31 ,
19- 'operate on resources' : 32 ,
20- pipelines : 40 ,
21- 'pipelines v2 (beta)' : 42 ,
22- projects : 45 ,
19+ 'operate on resources' : 32 ,
20+ pipelines : 40 ,
21+ 'pipelines v2 (beta)' : 42 ,
22+ projects : 45 ,
2323 builds : 50 ,
24- contexts : 70 ,
25- images : 80 ,
26- triggers : 90 ,
27- environments : 100 ,
28- compositions : 110 ,
29- 'helm repos' : 111 ,
24+ contexts : 70 ,
25+ images : 80 ,
26+ triggers : 90 ,
27+ environments : 100 ,
28+ compositions : 110 ,
29+ 'helm repos' : 111 ,
3030 'predefined pipelines' : 120 ,
3131 'cli config' : 121 ,
3232 teams : 130 ,
33- more : 150 ,
33+ more : 150 ,
3434} ;
3535
3636
@@ -115,7 +115,7 @@ const getWeight = async (command) => {
115115 }
116116} ;
117117
118- const createCommandFile = async ( nestedCategory , command ) => {
118+ const createCommandFile = async ( nestedCategory , command ) => {
119119 const docs = command . prepareDocs ( ) ;
120120 const dir = path . resolve ( baseDir , `${ ( nestedCategory || 'undefined' ) . toLowerCase ( ) } ` ) ;
121121
@@ -216,7 +216,7 @@ const createCategoryFile = async (content, category) => {
216216 * updates the category main file with a specific command
217217 * possible extensions are: HEADER, COMMANDS
218218 */
219- const updateCategoryFileArray = async ( nestedCategory , command , existingContent ) => {
219+ const updateCategoryFileArray = async ( nestedCategory , command , existingContent ) => {
220220 const docs = command . prepareDocs ( ) ;
221221 const { category } = docs ;
222222 const finalCategoryArr = existingContent || { } ;
@@ -253,7 +253,7 @@ const updateCategoryFileArray = async (nestedCategory,command, existingContent)
253253 finalCategoryArr . category = category ;
254254 newCmd . weight = await getWeight ( command ) ;
255255 newCmd . content = commandString ;
256- if ( ! finalCategoryArr . commands ) {
256+ if ( ! finalCategoryArr . commands ) {
257257 finalCategoryArr . commands = [ ] ;
258258
259259 }
@@ -318,16 +318,16 @@ const createAutomatedDocs = async () => {
318318
319319 // document only in case category field exists and there are no sub commands under it
320320 const docs = command . prepareDocs ( ) ;
321- const { category} = docs ;
321+ const { category } = docs ;
322322 if ( ! category || await hasSubCommands ( command ) ) {
323323 continue ;
324324 }
325325
326326 nestedCategories [ category ] = await getNestedCategories ( command ) ;
327327 const nestedCategory = nestedCategories [ category ] ;
328- categories [ category ] = await updateCategoryFileArray ( nestedCategory , command , categories [ category ] ) ;
328+ categories [ category ] = await updateCategoryFileArray ( nestedCategory , command , categories [ category ] ) ;
329329 await upsertCategoryFolder ( nestedCategory ) ;
330- await createCommandFile ( nestedCategory , command ) ;
330+ await createCommandFile ( nestedCategory , command ) ;
331331 }
332332
333333 let categoriesFinalContent = { } ;
@@ -356,7 +356,7 @@ const createDownloadPage = async () => {
356356 links . push ( asset . browser_download_url ) ;
357357 } ) ) ;
358358 const commandFilePath = path . resolve ( baseDir , './installation/download.md' ) ;
359- const finalContent =
359+ const finalContent =
360360 '+++\n' +
361361 'title = "Download"\n' +
362362 'description = "asd"\n' +
@@ -372,6 +372,7 @@ const createDownloadPage = async () => {
372372 ' <li><a href=' + links [ 1 ] + ' target="_blank">Linux-x64</a></li>\n' +
373373 ' <li><a href=' + links [ 2 ] + ' target="_blank">Macos-x64</a></li>\n' +
374374 ' <li><a href=' + links [ 3 ] + ' target="_blank">Windows-x64</a></li>\n' +
375+ ' <li><a href=' + links [ 4 ] + ' target="_blank">Alpine-arm64</a></li>\n' +
375376 '</ul> \n' +
376377 '\n' +
377378 'After downloading the binary, untar or unzip it and your are good to go.<br>\n' +
0 commit comments