File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed
Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,18 @@ console.log(devcontainerCollection);
3737
3838if ( devcontainerCollection . features ) {
3939 const featureListMD = devcontainerCollection . features
40- . filter ( ( f ) => f . documentationURL )
41- . map ( ( f ) => `- **[${ f . name } ](${ f . documentationURL } )** - ${ f . description } ` )
40+ . map ( ( f ) => {
41+ let s
42+ if ( f . documentationURL ) {
43+ s = `- **[${ f . name || f . id } ](${ f . documentationURL } )**`
44+ } else {
45+ s = `- **${ f . name || f . id } **`
46+ }
47+ if ( f . description ) {
48+ s += ` - ${ f . description } `
49+ }
50+ return s
51+ } )
4252 . join ( "\n" ) ;
4353 console . log ( featureListMD ) ;
4454
@@ -50,8 +60,18 @@ if (devcontainerCollection.features) {
5060
5161if ( devcontainerCollection . templates ) {
5262 const templateListMD = devcontainerCollection . templates
53- . filter ( ( f ) => f . documentationURL )
54- . map ( ( f ) => `- **[${ f . name } ](${ f . documentationURL } )** - ${ f . description } ` )
63+ . map ( ( f ) => {
64+ let s
65+ if ( f . documentationURL ) {
66+ s = `- **[${ f . name || f . id } ](${ f . documentationURL } )**`
67+ } else {
68+ s = `- **${ f . name || f . id } **`
69+ }
70+ if ( f . description ) {
71+ s += ` - ${ f . description } `
72+ }
73+ return s
74+ } )
5575 . join ( "\n" ) ;
5676 console . log ( templateListMD ) ;
5777
You can’t perform that action at this time.
0 commit comments