Docs: Convert Console Config to Table (#3109)

* update enterprise config doc

* add anchors to key names
This commit is contained in:
Alex Fornuto 2022-03-17 11:06:48 -05:00 committed by GitHub
parent b8cbb93425
commit bb7de0d227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 210 deletions

View file

@ -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 =