Optimize static props a bit.

This commit is contained in:
Brenden Matthews
2022-10-04 22:37:40 -05:00
committed by Brenden Matthews
parent 1051acbe88
commit ec8981c5da
5 changed files with 25 additions and 13 deletions

View File

@@ -40,6 +40,17 @@ function getDocumentation(source: string): Documentation {
return docs
}
export function filterDesc(docs: Documentation): Documentation {
return {
...docs,
desc: '',
values: docs.values.map((v) => ({
...v,
desc: '',
})),
}
}
export function getConfigSettings(): Documentation {
return getDocumentation('config_settings.yaml')
}