Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend cert scope tables to include parameters #210

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading