aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2021-04-19 11:19:33 +0300
committerGitHub <noreply@github.com>2021-04-19 11:19:33 +0300
commit32a214fe2a565e3c9a96a6ddc23cf9e497980a0c (patch)
tree59439307ee749a1d30be63ae23dbcfee9876ae95
parent8251997919d7aff68c2e4e11d3c21b42d60d6b73 (diff)
Fix #178 by @gabrielgunnarsson Validate YAML
-rw-r--r--static/admin/config.yml117
1 files changed, 59 insertions, 58 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 3de63dc..e611287 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -142,6 +142,65 @@ collections:
widget: 'string'
hint: 'Where is the site hosted? Hostname (and path) to the root. Prior to version 3, a slash was used which now works in local testing, but breaks certain features of cState like RSS feeds, so a correct example for production is: https://cstate.mnts.lt'
default: '/'
+
+ # REQUIRED BUT HIDDEN
+ - label: 'theme'
+ name: 'theme'
+ widget: 'hidden'
+ default: 'cstate'
+ - label: 'preserveTaxonomyNames'
+ name: 'preserveTaxonomyNames'
+ widget: 'hidden'
+ default: 'true'
+ - label: "taxonomies"
+ name: taxonomies
+ widget: "hidden"
+ fields:
+ - {label: "affected", name: "affected", widget: "hidden", default: "affected"}
+ - label: "Outputs (Do not touch!)"
+ name: outputs
+ widget: "hidden"
+ fields:
+ - label: "page"
+ name: page
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json']
+ - label: "section"
+ name: section
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json', 'rss']
+ - label: "home"
+ name: home
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json', 'rss', 'svg']
+ - label: "term"
+ name: term
+ widget: "list"
+ allow_add: false
+ default: ['html', 'json', 'rss']
+ - label: "Output formats (Do not touch!)"
+ name: outputFormats
+ widget: "hidden"
+ fields:
+ - label: "svg"
+ name: svg
+ fields:
+ - label: "isPlainText"
+ name: isPlainText
+ widget: "boolean"
+ default: true
+ - label: "mediaType"
+ name: mediaType
+ default: "image/svg+xml"
+ - label: 'Enable Git info'
+ name: 'enableGitInfo'
+ widget: 'hidden'
+ required: false
+ default: true
+
# PARAMS
- label: "Params"
name: "params"
@@ -309,61 +368,3 @@ collections:
name: 'enableCustomHTML'
widget: 'boolean'
default: 'false'
- # REQUIRED BUT HIDDEN
- - label: 'theme'
- name: 'theme'
- widget: 'hidden'
- default: 'cstate'
- - label: 'preserveTaxonomyNames'
- name: 'preserveTaxonomyNames'
- widget: 'hidden'
- default: 'true'
- - label: "taxonomies"
- name: taxonomies
- widget: "hidden"
- fields:
- - {label: "affected", name: "affected", widget: "hidden", default: "affected"}
- - label: "Outputs (Do not touch!)"
- name: outputs
- widget: "hidden"
- fields:
- - label: "page"
- name: page
- widget: "list"
- allow_add: false
- default: ['html', 'json']
- - label: "section"
- name: section
- widget: "list"
- allow_add: false
- default: ['html', 'json', 'rss']
- - label: "home"
- name: home
- widget: "list"
- allow_add: false
- default: ['html', 'json', 'rss', 'svg']
- - label: "term"
- name: term
- widget: "list"
- allow_add: false
- default: ['html', 'json', 'rss']
- - label: "Output formats (Do not touch!)"
- name: outputFormats
- widget: "hidden"
- fields:
- - label: "svg"
- name: svg
- fields:
- - label: "isPlainText"
- name: isPlainText
- widget: "boolean"
- default: true
- - label: "mediaType"
- name: mediaType
- default: "image/svg+xml"
- - label: 'Enable Git info'
- name: 'enableGitInfo'
- widget: 'hidden'
- hint: 'Docs: https://github.com/cstate/cstate/wiki/Customization#time'
- required: false
- default: true \ No newline at end of file