Skip to content

Commit

Permalink
Extend cert scope tables to include parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Büchse <[email protected]>
  • Loading branch information
mbuechse committed Jun 28, 2024
1 parent e531374 commit 2a1bf5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion populateCerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const sidebarItems = scopes.map((scope) => {
matrix[key].columns[version.version] = {
version: ver,
url,
parameters: standard.parameters,
}
})
})
Expand Down Expand Up @@ -101,7 +102,13 @@ Note that the state _Stable_ is shown here if _stabilized at_ is in the future,
// this version of the cert does not include this standard
return ''
}
return `[${col.version}](${col.url})`
let params = Object.entries(col.parameters || {}).map((entry) =>
entry[1].startsWith('https://') ? `[${entry[0]}](${entry[1]})` : `${entry[0]}=${entry[1]}`
).join(', ')
if (params.length) {
params = `(${params})`
}
return `[${col.version}](${col.url}) ${params}`
}).join(' | ') + ' |')
})
lines.push('') // file should end with a single newline character
Expand Down

0 comments on commit 2a1bf5d

Please sign in to comment.