Skip to content

Commit fc2b3e4

Browse files
authored
Merge branch 'main' into repo-sync
2 parents 4d8130d + 0eb15bc commit fc2b3e4

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You may want to use a dark theme to reduce power consumption on certain devices,
2222

2323
{% note %}
2424

25-
**Note:** The colorblind themes are currently in public beta. For more information on enabling features in public beta, see "[Exploring early access releases with feature preview](/get-started/using-github/exploring-early-access-releases-with-feature-preview)."
25+
**Note:** The colorblind themes and light high contrast theme are currently in public beta. For more information on enabling features in public beta, see "[Exploring early access releases with feature preview](/get-started/using-github/exploring-early-access-releases-with-feature-preview)."
2626

2727
{% endnote %}
2828

lib/render-content/plugins/rewrite-local-links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import removeFPTFromPath from '../../remove-fpt-from-path.js'
1010
import readJsonFile from '../../read-json-file.js'
1111
const supportedVersions = Object.keys(allVersions)
1212
const supportedPlans = Object.values(allVersions).map((v) => v.plan)
13-
const externalRedirects = Object.keys(readJsonFile('./lib/redirects/external-sites.json'))
13+
const externalRedirects = readJsonFile('./lib/redirects/external-sites.json')
1414

1515
// Matches any <a> tags with an href that starts with `/`
1616
const matcher = (node) =>
@@ -41,7 +41,7 @@ function getNewHref(node, languageCode, version) {
4141
// Exceptions to link rewriting
4242
if (href.startsWith('/assets')) return
4343
if (href.startsWith('/public')) return
44-
if (externalRedirects.includes(href)) return
44+
if (href in externalRedirects) return
4545

4646
let newHref = href
4747
// If the link has a hardcoded plan or version in it, do not update other than adding a language code

package-lock.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"accept-language-parser": "^1.5.0",
2020
"ajv": "^8.7.1",
2121
"ajv-formats": "^2.1.1",
22-
"bottleneck": "^2.19.5",
2322
"cheerio": "^1.0.0-rc.10",
2423
"classnames": "^2.3.1",
2524
"compression": "^1.7.4",
@@ -122,6 +121,7 @@
122121
"babel-loader": "^8.2.3",
123122
"babel-plugin-styled-components": "^1.13.3",
124123
"babel-preset-env": "^1.7.0",
124+
"bottleneck": "^2.19.5",
125125
"chalk": "^4.1.2",
126126
"change-case": "^4.1.2",
127127
"commander": "^8.3.0",

0 commit comments

Comments
 (0)