Skip to content

Commit dade314

Browse files
authored
fix(docs): 301, 303 links (#3535)
1 parent df064a2 commit dade314

File tree

30 files changed

+33
-33
lines changed

30 files changed

+33
-33
lines changed

docs/scripts/data/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const PROMISE_POOL_CONCURRENCY = 10;
2-
export const DEFAULT_GOOD_STATUS_CODES = [200, 301, 303];
1+
export const PROMISE_POOL_CONCURRENCY = 5;
2+
export const DEFAULT_GOOD_STATUS_CODES = [200];
33
export const DOCS_AMPLIFY_HOST = 'https://docs.amplify.aws/';

docs/scripts/util/checkLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function returnStatus({
2626
tagName,
2727
tagText,
2828
}: LinkInfo): Promise<LinkInfo> {
29-
if ([...DEFAULT_GOOD_STATUS_CODES, 308].includes(statusCode)) {
29+
if ([...DEFAULT_GOOD_STATUS_CODES, 301, 308].includes(statusCode)) {
3030
/**
3131
* If 301 and from 'https://docs.amplify.aws/', add a "/" and check again.
3232
* Because 'https://docs.amplify.aws/' adds a "/" and return a 301 to all the links not ending with "/".

docs/src/pages/[platform]/components/alert/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Alert
33
description: Alert displays a brief message in a way that attracts the user’s attention without interrupting their task.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/alert
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/alert/
55
themeSource: packages/ui/src/theme/tokens/components/alert.ts
66
reactSource: packages/react/src/primitives/Alert/Alert.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div

docs/src/pages/[platform]/components/button/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Button
33
description: Button allows users to perform actions.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/button
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/
55
themeSource: packages/ui/src/theme/tokens/components/button.ts
66
reactSource: packages/react/src/primitives/Button/Button.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

docs/src/pages/[platform]/components/checkboxfield/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: CheckboxField
33
description: CheckboxField allows users to mark items as selected.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
55
themeSource: packages/ui/src/theme/tokens/components/checkbox.ts
66
reactSource: packages/react/src/primitives/CheckboxField/CheckboxField.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

docs/src/pages/[platform]/components/expander/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Expander
33
description: Expander allows users to expand or collapse a set of sections.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/accordion
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
55
themeSource: packages/ui/src/theme/tokens/components/expander.ts
66
reactSource: packages/react/src/primitives/Expander/Expander.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div

docs/src/pages/[platform]/components/icon/react.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Import the Icon component and styles.
4242

4343
<Alert variation="warning" role="none" heading="Deprecated">
4444
The built-in icons were removed in version `3.0`. You can use the
45-
[react-icons](https://react-icons.github.io/react-icons) package or other
45+
[react-icons](https://react-icons.github.io/react-icons/) package or other
4646
React icon libraries in its place.
4747
</Alert>
4848

@@ -118,7 +118,7 @@ You can also optionally use a `paths` array of path-like objects that will be ma
118118

119119
### Using a library
120120

121-
To use an icon library like [React Icons](https://react-icons.github.io/react-icons), import the desired icon and pass it to the `as` prop.
121+
To use an icon library like [React Icons](https://react-icons.github.io/react-icons/), import the desired icon and pass it to the `as` prop.
122122

123123
<Example>
124124
<CustomIconWithLibExample />

docs/src/pages/[platform]/components/link/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Link
33
description: Link renders an anchor element <a> by default and is primarily used for navigation.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/link
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/link/
55
themeSource: packages/ui/src/theme/tokens/components/link.ts
66
reactSource: packages/react/src/primitives/Link/Link.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

docs/src/pages/[platform]/components/phonenumberfield/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Use the `autoComplete` prop to tell the browser how to populate the `PhoneNumber
7676
as the `autoComplete` property for the text field and `tel-country-code` as the `autoComplete` property for the dial code selector.
7777
7878
If the `PhoneNumberField` primitive is intended to be used in a form that is compatible with most password managers, the `autoComplete` property should
79-
be set to `username` (see [Password Form Styles that Chromium Understands](https://www.chromium.org/developers/design-documents/form-styles-that-chromium-understands)).
79+
be set to `username` (see [Password Form Styles that Chromium Understands](https://www.chromium.org/developers/design-documents/form-styles-that-chromium-understands/)).
8080
8181
<Example>
8282
<AutoCompleteExample />

docs/src/pages/[platform]/components/radiogroupfield/index.page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: RadioGroupField
33
description: RadioGroupField allows users to select a single option from a list of mutually exclusive options.
4-
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton
4+
ariaPattern: https://www.w3.org/WAI/ARIA/apg/patterns/radio/
55
themeSource: packages/ui/src/theme/tokens/components/radio.ts
66
reactSource: packages/react/src/primitives/RadioGroupField/RadioGroupField.tsx
77
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio

0 commit comments

Comments
 (0)