@@ -4,8 +4,8 @@ const path = require('path');
4
4
5
5
const repository = 'h1cr.io/website' ;
6
6
const indexFile = 'README.md' ;
7
- const markerStart = ` <!-- toc-start -->\n` ;
8
- const markerEnd = ` <!-- toc-end -->\n` ;
7
+ const markerStart = ' <!-- toc-start -->\n' ;
8
+ const markerEnd = ' <!-- toc-end -->\n' ;
9
9
10
10
const listImage = async ( ) => {
11
11
const images = [ ] ;
@@ -19,16 +19,16 @@ const listImage = async () => {
19
19
const tags = Object . keys ( config ) ;
20
20
const packages = Object . values ( config ) . map ( x => x . packages ) . flat ( ) . filter ( x => ! ! x ) ;
21
21
22
- images . push ( { name, tags, packages } )
22
+ images . push ( { name, tags, packages } ) ;
23
23
}
24
24
return images ;
25
25
} ;
26
26
27
- const quote = ( v ) => '```' + v + '```' ;
27
+ const quote = ( v ) => [ '```' , v , '```' ] . join ( '' ) ;
28
28
29
29
const generateToc = ( images ) => {
30
30
const line = [ ] ;
31
- line . push ( '| Image | Tag | Repology latest |' )
31
+ line . push ( '| Image | Tag | Repology latest |' ) ;
32
32
line . push ( '|------ | --- | --------------- |' ) ;
33
33
for ( const image of images ) {
34
34
const row = [
@@ -38,7 +38,7 @@ const generateToc = (images) => {
38
38
] ;
39
39
line . push ( `| ${ row . join ( ' | ' ) } |` ) ;
40
40
} ;
41
- return line . join ( "\n" ) + "\n" ;
41
+ return ` ${ line . join ( '\n' ) } \n` ;
42
42
} ;
43
43
44
44
const updateIndex = async ( index ) => {
0 commit comments