1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Update content/contributing where it links to specific src files (#56592)

This commit is contained in:
Kevin Heis
2025-07-11 09:26:10 -07:00
committed by GitHub
parent 60d5baf8ff
commit 9ac56e8646
5 changed files with 9 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ For example, to enable Japanese and Portuguese in addition to English, you can e
> [!NOTE]
> Before you commit your changes, you should revert the `package.json` file to its original state.
The supported language codes are defined in [`src/languages/lib/languages.js`](https://github.com/github/docs/blob/main/src/languages/lib/languages.js).
The supported language codes are defined in [`src/languages/lib/languages.ts`](https://github.com/github/docs/blob/main/src/languages/lib/languages.ts).
## Using {% data variables.product.prodname_github_codespaces %}

View File

@@ -38,7 +38,7 @@ See [`redirect_from`](https://github.com/github/docs/blob/main/content/README.md
If a URL for a page is entered without a version (`https://docs.github.com/ARTICLE` instead of `https://docs.github.com/VERSION/ARTICLE`), the site will automatically redirect it to the first available version of the page.<!-- markdownlint-disable-line search-replace -->
The order of precedence is specified in [`lib/all-versions.js`](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.js). The current order of precedence is:
The order of precedence is specified in [`lib/all-versions.ts`](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.ts). The current order of precedence is:
1. {% data variables.product.prodname_free_team %}, {% data variables.product.prodname_pro %}, or {% data variables.product.prodname_team %} (`fpt`)
1. {% data variables.product.prodname_ghe_cloud %} (`ghec`)

View File

@@ -46,7 +46,7 @@ For more information, see [`lib/frontmatter.js`](https://github.com/github/docs/
### `versions`
* Purpose: Indicates the [versions](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.js) to which a page applies.
* Purpose: Indicates the [versions](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.ts) to which a page applies.
For more information about the different types of versioning, see [Versioning documentation](/contributing/syntax-and-versioning-for-github-docs/versioning-documentation).
* Type: `Object`. Allowable keys map to product names and can be found in the `versions` object in [`lib/frontmatter.js`](https://github.com/github/docs/blob/main/src/frame/lib/frontmatter.js).
* This frontmatter value is currently **required** for all pages.

View File

@@ -1,3 +1,6 @@
// When updating this file to typescript,
// update links in content/contributing as well
import path from 'path'
import stripAnsi from 'strip-ansi'

View File

@@ -1,3 +1,6 @@
// when updating to typescript,
// update links in content/contributing as well
import parse from './read-frontmatter'
import { allVersions } from '@/versions/lib/all-versions'
import { allTools } from '@/tools/lib/all-tools'