Skip to content

Commit

Permalink
chore: Update internal links to website (#37052)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored Nov 17, 2022
1 parent 7e92ab8 commit 35703b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
24 changes: 8 additions & 16 deletions packages/gatsby-cli/src/structured-errors/error-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ const errors = {
)}`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11334": {
text: (context): string =>
Expand All @@ -597,8 +596,7 @@ const errors = {
)}`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11335": {
text: (context): string =>
Expand All @@ -615,8 +613,7 @@ const errors = {
)}`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11336": {
text: (context): string =>
Expand All @@ -631,24 +628,21 @@ const errors = {
)}`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11337": {
text: (context): string =>
`An empty file "${context.componentPath}" was found during slice creation. Please remove it or make it a valid component.`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11338": {
text: (context): string =>
`${context.pluginName} created a slice component without a valid default export.\n\nThe path to the component is "${context.componentPath}". If your component is a named export, please use "export default" instead.`,
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11339": {
text: (context): string =>
Expand All @@ -661,8 +655,7 @@ const errors = {
.join(`\n\n`),
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
"11340": {
text: (context): string =>
Expand All @@ -674,8 +667,7 @@ const errors = {
.join(`\n\n`),
level: Level.ERROR,
category: ErrorCategory.USER,
// TODO: change domain to gatsbyjs.com when it's released
docsUrl: `https://v5.gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
docsUrl: `https://gatsbyjs.com/docs/reference/config-files/actions#createSlice`,
},
// node object didn't pass validation
"11467": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/cache-dir/slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Slice(props) {
}

throw new Error(
`Nested slices are not supported.${additionalContextMessage}\n\nSee https://v5.gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`
`Nested slices are not supported.${additionalContextMessage}\n\nSee https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`
)
} else {
throw new Error(
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ interface ISerializableObject {
}

/**
* A props object for [slice placholder](https://v5.gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/)
* A props object for [slice placholder](https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/)
*/
export interface SlicePlaceholderProps {
alias: string
Expand All @@ -206,12 +206,12 @@ export interface SlicePlaceholderProps {
}

/**
* Component used as a slice placholder, to mark a place in the page where a [slice](https://v5.gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/) should be inserted.
* Component used as a slice placholder, to mark a place in the page where a [slice](https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/) should be inserted.
*/
export declare function Slice(props: SlicePlaceholderProps): JSX.Element

/**
* A props object for [slice component](https://v5.gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/)
* A props object for [slice component](https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice/)
*/
export type SliceComponentProps<
DataType = object,
Expand Down

0 comments on commit 35703b6

Please sign in to comment.