docs/data/reusables
Maya Messinger 7972e52b28
Reapply "Docs update for retaining membership to orgs without 2FA" (#53023)
2024-11-08 20:43:48 +00:00
..
accounts [Core / Unowned] Reduce usage of `{% data variables.product.prodname_dotcom_the_website %}` (#52069) 2024-10-07 08:26:50 +00:00
actions Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
advanced-formatting Patch release notes for GitHub Enterprise Server (#48202) 2023-12-21 14:04:45 -05:00
advanced-security Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
advisory-database Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
apps Remove "5000 repo limit" for scoped tokens (#53016) 2024-11-08 17:26:05 +00:00
audit_log Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
billing Follow-up to Implement Sales Tax for self-serve US customers (#52961) 2024-11-05 13:25:19 +00:00
branches [Core / Unowned] Reduce usage of `{% data variables.location.product_location %}` (#52120) 2024-08-30 14:25:17 +00:00
classroom Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
cli Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
code-scanning Update CodeQL query tables (#52974) 2024-11-07 17:36:28 +00:00
codeql-cli Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
codespaces Craft session on alerts (#52586) 2024-11-03 15:32:49 +00:00
command-palette Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
command_line Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
commits Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
community Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
contributing Content Linter Rule - Whitespace (#52622) 2024-11-07 18:02:18 +00:00
copilot Copilot content exclusion GA (#52982) 2024-11-08 17:21:40 +00:00
copilot-business-for-non-ghe Refresh links to Azure subscription video (#52428) 2024-11-07 17:01:22 +00:00
dashboard Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
data-residency Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
dependabot Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
dependency-graph Complete the merge conflict resolution 2024-09-23 09:08:40 +01:00
dependency-review Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
dependency-submission address some comments 2024-09-30 10:05:56 +01:00
desktop Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
developer-site
discussions [Core / Unowned] Reduce usage of `{% data variables.location.product_location %}` (#52120) 2024-08-30 14:25:17 +00:00
docs
dotcom_billing Add periods to list in upgrading-your-accounts-plan#troubleshooting-a-500-error-when-upgrading (#34709) 2024-09-24 11:20:18 +00:00
education Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
emus Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
enterprise Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
enterprise-accounts Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
enterprise-data-residency October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
enterprise-licensing October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
enterprise-managed Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
enterprise-migration-tool Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
enterprise_backup_utilities Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
enterprise_clustering Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
enterprise_deprecation [Improvement]: Update links to old "Upgrading GHES" article (#51974) 2024-08-11 21:53:05 +00:00
enterprise_enterprise_support
enterprise_installation Spelling fixes (#35097) 2024-11-01 15:55:43 +00:00
enterprise_management_console Enterprise bug fix hour for week of September 23, 2024 (#52477) 2024-10-07 08:18:10 +00:00
enterprise_migrations October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
enterprise_site_admin_settings Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
enterprise_user_management October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
feature-preview
files Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
form-schema
gated-features Scannability improvements for front matter in Dependabot articles (2) (#52748) 2024-11-08 17:06:15 +00:00
gcm-core Remove GHAE in Liquid and front matter (26) (#49075) 2024-02-07 17:56:03 +00:00
getting-started Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
gist Remove GHAE in Liquid and front matter (18) (#48967) 2024-02-01 15:06:36 +00:00
git Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
github-connect Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
gpg October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
identity-and-permissions October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
interactions
issue-events Update label-properties.md (#31439) 2024-02-05 17:52:46 +00:00
issues Issues 2.0 (Public beta) (#52430) 2024-10-01 12:45:39 +01:00
large_files Billing vNext [GA] (#50725) 2024-06-03 16:03:10 +00:00
linux
marketplace [Core / Unowned] Reduce usage of `{% data variables.location.product_location %}` (#52120) 2024-08-30 14:25:17 +00:00
migrations October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
mobile October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
models October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
notifications capitalize first letter in each line (#33836) 2024-07-08 15:51:34 +00:00
notifications-v2
open-source
organizations Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
package_registry Craft session on alerts (#52586) 2024-11-03 15:32:49 +00:00
pages Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
passkeys GitHub Enterprise Server 3.14 release candidate (#51664) 2024-08-07 22:50:44 +00:00
permissions Scannability improvements for front matter in Dependabot articles (2) (#52748) 2024-11-08 17:06:15 +00:00
policies [Core / Unowned] Reduce usage of `{% data variables.product.prodname_dotcom_the_website %}` (#52069) 2024-10-07 08:26:50 +00:00
pre-release-program October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
products
profile docs : Move period inside quotation marks for consistency (#33650) 2024-06-24 17:13:28 +00:00
project-management Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
projects Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
pull_requests Fix broken links (#52574) 2024-10-09 13:23:52 +00:00
rai Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
release-notes Patch release notes for GitHub Enterprise Server (#52971) 2024-11-07 18:00:26 +00:00
releases Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
reminders Part 4: Update data dir from dash to asterisk (#51098) 2024-06-13 10:54:08 -07:00
repositories Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
rest-api Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
saml Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
scim Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
search Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
secret-scanning Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
security Remove references to GH-advisory-db-supports-malware (part 13) (#52384) 2024-09-23 08:44:57 +00:00
security-advisory Fix some quotes (#51259) 2024-06-19 10:45:40 +00:00
security-campaigns October 28-30: GitHub Universe 2024 docs-internal megabranch (#52491) 2024-10-29 08:40:06 -07:00
security-configurations Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
security-overview Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
server-statistics
shortdesc Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
sponsors Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
ssh Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
stars
subversion Update Subversion sunset reusable (#48597) 2024-01-08 19:47:58 +00:00
support Introduce new variables for release phase terminology (#52375) 2024-09-27 16:41:15 +00:00
supported-languages move new article and update links to it 2024-09-30 10:30:59 +01:00
time_date
two_fa Reapply "Docs update for retaining membership to orgs without 2FA" (#53023) 2024-11-08 20:43:48 +00:00
user-settings Ran white space linter on content (#52996) 2024-11-06 18:01:37 +00:00
vs-code
webhooks Delete orphaned files (2024-11-04-16-33) (#52970) 2024-11-05 09:46:11 -05:00
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.