Optimize static props a bit.
This commit is contained in:

committed by
Brenden Matthews

parent
1051acbe88
commit
ec8981c5da
@@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user