1
0
mirror of synced 2026-01-10 00:03:04 -05:00
Files
docs/data/reusables
Amy Burns cdbf7415a1 Remove reference to codespaces trial (#21386)
* updating/removing reusables to remove reference to codespaces trial

* Adding additional links based on feedback:

* Adding link to pricing information

* adding info on spending limits to troubleshooting guide

* updating text as codespaces has no free entitlements
2021-09-16 18:25:10 +00:00
..
2021-09-16 13:23:01 +00:00
2021-08-19 18:18:00 +00:00
2021-08-19 18:18:00 +00:00
2021-08-19 18:18:00 +00:00
2020-09-27 14:10:11 +02:00
2021-04-21 16:13:38 -04:00
2021-09-10 13:48:54 +00:00
2021-08-19 18:18:00 +00:00
2021-08-19 18:18:00 +00:00
2021-09-08 21:59:17 +05:30
2021-07-21 14:03:36 -04:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00

Reusables

Reusables are long strings of reusable text.

Reusables are longer strings like paragraphs or procedural lists that can be referenced in multiple content files. Using Markdown (instead of YAML) makes it possible for our localization pipeline to split the strings into smaller translatable segments, leading to fewer translation errors and less churn when the source English content changes.

Each reusable lives in its own Markdown file.

The path and filename of each Markdown file determines what its path will be in the data object.

For example, a file named /data/reusables/foo/bar.md will be accessible as {% data reusables.foo.bar %} in pages.

Reusable files are divided generally into directories by task. For example, if you're creating a reusable string for articles about GitHub notifications, you'd add it in the directory data/reusables/notifications/ in a file named data/reusables/notifications/your-reusable-name.md. The content reference you'd add to the source would look like {% data reusables.notifications.your-reusable-name %}.