@@ -16,21 +16,21 @@ const ALLOW_BETA_COMMANDS = process.env.ALLOW_BETA_COMMANDS;
16
16
const categoriesOrder = {
17
17
completion : 30 ,
18
18
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 ,
23
23
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 ,
30
30
'predefined pipelines' : 120 ,
31
31
'cli config' : 121 ,
32
32
teams : 130 ,
33
- more : 150 ,
33
+ more : 150 ,
34
34
} ;
35
35
36
36
@@ -115,7 +115,7 @@ const getWeight = async (command) => {
115
115
}
116
116
} ;
117
117
118
- const createCommandFile = async ( nestedCategory , command ) => {
118
+ const createCommandFile = async ( nestedCategory , command ) => {
119
119
const docs = command . prepareDocs ( ) ;
120
120
const dir = path . resolve ( baseDir , `${ ( nestedCategory || 'undefined' ) . toLowerCase ( ) } ` ) ;
121
121
@@ -216,7 +216,7 @@ const createCategoryFile = async (content, category) => {
216
216
* updates the category main file with a specific command
217
217
* possible extensions are: HEADER, COMMANDS
218
218
*/
219
- const updateCategoryFileArray = async ( nestedCategory , command , existingContent ) => {
219
+ const updateCategoryFileArray = async ( nestedCategory , command , existingContent ) => {
220
220
const docs = command . prepareDocs ( ) ;
221
221
const { category } = docs ;
222
222
const finalCategoryArr = existingContent || { } ;
@@ -253,7 +253,7 @@ const updateCategoryFileArray = async (nestedCategory,command, existingContent)
253
253
finalCategoryArr . category = category ;
254
254
newCmd . weight = await getWeight ( command ) ;
255
255
newCmd . content = commandString ;
256
- if ( ! finalCategoryArr . commands ) {
256
+ if ( ! finalCategoryArr . commands ) {
257
257
finalCategoryArr . commands = [ ] ;
258
258
259
259
}
@@ -318,16 +318,16 @@ const createAutomatedDocs = async () => {
318
318
319
319
// document only in case category field exists and there are no sub commands under it
320
320
const docs = command . prepareDocs ( ) ;
321
- const { category} = docs ;
321
+ const { category } = docs ;
322
322
if ( ! category || await hasSubCommands ( command ) ) {
323
323
continue ;
324
324
}
325
325
326
326
nestedCategories [ category ] = await getNestedCategories ( command ) ;
327
327
const nestedCategory = nestedCategories [ category ] ;
328
- categories [ category ] = await updateCategoryFileArray ( nestedCategory , command , categories [ category ] ) ;
328
+ categories [ category ] = await updateCategoryFileArray ( nestedCategory , command , categories [ category ] ) ;
329
329
await upsertCategoryFolder ( nestedCategory ) ;
330
- await createCommandFile ( nestedCategory , command ) ;
330
+ await createCommandFile ( nestedCategory , command ) ;
331
331
}
332
332
333
333
let categoriesFinalContent = { } ;
@@ -356,7 +356,7 @@ const createDownloadPage = async () => {
356
356
links . push ( asset . browser_download_url ) ;
357
357
} ) ) ;
358
358
const commandFilePath = path . resolve ( baseDir , './installation/download.md' ) ;
359
- const finalContent =
359
+ const finalContent =
360
360
'+++\n' +
361
361
'title = "Download"\n' +
362
362
'description = "asd"\n' +
@@ -372,6 +372,7 @@ const createDownloadPage = async () => {
372
372
' <li><a href=' + links [ 1 ] + ' target="_blank">Linux-x64</a></li>\n' +
373
373
' <li><a href=' + links [ 2 ] + ' target="_blank">Macos-x64</a></li>\n' +
374
374
' <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' +
375
376
'</ul> \n' +
376
377
'\n' +
377
378
'After downloading the binary, untar or unzip it and your are good to go.<br>\n' +
0 commit comments