Skip to content

Commit

Permalink
Attempt to fix #555
Browse files Browse the repository at this point in the history
Build docs only on tagged releases
  • Loading branch information
rochacbruno committed Oct 8, 2021
1 parent 79f5088 commit b453f2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 8 additions & 6 deletions docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,20 @@ This returns code 0 (success) if validation is ok.
All values in dynaconf are parsed using toml format, TOML tries to be smart
and infer the type of the settings variables, some variables will be automatically
converted to integer:


```
FOO = "0x..." # hexadecimal
FOO = "0o..." # Octal
FOO = "0b..." # Binary
```

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

If you need to force a specific type casting there are 2 options.
If you need to force a specific type casting there are 2 options.

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

## Selective Validation

Expand Down
5 changes: 3 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
# assuming the Zola site is in a docs folder, if it isn't you don't need
# to have a `base` variable but you do need the `publish` and `command`
# if commit is not tagged don't build
ignore = "git describe --exact-match && exit 1 || exit 0"
publish = "site"
command = "mkdocs build --clean"

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

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

0 comments on commit b453f2b

Please sign in to comment.