docs(readme): update instructions for schema validation
This commit is contained in:
parent
39d06c59b3
commit
fea08a344e
1 changed files with 6 additions and 13 deletions
19
README.md
19
README.md
|
@ -213,27 +213,20 @@ you've set up git versioning.
|
||||||
### Linting dartgun.toml
|
### Linting dartgun.toml
|
||||||
|
|
||||||
Optionally, you can set up linting for `dartgun.toml` to ensure that it is
|
Optionally, you can set up linting for `dartgun.toml` to ensure that it is
|
||||||
configured properly.
|
configured properly. A [JSON schema file](./dartgun.schema.json) is provided for
|
||||||
|
validating the structure of `dartgun.toml`.
|
||||||
|
|
||||||
A JSON schema file is provided for validating the structure of `dartgun.toml`.
|
The easiest way to use it is to add this line to the top of `dartgun.toml`.
|
||||||
Download it from [this link](./dartgun.schema.json).
|
|
||||||
|
|
||||||
Place the file in your dartgun directory, such that it looks like this:
|
`#:schema https://raw.githubusercontent.com/youwen5/dartgun/main/dartgun.schema.json`
|
||||||
|
|
||||||
```
|
Example:
|
||||||
.dartgun/
|
|
||||||
| machine.toml
|
|
||||||
| dartgun.toml
|
|
||||||
| dartgun.schema.json
|
|
||||||
```
|
|
||||||
|
|
||||||
At the top of your `dartgun.toml` file, add this line.
|
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# file: dartgun.toml
|
# file: dartgun.toml
|
||||||
# add the line below to the top of your file, like so
|
# add the line below to the top of your file, like so
|
||||||
|
|
||||||
#:schema ./dartgun.schema.json
|
#:schema https://raw.githubusercontent.com/youwen5/dartgun/main/dartgun.schema.json
|
||||||
|
|
||||||
[[dots]]
|
[[dots]]
|
||||||
location = "./nvim"
|
location = "./nvim"
|
||||||
|
|
Loading…
Reference in a new issue