Skip to content

Commit 9ac56e8

Browse files
authored
Update content/contributing where it links to specific src files (#56592)
1 parent 60d5baf commit 9ac56e8

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

content/contributing/setting-up-your-environment-to-work-on-github-docs/creating-a-local-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ For example, to enable Japanese and Portuguese in addition to English, you can e
7474
> [!NOTE]
7575
> Before you commit your changes, you should revert the `package.json` file to its original state.
7676
77-
The supported language codes are defined in [`src/languages/lib/languages.js`](https://github.com/github/docs/blob/main/src/languages/lib/languages.js).
77+
The supported language codes are defined in [`src/languages/lib/languages.ts`](https://github.com/github/docs/blob/main/src/languages/lib/languages.ts).
7878

7979
## Using {% data variables.product.prodname_github_codespaces %}
8080

content/contributing/writing-for-github-docs/configuring-redirects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ See [`redirect_from`](https://github.com/github/docs/blob/main/content/README.md
3838

3939
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 -->
4040

41-
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:
41+
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:
4242

4343
1. {% data variables.product.prodname_free_team %}, {% data variables.product.prodname_pro %}, or {% data variables.product.prodname_team %} (`fpt`)
4444
1. {% data variables.product.prodname_ghe_cloud %} (`ghec`)

content/contributing/writing-for-github-docs/using-yaml-frontmatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For more information, see [`lib/frontmatter.js`](https://github.com/github/docs/
4646

4747
### `versions`
4848

49-
* Purpose: Indicates the [versions](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.js) to which a page applies.
49+
* Purpose: Indicates the [versions](https://github.com/github/docs/blob/main/src/versions/lib/all-versions.ts) to which a page applies.
5050
For more information about the different types of versioning, see [Versioning documentation](/contributing/syntax-and-versioning-for-github-docs/versioning-documentation).
5151
* 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).
5252
* This frontmatter value is currently **required** for all pages.

src/content-render/unified/rewrite-local-links.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// When updating this file to typescript,
2+
// update links in content/contributing as well
3+
14
import path from 'path'
25

36
import stripAnsi from 'strip-ansi'

src/frame/lib/frontmatter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// when updating to typescript,
2+
// update links in content/contributing as well
3+
14
import parse from './read-frontmatter'
25
import { allVersions } from '@/versions/lib/all-versions'
36
import { allTools } from '@/tools/lib/all-tools'

0 commit comments

Comments
 (0)