1
0
mirror of synced 2026-01-06 06:02:35 -05:00
Files
docs/data/reusables
Erin Havens 6b03deadfc Update assessing-risk-dependabot-alerts.md
This section is a great idea!
I've rewritten it to emphasize a couple things: I really want to make sure we promote best security practices here, like keeping your dependencies up to date.  I've adjusted this section to call out Dependabot updates, and also to emphasize more how developers can interact with Dependabot's vulnerable calls feature in order to assess risk and determine next steps.
2022-04-13 12:24:21 -07:00
..
2022-03-03 13:08:24 -06:00
2021-10-15 15:41:33 -05:00
2022-03-03 13:08:24 -06:00
2021-10-15 15:41:33 -05:00
Add 💅
2021-11-10 12:09:45 -06:00
2022-02-15 09:41:28 +01:00
2021-10-15 15:41:33 -05:00
2022-03-03 13:08:24 -06:00
2021-10-15 15:41:33 -05:00
2021-10-15 15:41:33 -05:00
2020-09-27 14:10:11 +02:00
2021-10-15 15:41:33 -05:00
2022-03-03 13:08:24 -06:00
2022-03-03 13:08:24 -06:00
2022-03-03 13:08:24 -06:00
2021-10-15 15:41:33 -05:00
2021-10-15 15:41:33 -05:00
2022-04-04 10:54:42 +01:00
2022-03-03 13:08:24 -06:00
2022-03-03 13:08:24 -06:00
2022-03-03 13:08:24 -06:00
2022-03-15 14:53:32 +00:00
2022-03-03 13:08:24 -06:00
2020-09-27 14:10:11 +02:00
2022-03-22 13:28:24 +00:00
2022-04-06 12:34:10 -07:00
2021-12-17 17:49:43 +00: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 %}.

Versioning

Reusables can include Liquid conditionals to conditionally render content depending on the current version being viewed. See contributing/liquid-helpers.md.