docs/data/reusables
Isaac Brown c457258e0e
Create "Accessibility" category in Get Started (#45738)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2023-11-13 17:52:41 +00:00
..
accounts
actions Update docs for the `github.triggering_actor` context and default variable (#45567) 2023-11-03 21:39:40 +00:00
advanced-formatting
advanced-security [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
advisory-database
apps Update Libraries article in the REST docs (#45134) 2023-10-31 20:53:03 +00:00
audit_log
billing
branches
classroom Change instances of "VS Code" and "Visual Studio Code" to use variables (#45844) 2023-11-13 14:02:24 +00:00
cli
code-scanning CodeQL - swift5.8 not supported to swift5.9 (#45571) 2023-11-06 10:12:38 +00:00
codeql-cli
codespaces Change instances of "VS Code" and "Visual Studio Code" to use variables (#45844) 2023-11-13 14:02:24 +00:00
command-palette
command_line
commits docs: Add note on skip-checks (#29319) 2023-10-25 19:02:31 +00:00
community
contributing Update a few things for consistency content linter (#44662) 2023-10-19 02:13:55 +00:00
copilot Change instances of "VS Code" and "Visual Studio Code" to use variables (#45844) 2023-11-13 14:02:24 +00:00
dashboard
dependabot Clarifying GitHub Actions support for Dependabot version updates (#45886) 2023-11-13 17:25:14 +00:00
dependency-graph
dependency-review
dependency-submission
desktop Fixes indentation in Windows code example (#45687) 2023-11-06 16:08:08 +00:00
developer-site
discussions Update content for the new global navigation GA (1/2) (#44651) 2023-10-25 16:41:25 +00:00
docs
dotcom_billing Update language about organizations to match UI changes (#44979) 2023-10-27 15:02:21 +00:00
education
emus Add troubleshooting for EMU team membership management (#42613) 2023-10-24 15:01:00 +00:00
enterprise [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
enterprise-accounts [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
enterprise-licensing
enterprise-managed [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
enterprise-migration-tool Document that GitHub Enterprise Importer does not migrate rulesets or custom properties (#44332) 2023-10-15 23:22:10 +00:00
enterprise_backup_utilities
enterprise_clustering
enterprise_deprecation
enterprise_enterprise_support
enterprise_installation Merge "Preparing to migrate data to GitHub Enterprise Server" into "Migrating data to GitHub Enterprise Server" (#44334) 2023-10-27 11:29:12 +00:00
enterprise_management_console
enterprise_migrations Merge "Preparing to migrate data to GitHub Enterprise Server" into "Migrating data to GitHub Enterprise Server" (#44334) 2023-10-27 11:29:12 +00:00
enterprise_site_admin_settings
enterprise_user_management [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
feature-preview
files Update content for the new global navigation GA (1/2) (#44651) 2023-10-25 16:41:25 +00:00
form-schema
gated-features Copilot: Remove nightly build steps no longer needed (#45892) 2023-11-09 15:38:17 +00:00
gcm-core
getting-started
gist
git
github-ae
github-connect
gpg Update paste-ssh-public-key.md (#29792) 2023-11-13 18:22:44 +00:00
identity-and-permissions
interactions
issue-events
large_files
linux
marketplace
migrations
mobile
notifications
notifications-v2
open-source
organizations Update Instructions for OAuth Application Policy (#29713) 2023-11-06 18:24:56 +00:00
package_registry Update content for the new global navigation GA (1/2) (#44651) 2023-10-25 16:41:25 +00:00
pages
passkeys
policies Remove possible translation notice for site-policy docs (#45046) 2023-10-26 13:18:55 +00:00
pre-release-program
products
profile Update content for the new global navigation GA (1/2) (#44651) 2023-10-25 16:41:25 +00:00
project-management Create "Accessibility" category in Get Started (#45738) 2023-11-13 17:52:41 +00:00
projects Fix typos (#29175) 2023-10-16 21:50:11 +00:00
pull_requests
rai/code-scanning [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
release-notes Update release notes with know issue about AWS system time getting out-of-sync (#45894) 2023-11-10 12:56:00 +00:00
releases
reminders
repositories [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
rest-api Expand REST API troubleshooting tips (#45582) 2023-11-10 00:05:50 +00:00
saml
scim [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
search Create "Accessibility" category in Get Started (#45738) 2023-11-13 17:52:41 +00:00
secret-scanning [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
security
security-advisory
security-overview [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
server-statistics
shortdesc
sponsors Scheduled Sponsorships - [GA] (#44906) 2023-11-01 18:32:34 +00:00
ssh
stars
subversion
support Update prodname_support_forum_with_url.md (#45846) 2023-11-13 17:41:06 +00:00
supported-languages [DO NOT MERGE] November 8–9: GitHub Universe 2023 megabranch (#44245) 2023-11-08 17:35:45 +01:00
time_date
two_fa
user-settings Update content for the new global navigation GA (1/2) (#44651) 2023-10-25 16:41:25 +00:00
vs-code
webhooks
README.md

README.md

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 %}.

Indenting

Indented reusables require a special liquid tag: indented_data_reference which also requires the number of spaces to indent as an argument.

For example, to indent /data/reusables/foo/bar.md in an ordered list, you could:

1. My first list item
{% indented_data_reference reusables.foo.par spaces=2 %}
1. My second list item

Versioning

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