docs/data/variables
Siara 7d64ed3a11
Migrate Actions Runner Controller docs (#35498)
Co-authored-by: jc-clark <jc-clark@github.com>
Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: amstead <am-stead@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Chris Patterson <chrispat@github.com>
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Co-authored-by: John Sudol <24583161+johnsudol@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@gmail.com>
2023-04-24 18:47:18 +00:00
..
README.md
actions.yml revised diagram, added variable for product name 2022-08-22 14:27:56 +10:00
code-scanning.yml Docs for code scanning tool status page (#35548) 2023-03-28 11:25:55 +00:00
codespaces.yml Add info on using github.dev behind a firewall (#33184) 2022-12-14 15:37:59 +00:00
command_line.yml Update styling for placeholder text 2022-11-18 16:02:31 -05:00
contact.yml Rename github-community to community 2022-07-27 17:36:23 -04:00
dependency-review.yml Move variable relating to Dependency Review outside the `product.yml` file (#33443) 2022-12-12 15:13:44 +00:00
desktop.yml Bump Desktop macOS requirement to 10.13 (#35465) 2023-03-21 18:48:07 +00:00
enterprise.yml GitHub Enterprise Server 3.7 release candidate (#31313) 2022-10-25 18:35:59 +02:00
explore.yml
gists.yml fixing closing bracket on gist home page variable 2021-12-03 12:37:45 -08:00
large_files.yml
location.yml Updating error message for OpenAPI Descriptions check (#31720) 2022-10-17 19:35:34 +00:00
migrations.yml [Megabranch] Add new top-level docset, "Migrations" (#35085) 2023-03-09 14:47:35 +00:00
notifications.yml
package_registry.yml Add maximum gem metadata size limit to GitHub Package RubyGems Registry documentation (#35797) 2023-03-24 08:34:42 +00:00
product.yml Migrate Actions Runner Controller docs (#35498) 2023-04-24 18:47:18 +00:00
projects.yml [DO NOT MERGE] GitHub Enterprise Server 3.8 release candidate (#34113) 2023-02-07 17:49:44 +00:00
release_candidate.yml GitHub Enterprise Server 3.8 general availability (#35310) 2023-03-07 20:31:13 +00:00
search.yml
secret-scanning.yml Multi-repo enablement (#36351) 2023-04-17 17:36:23 +00:00
visual_studio.yml [2022-10-31] Visual Studio — remove anything that isn't a product name (#32119) 2022-10-31 10:45:43 +00:00

README.md

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 %}