ed12d3b3f1
Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Sarita Iyer <saritai@github.com> |
||
---|---|---|
.. | ||
accounts | ||
actions | ||
advanced-security | ||
advisory-database | ||
apps | ||
audit_log | ||
billing | ||
branches | ||
classroom | ||
cli | ||
code-scanning | ||
codespaces | ||
command-palette | ||
command_line | ||
commits | ||
community | ||
copilot | ||
dashboard | ||
dependabot | ||
dependency-review | ||
dependency-submission | ||
desktop | ||
developer-site | ||
discussions | ||
docs | ||
dotcom_billing | ||
education | ||
enterprise | ||
enterprise-accounts | ||
enterprise-licensing | ||
enterprise-managed | ||
enterprise_backup_utilities | ||
enterprise_clustering | ||
enterprise_deprecation | ||
enterprise_enterprise_support | ||
enterprise_installation | ||
enterprise_management_console | ||
enterprise_migrations | ||
enterprise_site_admin_settings | ||
enterprise_user_management | ||
feature-preview | ||
files | ||
form-schema | ||
gated-features | ||
gcm-core | ||
getting-started | ||
gist | ||
git | ||
github-ae | ||
github-connect | ||
gpg | ||
identity-and-permissions | ||
interactions | ||
issue-events | ||
large_files | ||
linux | ||
marketplace | ||
mobile | ||
notifications | ||
notifications-v2 | ||
open-source | ||
organizations | ||
package_registry | ||
pages | ||
policies | ||
pre-release-program | ||
products | ||
profile | ||
project-management | ||
projects | ||
pull_requests | ||
release-notes | ||
releases | ||
reminders | ||
repositories | ||
rest-api | ||
saml | ||
scim | ||
search | ||
secret-scanning | ||
security | ||
security-advisory | ||
security-overview | ||
server-statistics | ||
shortdesc | ||
sponsors | ||
ssh | ||
stars | ||
support | ||
supported-languages | ||
time_date | ||
two_fa | ||
user-settings | ||
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 %}
.
Versioning
Reusables can include Liquid conditionals to conditionally render content depending on the current version being viewed. See contributing/liquid-helpers.md.