https://github.com/github/docs-internal/pull/22217 https://github.com/github/docs-internal/pull/22130 https://github.com/github/docs-internal/pull/22195 https://github.com/github/docs-internal/pull/22327 https://github.com/github/docs-internal/pull/22204 https://github.com/github/docs-internal/pull/21676 https://github.com/github/docs-internal/pull/22341 https://github.com/github/docs-internal/pull/22329 https://github.com/github/docs-internal/pull/21970 https://github.com/github/docs-internal/pull/22334 https://github.com/github/docs-internal/pull/22365 https://github.com/github/docs-internal/pull/21904
Variables
Variables are short strings of reusable text.
The YAML files in this directory each contain multiple variables.
The path, filename, and keys within each YAML file determine what its path will be in the data object.
For example, given a file data/variables/foo/bar.yml:
# multiple short strings in one file
meaning_of_life: 42
# and they can be nested if needed
nested:
values:
too: Yes!
Its values would be accessible as:
{% data foo.bar.meaning_of_life %}
{% data foo.bar.nested.values.too %}