mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 09:07:44 +02:00
Docs: Convert Console Config to Table (#3109)
* update enterprise config doc * add anchors to key names
This commit is contained in:
parent
b8cbb93425
commit
bb7de0d227
4 changed files with 70 additions and 210 deletions
|
@ -69,15 +69,14 @@ meta:
|
|||
|
||||
The keys listed below can be applied in Pomerium Console's \`config.yaml\` file, or applied as environment variables (in uppercase, replacing \`-\` with \`_\`).
|
||||
|
||||
| Name | Description | Default Value |
|
||||
|:--------|:-------------|---------------|
|
||||
`;
|
||||
const keySection = (obj) => {
|
||||
//console.log(JSON.stringify(obj.name)) // For Debugging
|
||||
let header = `## ` + obj.name + "\n\n";
|
||||
let body = `${obj.usage}
|
||||
|
||||
**Default value:** \`${obj.default_value ? obj.default_value : `none`}\`
|
||||
`;
|
||||
return header + body;
|
||||
let name = `| <a class="entRef-anchor" id="${obj.name}">#</a><a href=#${obj.name}>` + obj.name + `</a> |`;
|
||||
let body = ` ${(obj.usage).replace(/\n/g, '')} | ${obj.default_value ? `\`${obj.default_value.replace(/\n/g, '')}\`` : `none`} |`;
|
||||
return name + body;
|
||||
};
|
||||
|
||||
let content =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue