Hello
To validate configuration and theme we could use JSON schemas. It allows to:
- check validity
- create documentation
- IDE can offer code completion with it
I've begun there: main...slundi:nyaa:json-schemas (I've tried IA to generate them... I need to check them now)
How to use it
Using relative path:
#:schema ./foo-schema.json
# ^---- Using relative path
$schema = "https://raw.github.com/Beastwick18/nyaa/theme.schema.json"
# ^---- If we import it from an URL
foo = "bar"
Ressources
Hello
To validate configuration and theme we could use JSON schemas. It allows to:
I've begun there: main...slundi:nyaa:json-schemas (I've tried IA to generate them... I need to check them now)
How to use it
Using relative path:
Ressources