1
0
mirror of synced 2026-01-07 09:01:31 -05:00
Files
docs/data/reusables
Craig Peters 3080fc9d3f Edit with GitHub dev (#28597)
* update edit-file-edit-button and add dropdown

Updated images for repository/edit-file

* Update repo-edit with dropdown

* update dev with dropdown

* Optimize images

* add line break

* Restoring the beta message

* Docs team edits

* Optimize images

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
2022-07-11 13:43:03 +00:00
..
2022-06-29 09:42:21 +02:00
2021-10-15 15:41:33 -05:00
2022-06-30 15:23:41 +00:00
2021-10-15 15:41:33 -05:00
Add 💅
2021-11-10 12:09:45 -06:00
2022-06-02 13:55:50 -04: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
2021-10-15 15:41:33 -05:00
2021-10-15 15:41:33 -05:00
2022-06-23 12:43:14 -07:00
2022-06-07 15:04:55 -04:00
2022-05-05 21:17:06 +00:00
2022-03-03 13:08:24 -06:00
2022-07-01 08:26:51 +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.