1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/reusables
Felicity Chapman 9e58b71be2 Security overview available to all enterprise users, no longer requires GHAS (#29126)
* Rename gated-feature

* Rename reusable folder

* Add feature for function

* Update for change in behavior

* Remove GHES 3.0 from gated feature

* Remove unused gated-feature

* Fix test

* Fix another test

* Apply suggestions from code review

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Improve versioning

* Tweak message

* Update data/features/security-overview-displayed-alerts.yml

* Update content/code-security/getting-started/github-security-features.md

Co-authored-by: Kelly Arwine <kellyarwine@github.com>

Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
2022-08-09 05:35:27 +00:00
..
2022-07-11 21:17:09 +00:00
2022-07-11 21:17:09 +00:00
2022-07-11 21:17:09 +00:00
2022-07-19 10:24:18 +02:00
2022-07-11 21:17:09 +00:00
2022-07-11 21:17:09 +00:00
2022-03-03 13:08:24 -06:00
2022-07-11 21:17:09 +00:00
2022-07-27 15:55:35 +01:00
2022-07-27 15:55:35 +01:00
2022-07-27 17:57:03 +00:00
2022-07-11 21:17:09 +00:00
2022-07-11 21:17:09 +00:00
2022-03-03 13:08:24 -06:00
2022-08-04 14:09:53 +02:00
2022-07-27 15:55:35 +01: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.