1
0
mirror of synced 2026-01-23 12:02:29 -05:00
Files
docs/data/reusables
Sarah Edwards f5f7e03d60 [9 AM PST June 23, 2021] Issues vNext mega branch (#19969)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Lauren Brose <labrose@github.com>
Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Matt Butler <7584089+azenMatt@users.noreply.github.com>
2021-06-23 08:59:57 -07:00
..
2021-06-14 12:06:52 -07:00
2021-06-14 12:06:52 -07:00
2021-04-14 21:38:55 +00:00
2021-06-08 10:00:01 -05:00
2021-02-26 09:03:25 -05:00
2021-06-14 12:06:52 -07:00
2020-11-02 15:12:44 -06:00
2021-05-26 22:35:16 +01:00
2020-09-27 14:10:11 +02:00
2021-04-21 16:13:38 -04:00
2020-11-02 15:12:44 -06:00
2020-11-04 21:04:48 +01: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 %}.