Skip to content

Commit 41ed4e2

Browse files
authored
Attempt to fix #555 (#669)
1 parent 79f5088 commit 41ed4e2

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

docs/validation.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,20 @@ This returns code 0 (success) if validation is ok.
171171
All values in dynaconf are parsed using toml format, TOML tries to be smart
172172
and infer the type of the settings variables, some variables will be automatically
173173
converted to integer:
174-
174+
175+
```
175176
FOO = "0x..." # hexadecimal
176177
FOO = "0o..." # Octal
177178
FOO = "0b..." # Binary
179+
```
178180

179-
All cases are on toml specs https://github.com/toml-lang/toml/blob/master/toml.abnf
181+
All cases are on toml specs https://github.com/toml-lang/toml/blob/master/toml.abnf
180182

181-
If you need to force a specific type casting there are 2 options.
183+
If you need to force a specific type casting there are 2 options.
182184

183-
1. Use double quoted for strings ex: `FOO = "'0x...'" will be string.
184-
2. Specify the type using `@` ex: FOO = "@str 0x..."
185-
(available converters are `@int, @float, @bool, @json`)
185+
1. Use double quoted for strings ex: `FOO = "'0x...'" will be string.
186+
2. Specify the type using `@` ex: FOO = "@str 0x..."
187+
(available converters are `@int, @float, @bool, @json`)
186188

187189
## Selective Validation
188190

netlify.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
2-
# assuming the Zola site is in a docs folder, if it isn't you don't need
3-
# to have a `base` variable but you do need the `publish` and `command`
2+
# if commit is not tagged don't build
3+
ignore = "git describe --exact-match && exit 1 || exit 0"
44
publish = "site"
55
command = "mkdocs build --clean"
66

@@ -13,4 +13,5 @@ command = "mkdocs build --clean"
1313
# `$DEPLOY_PRIME_URL`.
1414

1515
[context.deploy-preview]
16+
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF"
1617
command = "mkdocs build --clean"

0 commit comments

Comments
 (0)