docs/data/reusables
Grace Park a0f4167bc1
Update md004 to asterisk as warning and styleguide (#51086)
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2024-06-13 16:26:46 +00:00
..
accounts
actions Update self-hosted runner network connectivity check script examples (#51050) 2024-06-10 23:16:18 +00:00
advanced-formatting
advanced-security
advisory-database
apps Add content for the limited public beta of Copilot Extensibility (#50525) 2024-05-21 14:52:21 +00:00
audit_log
billing Billing vNext [GA] (#50725) 2024-06-03 16:03:10 +00:00
branches
classroom update note text (#33146) 2024-05-23 19:13:39 +00:00
cli
code-scanning Remove ifversion feature 'code-scanning-without-workflow' (#51115) 2024-06-11 14:33:26 +00:00
codeql-cli
codespaces
command-palette
command_line
commits
community
contributing Update md004 to asterisk as warning and styleguide (#51086) 2024-06-13 16:26:46 +00:00
copilot Copilot: update Quickstart for Chat and multiple environments (#51112) 2024-06-12 11:13:44 +00:00
dashboard
dependabot fix: typo dependabot configuration (#33409) 2024-06-10 20:25:53 +00:00
dependency-graph
dependency-review
dependency-submission
desktop GitHub Desktop v3.4 (#50803) 2024-05-29 15:21:38 +00:00
developer-site
discussions
docs
dotcom_billing Redeeming a GHEC coupon creates enterprise account - [GA] (#50134) 2024-05-13 19:24:16 +00:00
education Remove mentions of "Global Campus" (#50552) 2024-05-14 22:14:40 +00:00
emus Make "Roles in an enterprise" scannable (#50976) 2024-06-13 09:53:58 +00:00
enterprise Make "Setting up a trial of GHEC" scannable (#50727) 2024-05-28 13:43:03 +00:00
enterprise-accounts Copilot: update the docs about Bing policy (#50950) 2024-06-04 15:20:53 +00:00
enterprise-licensing Replace unnecessary uses of prodname_dotcom_the_website (#50591) 2024-05-14 13:05:26 +00:00
enterprise-managed Replace unnecessary uses of prodname_dotcom_the_website (#50591) 2024-05-14 13:05:26 +00:00
enterprise-migration-tool Enterprise bugfix hour w/c 13 May (#50643) 2024-05-20 09:19:29 +00:00
enterprise_backup_utilities
enterprise_clustering
enterprise_deprecation
enterprise_enterprise_support
enterprise_installation Use NOTE not Note (#50784) 2024-05-28 11:38:57 +00:00
enterprise_management_console
enterprise_migrations
enterprise_site_admin_settings
enterprise_user_management Make "About Enterprise Managed Users" scannable (#50406) 2024-05-29 13:01:02 +00:00
feature-preview
files Enable GitHub Enterprise Server 3.13 release candidate on GitHub Docs (#50165) 2024-05-16 14:26:02 +00:00
form-schema
gated-features Copilot: improve scannability of config articles (#50979) 2024-06-07 14:13:29 +00:00
gcm-core
getting-started
gist
git
github-connect Replace unnecessary uses of prodname_dotcom_the_website (#50591) 2024-05-14 13:05:26 +00:00
gpg
identity-and-permissions
interactions
issue-events
large_files Billing vNext [GA] (#50725) 2024-06-03 16:03:10 +00:00
linux
marketplace Add content for the limited public beta of Copilot Extensibility (#50525) 2024-05-21 14:52:21 +00:00
migrations
mobile
notifications
notifications-v2
open-source
organizations Update managing-custom-properties-for-repositories-in-your-organizati… (#50966) 2024-06-12 17:12:21 +00:00
package_registry Artifact attestation needs `id-token: write` permission in publishing-docker-images.md (#32926) 2024-06-01 00:33:11 +00:00
pages Projects (classic) sunset - add notices, remove ability to create projects on dotcom (#50700) 2024-05-23 22:28:48 +00:00
passkeys Replace unnecessary uses of prodname_dotcom_the_website (#50591) 2024-05-14 13:05:26 +00:00
policies
pre-release-program
products
profile Increase scannability of content on audit logs for Copilot Business (#50745) 2024-05-24 17:55:28 +00:00
project-management Projects (classic) sunset - add notices, remove ability to create projects on dotcom (#50700) 2024-05-23 22:28:48 +00:00
projects Projects (classic) sunset - add notices, remove ability to create projects on dotcom (#50700) 2024-05-23 22:28:48 +00:00
pull_requests
rai Restructure content about managing copilot (#50997) 2024-06-06 21:11:38 +00:00
release-notes
releases
reminders Update managing-scheduled-reminders-for-your-team.md with "Get mentioned on slack" section (#31801) 2024-05-31 14:50:18 +00:00
repositories Create about-push-rule-delegated-bypass.md (#50973) 2024-06-12 16:38:12 +00:00
rest-api Remove `api-date-versioning` because it's always true (#49914) 2024-03-28 19:34:48 +00:00
saml Replace unnecessary uses of prodname_dotcom_the_website (#50591) 2024-05-14 13:05:26 +00:00
scim Make "About Enterprise Managed Users" scannable (#50406) 2024-05-29 13:01:02 +00:00
search Update languages supported for code navigation (#50739) 2024-05-23 22:27:41 +00:00
secret-scanning Remove ifversion 'secret-scanning-push-protection' feature (#51142) 2024-06-13 11:54:24 +00:00
security Add SOC 2 Type 1 for Copilot Business to Compliance List (#50740) 2024-06-03 17:16:49 +00:00
security-advisory Deprecation of advisories on private repos #12401 (#50337) 2024-05-15 17:44:08 +00:00
security-configurations Modified Dependabot on Action/self-hosted Docs to the new UI (#50639) 2024-05-17 13:23:49 +00:00
security-overview
server-statistics
shortdesc
sponsors
ssh
stars
subversion
support The old GitHub Enterprise Support Portal is being fully deprecated (#50795) 2024-06-05 22:08:47 +00:00
supported-languages Private Cargo Registry Support for Dependabot - [GA] (#50154) 2024-06-03 18:33:22 +00:00
time_date
two_fa Bug fix for Enterprise (#51038) 2024-06-11 15:44:03 +00:00
user-settings Scannability: remove unnecessary screenshot (#51053) 2024-06-10 06:57:41 +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.