diff --git a/.github/actions/gatsby-site-showcase-validator/README.md b/.github/actions/gatsby-site-showcase-validator/README.md index 2751dcfe61983..61b7960a3fd9d 100644 --- a/.github/actions/gatsby-site-showcase-validator/README.md +++ b/.github/actions/gatsby-site-showcase-validator/README.md @@ -1,5 +1,5 @@ # Gatsby Site Showcase Validator -A simple node script that visits and checks all of the sites in the [Site Showcase](https://www.gatsbyjs.org/showcase/) for Gatsby. +A simple node script that visits and checks all of the sites in the [Site Showcase](https://www.gatsbyjs.com/showcase/) for Gatsby. Run locally [using act](https://github.com/nektos/act): `act -a "gatsby-site-showcase-validator"` diff --git a/benchmarks/gabe-csv-markdown/src/components/bio.js b/benchmarks/gabe-csv-markdown/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-csv-markdown/src/components/bio.js +++ b/benchmarks/gabe-csv-markdown/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-csv-markdown/src/components/layout.js b/benchmarks/gabe-csv-markdown/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-csv-markdown/src/components/layout.js +++ b/benchmarks/gabe-csv-markdown/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-csv-text/src/components/bio.js b/benchmarks/gabe-csv-text/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-csv-text/src/components/bio.js +++ b/benchmarks/gabe-csv-text/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-csv-text/src/components/layout.js b/benchmarks/gabe-csv-text/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-csv-text/src/components/layout.js +++ b/benchmarks/gabe-csv-text/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-fs-markdown-images/src/components/bio.js b/benchmarks/gabe-fs-markdown-images/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-fs-markdown-images/src/components/bio.js +++ b/benchmarks/gabe-fs-markdown-images/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-fs-markdown-images/src/components/layout.js b/benchmarks/gabe-fs-markdown-images/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-fs-markdown-images/src/components/layout.js +++ b/benchmarks/gabe-fs-markdown-images/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-fs-markdown-route-api/src/components/bio.js b/benchmarks/gabe-fs-markdown-route-api/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-fs-markdown-route-api/src/components/bio.js +++ b/benchmarks/gabe-fs-markdown-route-api/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-fs-markdown-route-api/src/components/layout.js b/benchmarks/gabe-fs-markdown-route-api/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-fs-markdown-route-api/src/components/layout.js +++ b/benchmarks/gabe-fs-markdown-route-api/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-fs-markdown/src/components/bio.js b/benchmarks/gabe-fs-markdown/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-fs-markdown/src/components/bio.js +++ b/benchmarks/gabe-fs-markdown/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-fs-markdown/src/components/layout.js b/benchmarks/gabe-fs-markdown/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-fs-markdown/src/components/layout.js +++ b/benchmarks/gabe-fs-markdown/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-fs-mdx/src/components/layout.js b/benchmarks/gabe-fs-mdx/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-fs-mdx/src/components/layout.js +++ b/benchmarks/gabe-fs-mdx/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-fs-text/src/components/bio.js b/benchmarks/gabe-fs-text/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-fs-text/src/components/bio.js +++ b/benchmarks/gabe-fs-text/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-fs-text/src/components/layout.js b/benchmarks/gabe-fs-text/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-fs-text/src/components/layout.js +++ b/benchmarks/gabe-fs-text/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-json-text/src/components/bio.js b/benchmarks/gabe-json-text/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-json-text/src/components/bio.js +++ b/benchmarks/gabe-json-text/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-json-text/src/components/layout.js b/benchmarks/gabe-json-text/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-json-text/src/components/layout.js +++ b/benchmarks/gabe-json-text/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/gabe-yaml-text/src/components/bio.js b/benchmarks/gabe-yaml-text/src/components/bio.js index 867acfe818a21..7da2de84df3fa 100644 --- a/benchmarks/gabe-yaml-text/src/components/bio.js +++ b/benchmarks/gabe-yaml-text/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/gabe-yaml-text/src/components/layout.js b/benchmarks/gabe-yaml-text/src/components/layout.js index 0fb3df2756467..0110e61d165d9 100644 --- a/benchmarks/gabe-yaml-text/src/components/layout.js +++ b/benchmarks/gabe-yaml-text/src/components/layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/image-processing/gatsby-browser.js b/benchmarks/image-processing/gatsby-browser.js index b1e5c316b7f94..ff807f19ef7cc 100644 --- a/benchmarks/image-processing/gatsby-browser.js +++ b/benchmarks/image-processing/gatsby-browser.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Browser APIs in this file. * - * See: https://www.gatsbyjs.org/docs/browser-apis/ + * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it diff --git a/benchmarks/image-processing/gatsby-ssr.js b/benchmarks/image-processing/gatsby-ssr.js index b17b8fc19d659..01d83255f4f2c 100644 --- a/benchmarks/image-processing/gatsby-ssr.js +++ b/benchmarks/image-processing/gatsby-ssr.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * - * See: https://www.gatsbyjs.org/docs/ssr-apis/ + * See: https://www.gatsbyjs.com/docs/ssr-apis/ */ // You can delete this file if you're not using it diff --git a/benchmarks/image-processing/src/components/image.js b/benchmarks/image-processing/src/components/image.js index e61edb684de4e..b134a7b80be74 100644 --- a/benchmarks/image-processing/src/components/image.js +++ b/benchmarks/image-processing/src/components/image.js @@ -10,7 +10,7 @@ import Img from "gatsby-image" * * For more information, see the docs: * - `gatsby-image`: https://gatsby.dev/gatsby-image - * - `useStaticQuery`: https://www.gatsbyjs.org/docs/use-static-query/ + * - `useStaticQuery`: https://www.gatsbyjs.com/docs/use-static-query/ */ const Image = () => { diff --git a/benchmarks/image-processing/src/components/layout.js b/benchmarks/image-processing/src/components/layout.js index 8d559875eb270..5cded509ac498 100644 --- a/benchmarks/image-processing/src/components/layout.js +++ b/benchmarks/image-processing/src/components/layout.js @@ -2,7 +2,7 @@ * Layout component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" @@ -38,7 +38,7 @@ const Layout = ({ children }) => { diff --git a/benchmarks/image-processing/src/components/seo.js b/benchmarks/image-processing/src/components/seo.js index e15f59958a3c0..b40a909ae8c8b 100644 --- a/benchmarks/image-processing/src/components/seo.js +++ b/benchmarks/image-processing/src/components/seo.js @@ -2,7 +2,7 @@ * SEO component that queries for data with * Gatsby's useStaticQuery React hook * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/markdown_id/src/components/bio.js b/benchmarks/markdown_id/src/components/bio.js index f74b2e8318dc5..62b09465ec8c3 100644 --- a/benchmarks/markdown_id/src/components/bio.js +++ b/benchmarks/markdown_id/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/markdown_id/src/components/layout.js b/benchmarks/markdown_id/src/components/layout.js index 5a44c9cacfed2..fa512ff708b40 100644 --- a/benchmarks/markdown_id/src/components/layout.js +++ b/benchmarks/markdown_id/src/components/layout.js @@ -65,7 +65,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/markdown_id/src/components/seo.js b/benchmarks/markdown_id/src/components/seo.js index e15f59958a3c0..b40a909ae8c8b 100644 --- a/benchmarks/markdown_id/src/components/seo.js +++ b/benchmarks/markdown_id/src/components/seo.js @@ -2,7 +2,7 @@ * SEO component that queries for data with * Gatsby's useStaticQuery React hook * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/markdown_slug/src/components/bio.js b/benchmarks/markdown_slug/src/components/bio.js index f74b2e8318dc5..62b09465ec8c3 100644 --- a/benchmarks/markdown_slug/src/components/bio.js +++ b/benchmarks/markdown_slug/src/components/bio.js @@ -2,7 +2,7 @@ * Bio component that queries for data * with Gatsby's useStaticQuery component * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/markdown_slug/src/components/layout.js b/benchmarks/markdown_slug/src/components/layout.js index 5a44c9cacfed2..fa512ff708b40 100644 --- a/benchmarks/markdown_slug/src/components/layout.js +++ b/benchmarks/markdown_slug/src/components/layout.js @@ -65,7 +65,7 @@ class Layout extends React.Component { ) diff --git a/benchmarks/markdown_slug/src/components/seo.js b/benchmarks/markdown_slug/src/components/seo.js index e15f59958a3c0..b40a909ae8c8b 100644 --- a/benchmarks/markdown_slug/src/components/seo.js +++ b/benchmarks/markdown_slug/src/components/seo.js @@ -2,7 +2,7 @@ * SEO component that queries for data with * Gatsby's useStaticQuery React hook * - * See: https://www.gatsbyjs.org/docs/use-static-query/ + * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import React from "react" diff --git a/benchmarks/source-agilitycms/gatsby-config.js b/benchmarks/source-agilitycms/gatsby-config.js index 65a00a262366a..c10190d3d7b4e 100644 --- a/benchmarks/source-agilitycms/gatsby-config.js +++ b/benchmarks/source-agilitycms/gatsby-config.js @@ -13,7 +13,7 @@ const agilityConfig = { /** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { diff --git a/benchmarks/source-strapi/gatsby-browser.js b/benchmarks/source-strapi/gatsby-browser.js index b1e5c316b7f94..ff807f19ef7cc 100644 --- a/benchmarks/source-strapi/gatsby-browser.js +++ b/benchmarks/source-strapi/gatsby-browser.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Browser APIs in this file. * - * See: https://www.gatsbyjs.org/docs/browser-apis/ + * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it diff --git a/deprecated-packages/gatsby-image/README.md b/deprecated-packages/gatsby-image/README.md index cd9471bf0e511..a6f066881e160 100644 --- a/deprecated-packages/gatsby-image/README.md +++ b/deprecated-packages/gatsby-image/README.md @@ -269,7 +269,7 @@ format, use the `withWebp` fragments. If the browser doesn't support WebP, `gatsby-image` will fall back to the default image format. For more information about these options, please see the -[Gatsby Image API](https://www.gatsbyjs.org/docs/gatsby-image/#image-query-fragments). +[Gatsby Image API](https://www.gatsbyjs.com/docs/gatsby-image/#image-query-fragments). _Please see the [gatsby-plugin-sharp](/plugins/gatsby-plugin-sharp/#tracedsvg) diff --git a/deprecated-packages/gatsby-image/src/index.js b/deprecated-packages/gatsby-image/src/index.js index cd4b732d410e1..923b344a0c0ce 100644 --- a/deprecated-packages/gatsby-image/src/index.js +++ b/deprecated-packages/gatsby-image/src/index.js @@ -192,7 +192,7 @@ function groupByMedia(imageVariants) { if (without.length > 1 && process.env.NODE_ENV !== `production`) { console.warn( - `We've found ${without.length} sources without a media property. They might be ignored by the browser, see: https://www.gatsbyjs.org/packages/gatsby-image/#art-directing-multiple-images` + `We've found ${without.length} sources without a media property. They might be ignored by the browser, see: https://www.gatsbyjs.com/plugins/gatsby-image/#art-directing-multiple-images` ) } diff --git a/deprecated-packages/gatsby-plugin-create-client-paths/README.md b/deprecated-packages/gatsby-plugin-create-client-paths/README.md index 85a682367105a..e3958ba1bed11 100644 --- a/deprecated-packages/gatsby-plugin-create-client-paths/README.md +++ b/deprecated-packages/gatsby-plugin-create-client-paths/README.md @@ -4,7 +4,7 @@ Use this plugin to simplify creating a “hybrid” Gatsby app with both statically rendered pages as well as "client-paths". These paths exist on the client only and do not correspond to index.html files in an app's built assets. -For more information refer to [client-only routes & user authentication](https://www.gatsbyjs.org/docs/client-only-routes-and-user-authentication/). +For more information refer to [client-only routes & user authentication](https://www.gatsbyjs.com/docs/client-only-routes-and-user-authentication/). ## Migration diff --git a/deprecated-packages/gatsby-recipes/CONTRIBUTING.md b/deprecated-packages/gatsby-recipes/CONTRIBUTING.md index 59c5363b9ac9c..82fe96be51df9 100644 --- a/deprecated-packages/gatsby-recipes/CONTRIBUTING.md +++ b/deprecated-packages/gatsby-recipes/CONTRIBUTING.md @@ -88,7 +88,7 @@ This example will be used throughout this document as an illustration tool. ## Setting up a development environment -First [follow the instructions on setting up a local Gatsby dev environment](https://www.gatsbyjs.org/contributing/setting-up-your-local-dev-environment/). +First [follow the instructions on setting up a local Gatsby dev environment](https://www.gatsbyjs.com/contributing/setting-up-your-local-dev-environment/). ### Running the unit tests @@ -108,7 +108,7 @@ yarn jest packages/gatsby-recipes --testPathPattern "providers" --watch ### Using gatsby-dev-cli -You can create test recipes that you run in a test site. You’ll need to [use `gatsby-dev-cli` for this.](https://www.gatsbyjs.org/contributing/setting-up-your-local-dev-environment/#gatsby-functional-changes). +You can create test recipes that you run in a test site. You’ll need to [use `gatsby-dev-cli` for this.](https://www.gatsbyjs.com/contributing/setting-up-your-local-dev-environment/#gatsby-functional-changes). One note, as you’ll be testing changes to the Gatsby CLI — instead of running the global gatsby-cli package (i.e. what you’d run by typing `gatsby`, you’ll want to run the version copied over by `gatsby-dev-cli` by running `./node_modules/.bin/gatsby`. diff --git a/deprecated-packages/gatsby-recipes/README.md b/deprecated-packages/gatsby-recipes/README.md index 087cf15bc0cc4..488f49d6675c0 100644 --- a/deprecated-packages/gatsby-recipes/README.md +++ b/deprecated-packages/gatsby-recipes/README.md @@ -13,10 +13,10 @@ Recipes to automate more things. We chose [MDX](https://mdxjs.com/) to allow for a literate programming style of writing recipes which enables us to port our dozens of recipes from -https://www.gatsbyjs.org/docs/recipes/ as well as in the future, entire +https://www.gatsbyjs.com/docs/recipes/ as well as in the future, entire tutorials. -[Read more about Recipes on the launch blog post](https://www.gatsbyjs.org/blog/2020-04-15-announcing-gatsby-recipes/) +[Read more about Recipes on the launch blog post](https://www.gatsbyjs.com/blog/2020-04-15-announcing-gatsby-recipes/) There's an umbrella issue for testing / using Recipes during its incubation stage. Follow the issue for updates! https://github.com/gatsbyjs/gatsby/issues/22991 @@ -285,5 +285,5 @@ a step If you’d like to write a recipe, there are a few great places to get an idea: - Think of a task that took you more time than other tasks in the last Gatsby site you built. Is there a way to automate any part of that task? -- Look at this list of recipes in the Gatsby docs. Many of these can be partially or fully automated through creating a recipe `mdx` file. https://www.gatsbyjs.org/docs/recipes/ +- Look at this list of recipes in the Gatsby docs. Many of these can be partially or fully automated through creating a recipe `mdx` file. https://www.gatsbyjs.com/docs/recipes/ - community members have posted a number of recipes in the [recipes umbrella issue](https://github.com/gatsbyjs/gatsby/issues/22991). You can browse their ideas to find inspiration for new recipes to write. diff --git a/deprecated-packages/gatsby-recipes/recipes/README.md b/deprecated-packages/gatsby-recipes/recipes/README.md index 67792bfed4970..7a026df69355f 100644 --- a/deprecated-packages/gatsby-recipes/recipes/README.md +++ b/deprecated-packages/gatsby-recipes/recipes/README.md @@ -1,6 +1,6 @@ # Gatsby Recipes MDX Source -These are the MDX files for the official Recipes. [Please contribute!](https://www.gatsbyjs.org/contributing/how-to-contribute/) We welcome PRs for new recipes and fixes/improvements to existing recipes. +These are the MDX files for the official Recipes. [Please contribute!](https://www.gatsbyjs.com/contributing/how-to-contribute/) We welcome PRs for new recipes and fixes/improvements to existing recipes. When you add a new recipe, please also add it to the recipes list at https://github.com/gatsbyjs/gatsby/blob/05151c006974b7636b00f0cd608fac89ddaa1c08/packages/gatsby-recipes/src/cli.js#L60 diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-image.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-image.mdx index fe5e3d136f422..fd9cc1ab5b70e 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-image.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-image.mdx @@ -5,7 +5,7 @@ the necessary NPM packages & Gatsby plugins to enable speedy, optimized images with Gatsby Image in your React code. -Based on https://www.gatsbyjs.org/docs/working-with-images-in-markdown/ +Based on https://www.gatsbyjs.com/docs/working-with-images-in-markdown/ This recipe: diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-layout.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-layout.mdx index 01b570ca33838..4ccd134e4848c 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-layout.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-layout.mdx @@ -1,6 +1,6 @@ # Setup gatsby-plugin-layout -This plugin sets up [gatsby-plugin-layout](https://www.gatsbyjs.org/packages/gatsby-plugin-layout/?=gatsby%20layout), which enables adding components that live above the page components and persist across page changes. +This plugin sets up [gatsby-plugin-layout](https://www.gatsbyjs.com/plugins/gatsby-plugin-layout/?=gatsby%20layout), which enables adding components that live above the page components and persist across page changes. This can be helpful for: @@ -15,24 +15,24 @@ This recipe: Installs necessary NPM packages - + --- Installs the Layout plugin in gatsby-config.js - + --- Writes out a sample layout component to get started with. --- Read more about the documentation for Gatsby Layout Component here: -https://www.gatsbyjs.org/packages/gatsby-plugin-layout/ +https://www.gatsbyjs.com/plugins/gatsby-plugin-layout/ diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-react-helmet.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-react-helmet.mdx index 37cdaad375a57..eee1f4b9c9e3d 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-react-helmet.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-plugin-react-helmet.mdx @@ -4,7 +4,7 @@ React Helmet is a reusable React component that manages all of your changes to t Helmet takes plain HTML tags and outputs plain HTML tags. -[gatsby-plugin-helmet](https://www.gatsbyjs.org/packages/gatsby-plugin-react-helmet/?=react%20helmet) makes it easy to use React Helmet inside Gatsby projects as it automatically adds title and meta tags to the HTML during SSR. +[gatsby-plugin-helmet](https://www.gatsbyjs.com/plugins/gatsby-plugin-react-helmet/?=react%20helmet) makes it easy to use React Helmet inside Gatsby projects as it automatically adds title and meta tags to the HTML during SSR. This recipe: @@ -33,7 +33,7 @@ Writes out an `` component which helps ensure pages have the necessary titl --- Read more about Gatsby React Helmet here: -https://www.gatsbyjs.org/packages/gatsby-plugin-react-helmet +https://www.gatsbyjs.com/plugins/gatsby-plugin-react-helmet You can also read about the "SEO" component here: -https://www.gatsbyjs.org/docs/add-seo-component/ +https://www.gatsbyjs.com/docs/add-seo-component/ diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog-core.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog-core.mdx index f300d07202c20..913c19740c920 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog-core.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog-core.mdx @@ -1,6 +1,6 @@ # Gatsby Theme Blog Core Starter Recipe -[Gatsby theme blog core](https://www.gatsbyjs.org/packages/gatsby-theme-blog-core/) is a great theme for adding blog functionality to your site. It's designed to handle sourcing your blog data for you so you can style it however you like. +[Gatsby theme blog core](https://www.gatsbyjs.com/plugins/gatsby-theme-blog-core/) is a great theme for adding blog functionality to your site. It's designed to handle sourcing your blog data for you so you can style it however you like. This recipe: @@ -14,14 +14,20 @@ Installs necessary NPM packages. Installs the `gatsby-theme-blog-core` plugin in `gatsby-config.js` and makes use of the `basePath` configuration so the blog listing appears at `/blog`. - + --- -Adds some posts. +Adds some posts. - - + + --- diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog.mdx index e8bd0233e5167..77707843f8132 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-blog.mdx @@ -1,6 +1,6 @@ # Setup Gatsby Theme Blog -[Gatsby theme blog](https://www.gatsbyjs.org/packages/gatsby-theme-blog/) is a great theme for adding blog functionality to your site. +[Gatsby theme blog](https://www.gatsbyjs.com/plugins/gatsby-theme-blog/) is a great theme for adding blog functionality to your site. This recipe: @@ -15,13 +15,16 @@ Installs necessary NPM packages. Installs the `gatsby-theme-blog` plugin in `gatsby-config.js` and makes use of the `basePath` configuration so the blog listing appears at `/blog`. - + --- Adds a post. - + --- diff --git a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-notes.mdx b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-notes.mdx index c1e77d942c250..160e06dadcec5 100644 --- a/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-notes.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/gatsby-theme-notes.mdx @@ -1,6 +1,6 @@ # Gatsby Theme Notes Starter Recipe -[Gatsby theme notes](https://www.gatsbyjs.org/packages/gatsby-theme-notes) is a great theme for adding learning notes to your site. +[Gatsby theme notes](https://www.gatsbyjs.com/plugins/gatsby-theme-notes) is a great theme for adding learning notes to your site. This recipe: @@ -14,13 +14,16 @@ Installs necessary NPM package. Installs the `gatsby-theme-notes` plugin in `gatsby-config.js`. - + --- Adds a note. - + --- @@ -29,4 +32,3 @@ After installing this recipe, you can use your site for notetaking. When you've finished installing the recipe, run `gatsby develop` and check out `http://localhost:8000/notes` for the list of notes. --- - diff --git a/deprecated-packages/gatsby-recipes/recipes/mdx-images.mdx b/deprecated-packages/gatsby-recipes/recipes/mdx-images.mdx index b631cc6ef69b5..66a6ebea3bd71 100644 --- a/deprecated-packages/gatsby-recipes/recipes/mdx-images.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/mdx-images.mdx @@ -4,7 +4,7 @@ This recipe installs and configures all the necessary NPM packages & Gatsby plugins to enable inline-images in MDX and MD files. -Based on https://www.gatsbyjs.org/docs/working-with-images-in-markdown/ +Based on https://www.gatsbyjs.com/docs/working-with-images-in-markdown/ This recipe: diff --git a/deprecated-packages/gatsby-recipes/recipes/pwa.mdx b/deprecated-packages/gatsby-recipes/recipes/pwa.mdx index f834e879ab6d2..dc2019a79b7be 100644 --- a/deprecated-packages/gatsby-recipes/recipes/pwa.mdx +++ b/deprecated-packages/gatsby-recipes/recipes/pwa.mdx @@ -50,5 +50,5 @@ After running this recipe, your site will be a PWA. Refer to the documentation for the manifest & offline plugins if there are any other edits you'd like to make. -- https://www.gatsbyjs.org/packages/gatsby-plugin-manifest -- https://www.gatsbyjs.org/packages/gatsby-plugin-offline +- https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest +- https://www.gatsbyjs.com/plugins/gatsby-plugin-offline diff --git a/deprecated-packages/gatsby-recipes/src/providers/gatsby/__snapshots__/plugin.test.js.snap b/deprecated-packages/gatsby-recipes/src/providers/gatsby/__snapshots__/plugin.test.js.snap index ec89f1dc620c0..c15fa3faf45a0 100644 --- a/deprecated-packages/gatsby-recipes/src/providers/gatsby/__snapshots__/plugin.test.js.snap +++ b/deprecated-packages/gatsby-recipes/src/providers/gatsby/__snapshots__/plugin.test.js.snap @@ -521,7 +521,7 @@ Object { "currentState": "/** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ @@ -557,7 +557,7 @@ module.exports = { "newState": "/** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ @@ -593,7 +593,7 @@ Object { "currentState": "/** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ @@ -630,7 +630,7 @@ module.exports = { "newState": "/** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ diff --git a/deprecated-packages/gatsby-recipes/src/providers/gatsby/site-metadata.js b/deprecated-packages/gatsby-recipes/src/providers/gatsby/site-metadata.js index 51c72b3fbfa67..a14da88ff6050 100644 --- a/deprecated-packages/gatsby-recipes/src/providers/gatsby/site-metadata.js +++ b/deprecated-packages/gatsby-recipes/src/providers/gatsby/site-metadata.js @@ -65,7 +65,7 @@ const readConfigFile = async root => { src = `/** * Configure your Gatsby site with this file. * - * See: https://www.gatsbyjs.org/docs/gatsby-config/ + * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { diff --git a/docs/contributing/gatsby-style-guide.md b/docs/contributing/gatsby-style-guide.md index 52a6afa925858..f63f22ac53c1a 100644 --- a/docs/contributing/gatsby-style-guide.md +++ b/docs/contributing/gatsby-style-guide.md @@ -32,7 +32,7 @@ Many times, the information that needs to go in your document already exists som Avoid copying and pasting huge chunks of other people's work. Instead, use their work to learn so you can write your own document. If you do quote someone's work verbatim, reference where you got the information. -If the content is already somewhere else on the .org site, feel free to copy and paste without quoting or referencing. +If the content is already somewhere else on the site, feel free to copy and paste without quoting or referencing. Possible sources of great research materials: diff --git a/e2e-tests/contentful/README.md b/e2e-tests/contentful/README.md index 3e8ac870edc7f..7c89bb0360b88 100644 --- a/e2e-tests/contentful/README.md +++ b/e2e-tests/contentful/README.md @@ -2,7 +2,7 @@ The default Gatsby starter. -For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/). +For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.com/docs/building-with-components/). ## Install diff --git a/e2e-tests/development-runtime/README.md b/e2e-tests/development-runtime/README.md index 926aa1e1eb88c..5e7b22d66b81d 100644 --- a/e2e-tests/development-runtime/README.md +++ b/e2e-tests/development-runtime/README.md @@ -9,7 +9,7 @@ Kick off your project with this default boilerplate ([live demo](https://gatsby-starter-default-demo.netlify.app/)). This barebones starter ships with the main Gatsby configuration files you might need. -_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._ +_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.com/docs/gatsby-starters/)._ ## 🚀 Quick start @@ -35,7 +35,7 @@ _Have another more specific idea? You may want to check out our vibrant collecti Your site is now running at `http://localhost:8000`! - \_Note: You'll also see a second link: `http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-5/#introducing-graphiql).\_ + \_Note: You'll also see a second link: `http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby how-to](https://www.gatsbyjs.com/docs/how-to/querying-data/running-queries-with-graphiql/).\_ Open the `my-default-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time! @@ -66,13 +66,13 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje 4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent. -5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser. +5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.com/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser. -6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail). +6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.com/docs/gatsby-config/) for more detail). -7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. +7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.com/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. -8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering. +8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.com/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering. 9. **`LICENSE`**: Gatsby is licensed under the MIT license. @@ -86,11 +86,11 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje ## 🎓 Learning Gatsby -Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start: +Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.com/). Here are some places to start: -- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process. +- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.com/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process. -- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar. +- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.com/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar. ## 💫 Deploy diff --git a/e2e-tests/development-runtime/gatsby-ssr.js b/e2e-tests/development-runtime/gatsby-ssr.js index b17b8fc19d659..01d83255f4f2c 100644 --- a/e2e-tests/development-runtime/gatsby-ssr.js +++ b/e2e-tests/development-runtime/gatsby-ssr.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * - * See: https://www.gatsbyjs.org/docs/ssr-apis/ + * See: https://www.gatsbyjs.com/docs/ssr-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/gatsby-image/README.md b/e2e-tests/gatsby-image/README.md index 3e8ac870edc7f..7c89bb0360b88 100644 --- a/e2e-tests/gatsby-image/README.md +++ b/e2e-tests/gatsby-image/README.md @@ -2,7 +2,7 @@ The default Gatsby starter. -For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/). +For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.com/docs/building-with-components/). ## Install diff --git a/e2e-tests/gatsby-image/gatsby-browser.js b/e2e-tests/gatsby-image/gatsby-browser.js index b1e5c316b7f94..ff807f19ef7cc 100644 --- a/e2e-tests/gatsby-image/gatsby-browser.js +++ b/e2e-tests/gatsby-image/gatsby-browser.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Browser APIs in this file. * - * See: https://www.gatsbyjs.org/docs/browser-apis/ + * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/gatsby-image/gatsby-node.js b/e2e-tests/gatsby-image/gatsby-node.js index 2f4266513eb66..6d4a90e7a0555 100644 --- a/e2e-tests/gatsby-image/gatsby-node.js +++ b/e2e-tests/gatsby-image/gatsby-node.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Node APIs in this file. * - * See: https://www.gatsbyjs.org/docs/node-apis/ + * See: https://www.gatsbyjs.com/docs/node-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/gatsby-image/gatsby-ssr.js b/e2e-tests/gatsby-image/gatsby-ssr.js index b17b8fc19d659..01d83255f4f2c 100644 --- a/e2e-tests/gatsby-image/gatsby-ssr.js +++ b/e2e-tests/gatsby-image/gatsby-ssr.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * - * See: https://www.gatsbyjs.org/docs/ssr-apis/ + * See: https://www.gatsbyjs.com/docs/ssr-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/gatsby-static-image/README.md b/e2e-tests/gatsby-static-image/README.md index 3e8ac870edc7f..7c89bb0360b88 100644 --- a/e2e-tests/gatsby-static-image/README.md +++ b/e2e-tests/gatsby-static-image/README.md @@ -2,7 +2,7 @@ The default Gatsby starter. -For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/). +For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.com/docs/building-with-components/). ## Install diff --git a/e2e-tests/path-prefix/README.md b/e2e-tests/path-prefix/README.md index 3e8ac870edc7f..7c89bb0360b88 100644 --- a/e2e-tests/path-prefix/README.md +++ b/e2e-tests/path-prefix/README.md @@ -2,7 +2,7 @@ The default Gatsby starter. -For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/). +For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.com/docs/building-with-components/). ## Install diff --git a/e2e-tests/path-prefix/gatsby-browser.js b/e2e-tests/path-prefix/gatsby-browser.js index b1e5c316b7f94..ff807f19ef7cc 100644 --- a/e2e-tests/path-prefix/gatsby-browser.js +++ b/e2e-tests/path-prefix/gatsby-browser.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Browser APIs in this file. * - * See: https://www.gatsbyjs.org/docs/browser-apis/ + * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/path-prefix/gatsby-node.js b/e2e-tests/path-prefix/gatsby-node.js index 2f4266513eb66..6d4a90e7a0555 100644 --- a/e2e-tests/path-prefix/gatsby-node.js +++ b/e2e-tests/path-prefix/gatsby-node.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's Node APIs in this file. * - * See: https://www.gatsbyjs.org/docs/node-apis/ + * See: https://www.gatsbyjs.com/docs/node-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/path-prefix/gatsby-ssr.js b/e2e-tests/path-prefix/gatsby-ssr.js index b17b8fc19d659..01d83255f4f2c 100644 --- a/e2e-tests/path-prefix/gatsby-ssr.js +++ b/e2e-tests/path-prefix/gatsby-ssr.js @@ -1,7 +1,7 @@ /** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * - * See: https://www.gatsbyjs.org/docs/ssr-apis/ + * See: https://www.gatsbyjs.com/docs/ssr-apis/ */ // You can delete this file if you're not using it diff --git a/e2e-tests/production-runtime/README.md b/e2e-tests/production-runtime/README.md index 3e8ac870edc7f..7c89bb0360b88 100644 --- a/e2e-tests/production-runtime/README.md +++ b/e2e-tests/production-runtime/README.md @@ -2,7 +2,7 @@ The default Gatsby starter. -For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/). +For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.com/docs/building-with-components/). ## Install diff --git a/examples/no-trailing-slashes/README.md b/examples/no-trailing-slashes/README.md index 0708bfbac5e1f..4adb24701c8b5 100644 --- a/examples/no-trailing-slashes/README.md +++ b/examples/no-trailing-slashes/README.md @@ -1,5 +1,3 @@ # No trailing slashes -https://no-trailing-slashes.gatsbyjs.org - Gatsby example site that shows how to remove trailing slashes from urls. diff --git a/examples/using-asciidoc/README.md b/examples/using-asciidoc/README.md index bc4e81a8f039d..85373dd634db2 100644 --- a/examples/using-asciidoc/README.md +++ b/examples/using-asciidoc/README.md @@ -1,6 +1,4 @@ # Using AsciiDoc -https://using-asciidoc.gatsbyjs.org - Example site that demonstrates how to build a Gatsby site pulling in data from [asciidoc](http://asciidoc.org/)-files. diff --git a/examples/using-gatsby-source-graphql/README.md b/examples/using-gatsby-source-graphql/README.md index 00b514c7871c0..cbc10a0747825 100644 --- a/examples/using-gatsby-source-graphql/README.md +++ b/examples/using-gatsby-source-graphql/README.md @@ -2,7 +2,7 @@ Simple gatsby site that displays blog with data inside GraphCMS. -Built using [gatsby-source-graphql](https://www.gatsbyjs.com/packages/gatsby-source-graphql/). +Built using [gatsby-source-graphql](https://www.gatsbyjs.com/plugins/gatsby-source-graphql/). diff --git a/integration-tests/gatsby-pipeline/src/components/layout.js b/integration-tests/gatsby-pipeline/src/components/layout.js index b18838351684a..04c763861029b 100644 --- a/integration-tests/gatsby-pipeline/src/components/layout.js +++ b/integration-tests/gatsby-pipeline/src/components/layout.js @@ -31,7 +31,7 @@ const Layout = ({ children }) => (
© {new Date().getFullYear()}, Built with {` `} - Gatsby + Gatsby
diff --git a/integration-tests/structured-logging/plugins/structured-plugin-errors/gatsby-node.js b/integration-tests/structured-logging/plugins/structured-plugin-errors/gatsby-node.js index 8edb2b4d76438..a3cc2c3482759 100644 --- a/integration-tests/structured-logging/plugins/structured-plugin-errors/gatsby-node.js +++ b/integration-tests/structured-logging/plugins/structured-plugin-errors/gatsby-node.js @@ -4,7 +4,7 @@ exports.onPreInit = ({ reporter }) => { text: context => `Error text is ${context && context.someProp}`, level: "ERROR", category: "SYSTEM", - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, "12345": { text: context => `Error text is ${context && context.someProp}`, diff --git a/packages/babel-preset-gatsby/README.md b/packages/babel-preset-gatsby/README.md index 093d9d10d6d93..67adc55ffb5a2 100644 --- a/packages/babel-preset-gatsby/README.md +++ b/packages/babel-preset-gatsby/README.md @@ -2,7 +2,7 @@ Gatsby uses the phenomenal project [Babel](https://babeljs.io/) to enable support for writing modern JavaScript — while still supporting older browsers. This package contains the default Babel setup for all Gatsby projects. -For more information on how to customize the Babel configuration of your Gatsby site, check out [our documentation](https://www.gatsbyjs.org/docs/babel/). +For more information on how to customize the Babel configuration of your Gatsby site, check out [our documentation](https://www.gatsbyjs.com/docs/babel/). ## Packages @@ -37,4 +37,4 @@ npm install --dev babel-preset-gatsby `{ [string]: number | string }`, defaults to `{ "browsers": ["last 4 versions", "safari >= 7", "ie >= 9"] }` in production and `{ "browsers": ["last 2 versions", "not ie <= 11", "not android 4.4.3"] }` in development when targeting the browser and `{ "node": 6 }` in production and `{ "node": "current" }` in development when targeting Node.js. -Use this option to configure [custom target browsers](https://www.gatsbyjs.org/docs/babel/). +Use this option to configure [custom target browsers](https://www.gatsbyjs.com/docs/babel/). diff --git a/packages/gatsby-cli/README.md b/packages/gatsby-cli/README.md index 0620689989386..e525787dbb2a7 100644 --- a/packages/gatsby-cli/README.md +++ b/packages/gatsby-cli/README.md @@ -3,11 +3,11 @@ The Gatsby command line interface (CLI). It is used to perform common functionality, such as creating a Gatsby application based on a starter, spinning up a hot-reloading local development server, and more! Lets you create new Gatsby apps using -[Gatsby starters](https://www.gatsbyjs.org/docs/gatsby-starters/). It also lets you run commands on sites. The tool runs code from the `gatsby` package installed locally. +[Gatsby starters](https://www.gatsbyjs.com/docs/gatsby-starters/). It also lets you run commands on sites. The tool runs code from the `gatsby` package installed locally. The Gatsby CLI (`gatsby-cli`) is packaged as an executable that can be used globally. The Gatsby CLI is available via [npm](https://www.npmjs.com/) and is installed globally by running `npm install -g gatsby-cli`. -You can also use the `package.json` script variant of these commands, typically exposed _for you_ with most [starters](https://www.gatsbyjs.org/docs/starters/). For example, if we want to make the [`gatsby develop`](#develop) command available in our application, we would open up `package.json` and add a script like so: +You can also use the `package.json` script variant of these commands, typically exposed _for you_ with most [starters](https://www.gatsbyjs.com/docs/starters/). For example, if we want to make the [`gatsby develop`](#develop) command available in our application, we would open up `package.json` and add a script like so: ```json:title=package.json { @@ -39,7 +39,7 @@ gatsby new [ []] | Argument | Description | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | site-name | Your Gatsby site name, which is also used to create the project directory. | -| starter-url | A Gatsby starter URL or local file path. Defaults to [gatsby-starter-default](https://github.com/gatsbyjs/gatsby-starter-default); see the [Gatsby starters](https://www.gatsbyjs.org/docs/gatsby-starters/) docs for more information. | +| starter-url | A Gatsby starter URL or local file path. Defaults to [gatsby-starter-default](https://github.com/gatsbyjs/gatsby-starter-default); see the [Gatsby starters](https://www.gatsbyjs.com/docs/gatsby-starters/) docs for more information. | > Note: The `site-name` should only consist of letters and numbers. If you specify a `.`, `./` or a `` in the name, `gatsby new` will throw an error. @@ -51,7 +51,7 @@ gatsby new [ []] gatsby new my-awesome-site ``` -- Create a Gatsby site named `my-awesome-blog-site`, using [gatsby-starter-blog](https://www.gatsbyjs.org/starters/gatsbyjs/gatsby-starter-blog/): +- Create a Gatsby site named `my-awesome-blog-site`, using [gatsby-starter-blog](https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-blog/): ```shell gatsby new my-awesome-blog-site https://github.com/gatsbyjs/gatsby-starter-blog @@ -69,7 +69,7 @@ gatsby new (Use a different starter) ``` -See the [Gatsby starters docs](https://www.gatsbyjs.org/docs/gatsby-starters/) for more details. +See the [Gatsby starters docs](https://www.gatsbyjs.com/docs/gatsby-starters/) for more details. ### `develop` @@ -85,7 +85,7 @@ development server. | `-o`, `--open` | Open the site in your (default) browser for you | | | `-S`, `--https` | Use HTTPS | | -Follow the [Local HTTPS guide](https://www.gatsbyjs.org/docs/local-https/) +Follow the [Local HTTPS guide](https://www.gatsbyjs.com/docs/local-https/) to find out how you can set up an HTTPS development server using Gatsby. ### `build` @@ -98,8 +98,8 @@ At the root of a Gatsby app run `gatsby build` to do a production build of a sit | :--------------------------: | ------------------------------------------------------------------------------------------------------------------ | :---------------------------: | | `--prefix-paths` | Build site with link paths prefixed (set pathPrefix in your config) | `env.PREFIX_PATHS` or `false` | | `--no-uglify` | Build site without uglifying JS bundles (for debugging) | `false` | -| `--profile` | Build site with react profiling. See https://www.gatsbyjs.org/docs/profiling-site-performance-with-react-profiler/ | `false` | -| `--open-tracing-config-file` | Tracer configuration file (OpenTracing compatible). See https://www.gatsbyjs.org/docs/performance-tracing/ | | +| `--profile` | Build site with react profiling. See https://www.gatsbyjs.com/docs/profiling-site-performance-with-react-profiler/ | `false` | +| `--open-tracing-config-file` | Tracer configuration file (OpenTracing compatible). See https://www.gatsbyjs.com/docs/performance-tracing/ | | | `--no-color`, `--no-colors` | Disables colored terminal output | `false` | For prefixing paths, most will want to use the CLI flag (`gatsby build --prefix-paths`). For environments where you can't pass the --prefix-paths flag (ie Gatsby Cloud), the environment variable `PREFIX_PATHS` can be set to `true` to provide another way to prefix paths. diff --git a/packages/gatsby-cli/scripts/postinstall.js b/packages/gatsby-cli/scripts/postinstall.js index f317707dc80c1..548418394d20b 100644 --- a/packages/gatsby-cli/scripts/postinstall.js +++ b/packages/gatsby-cli/scripts/postinstall.js @@ -3,7 +3,7 @@ const chalk = require(`chalk`); const showSuccessMessage = () => { console.log(chalk.green(`Success!\n`)); console.log(chalk.cyan(`Welcome to the Gatsby CLI! Please visit `) + - chalk.underline(`https://www.gatsbyjs.org/docs/gatsby-cli/`) + + chalk.underline(`https://www.gatsbyjs.com/docs/gatsby-cli/`) + chalk.cyan(` for more information.\n`)); } diff --git a/packages/gatsby-cli/src/reporter/__tests__/__snapshots__/index.ts.snap b/packages/gatsby-cli/src/reporter/__tests__/__snapshots__/index.ts.snap index 8859a8ef5cdb8..67e09c8571889 100644 --- a/packages/gatsby-cli/src/reporter/__tests__/__snapshots__/index.ts.snap +++ b/packages/gatsby-cli/src/reporter/__tests__/__snapshots__/index.ts.snap @@ -140,7 +140,7 @@ Object { "context": Object { "someProp": "test123", }, - "docsUrl": "https://www.gatsbyjs.org/docs/gatsby-cli/#new", + "docsUrl": "https://www.gatsbyjs.com/docs/gatsby-cli/#new", "level": "ERROR", "stack": Array [], "text": "Error text is test123", @@ -153,7 +153,7 @@ Object { "context": Object { "someProp": "test123", }, - "docsUrl": "https://www.gatsbyjs.org/docs/gatsby-cli/#new", + "docsUrl": "https://www.gatsbyjs.com/docs/gatsby-cli/#new", "level": "ERROR", "pluginName": "gatsby-plugin-foo-bar", "stack": Array [], diff --git a/packages/gatsby-cli/src/reporter/__tests__/index.ts b/packages/gatsby-cli/src/reporter/__tests__/index.ts index 85d51d6aac530..0d806d60c4e92 100644 --- a/packages/gatsby-cli/src/reporter/__tests__/index.ts +++ b/packages/gatsby-cli/src/reporter/__tests__/index.ts @@ -111,7 +111,7 @@ describe(`report.error`, () => { "1337": { text: (context): string => `Error text is ${context.someProp}`, level: Level.ERROR, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, }) @@ -123,7 +123,7 @@ describe(`report.error`, () => { "1337": { text: (context): string => `Error text is ${context.someProp}`, level: Level.ERROR, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, }) @@ -146,7 +146,7 @@ describe(`report.error`, () => { "gatsby-plugin-foo-bar_1337": { text: (context): string => `Error text is ${context.someProp}`, level: Level.ERROR, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, }) diff --git a/packages/gatsby-cli/src/structured-errors/__tests__/construct-error.ts b/packages/gatsby-cli/src/structured-errors/__tests__/construct-error.ts index 5285c7b8843ca..365493ba70947 100644 --- a/packages/gatsby-cli/src/structured-errors/__tests__/construct-error.ts +++ b/packages/gatsby-cli/src/structured-errors/__tests__/construct-error.ts @@ -47,13 +47,13 @@ test(`it constructs an error from the supplied errorMap`, () => { "1337": { text: (context): string => `Error text is ${context.someProp} `, level: Level.ERROR, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, } ) expect(error.code).toBe(`1337`) - expect(error.docsUrl).toBe(`https://www.gatsbyjs.org/docs/gatsby-cli/#new`) + expect(error.docsUrl).toBe(`https://www.gatsbyjs.com/docs/gatsby-cli/#new`) }) test(`it does not overwrite internal error map`, () => { @@ -63,7 +63,7 @@ test(`it does not overwrite internal error map`, () => { "95312": { text: (context): string => `Error text is ${context.someProp} `, level: Level.ERROR, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, } ) diff --git a/packages/gatsby-codemods/README.md b/packages/gatsby-codemods/README.md index 5a26ff44ba524..533b633265544 100644 --- a/packages/gatsby-codemods/README.md +++ b/packages/gatsby-codemods/README.md @@ -55,7 +55,7 @@ Structure of a jscodeshift call: Add a `graphql` import to modules that use the `graphql` tag function without an import. This was supported in Gatsby v1 and deprecated for Gatsby v2. -See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.org/docs/migrating-from-v1-to-v2/#import-graphql-from-gatsby). +See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.com/docs/migrating-from-v1-to-v2/#import-graphql-from-gatsby). ```shell jscodeshift -t node_modules/gatsby-codemods/dist/transforms/global-graphql-calls.js @@ -86,7 +86,7 @@ export const query = graphql` Import `Link` from `gatsby` instead of `gatsby-link` and remove the `gatsby-link` import. -See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.org/docs/migrating-from-v1-to-v2/#import-link-from-gatsby). +See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.com/docs/migrating-from-v1-to-v2/#import-link-from-gatsby). ```shell jscodeshift -t node_modules/gatsby-codemods/dist/transforms/import-link.js @@ -107,7 +107,7 @@ export default props => ( Change the deprecated `navigateTo` method from `gatsby-link` to `navigate` from the `gatsby` module. -See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.org/docs/migrating-from-v1-to-v2/#change-navigateto-to-navigate). +See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.com/docs/migrating-from-v1-to-v2/#change-navigateto-to-navigate). ```shell jscodeshift -t node_modules/gatsby-codemods/dist/transforms/navigate-calls.js @@ -134,7 +134,7 @@ Rename `boundActionCreators` to `actions`. `boundActionCreators` has been deprec Note: Run this codemod only against files that use `boundActionCreators` instead of running it against a whole directory. -See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.org/docs/migrating-from-v1-to-v2/#rename-boundactioncreators-to-actions). +See the [Gatsby v2 migration guide for details on when to use this](https://gatsbyjs.com/docs/migrating-from-v1-to-v2/#rename-boundactioncreators-to-actions). ```shell jscodeshift -t node_modules/gatsby-codemods/dist/transforms/rename-bound-action-creators.js diff --git a/packages/gatsby-design-tokens/README.md b/packages/gatsby-design-tokens/README.md index 49dc8813fa5eb..8b859b86f19a1 100644 --- a/packages/gatsby-design-tokens/README.md +++ b/packages/gatsby-design-tokens/README.md @@ -100,8 +100,6 @@ import { - `rem` values are based on a `font-size` of `16px` for the root element. - All tokens work in the context of [Theme UI's Theme Scales](https://theme-ui.com/theme-spec/#theme-scales), with the exception of `breakpoints`: Use `breakpointsArray` for `theme-ui` and its [responsive styles](https://theme-ui.com/getting-started/#responsive-styles) feature. -Find a work-in-progress list of design tokens in the design tokens documentation at [gatsbyjs.org/guidelines/design-tokens](https://www.gatsbyjs.org/guidelines/design-tokens/). - ## `theme-ui` themes 🎨 ### `theme` @@ -136,7 +134,7 @@ import { ### `theme-gatsbyjs-org` -The theme currently in use on gatsbyjs.org via `gatsby-plugin-theme-ui`: +The theme currently in use on gatsbyjs.com via `gatsby-plugin-theme-ui`: - Extends the base theme's `colors` with a couple .org-specific things, and provides a `dark` mode (ref. https://theme-ui.com/color-modes). - Adds .org-specific `sizes` and `zIndices`. @@ -171,11 +169,11 @@ import { ## Local development -The Gatsby monorepo, which hosts this package, also contains the source for gatsbyjs.org, aka `www` — where `theme-gatsbyjs-org` is in use. Using a little helper called `gatsby-dev` we can develop and test both of them locally. +The Gatsby monorepo, which hosts this package, also contains the source for gatsbyjs.com, aka `www` — where `theme-gatsbyjs-org` is in use. Using a little helper called `gatsby-dev` we can develop and test both of them locally. ### 1. Clone the `gatsby` monorepo and set it up for local dev -Follow the [official guide](https://www.gatsbyjs.org/contributing/setting-up-your-local-dev-environment/#fork-clone-and-branch-the-repository) to clone/fork and set up the Gatsby monorepo. This will roughly look like this: +Follow the [official guide](https://www.gatsbyjs.com/contributing/setting-up-your-local-dev-environment/#fork-clone-and-branch-the-repository) to clone/fork and set up the Gatsby monorepo. This will roughly look like this: ```shell # clone the repo/your fork @@ -194,7 +192,7 @@ git checkout -b topics/new-feature-name #### Install `gatsby-dev-cli` to ease testing your local changes to `packages` -Assuming `gatsby-cli` [is installed](https://www.gatsbyjs.org/contributing/setting-up-your-local-dev-environment/#gatsby-functional-changes), let's install [`gatsby-dev-cli`](<(https://www.npmjs.com/package/gatsby-dev-cli)>) with +Assuming `gatsby-cli` [is installed](https://www.gatsbyjs.com/contributing/setting-up-your-local-dev-environment/#gatsby-functional-changes), let's install [`gatsby-dev-cli`](<(https://www.npmjs.com/package/gatsby-dev-cli)>) with ```shell yarn global add gatsby-dev-cli @@ -218,7 +216,7 @@ Follow the [README instructions](https://github.com/gatsbyjs/gatsby/blob/master/ > […] skip downloading screenshots and generating responsive images for all screenshots and replace them with a placeholder image -Run `yarn develop`, which thanks to the previous step shouldn't take ~40 minutes but way less. Hopefully you should be able to browse a local version of gatsbyjs.org after this. Let's leave `yarn develop` running! +Run `yarn develop`, which thanks to the previous step shouldn't take ~40 minutes but way less. Hopefully you should be able to browse a local version of gatsbyjs.com after this. Let's leave `yarn develop` running! ### 3. Rebuild `gatsby-design-tokens` when it changes, and use `gatsby-dev` to copy the changed-and-compiled package over to `www/node_modules` diff --git a/packages/gatsby-design-tokens/src/theme-gatsbyjs-org.js b/packages/gatsby-design-tokens/src/theme-gatsbyjs-org.js index eabb203d926f5..61fda3bb20e42 100644 --- a/packages/gatsby-design-tokens/src/theme-gatsbyjs-org.js +++ b/packages/gatsby-design-tokens/src/theme-gatsbyjs-org.js @@ -18,7 +18,7 @@ const shadowDarkFlares = `0,0,0` // provides a "dark" mode along the initial color mode "light" const c = { ...colorsTokens, - // gatsbyjs.org specific stuff + // gatsbyjs.com specific stuff banner: colorsTokens.purple[70], // moved `text.placeholder` to `input.placeholder` // ref. e.g. https://github.com/system-ui/theme-ui/blob/702c43e804046a94389e7a12a8bba4c4f436b14e/packages/presets/src/tailwind.js#L6 diff --git a/packages/gatsby-dev-cli/README.md b/packages/gatsby-dev-cli/README.md index 375f077111e59..8626194e28139 100644 --- a/packages/gatsby-dev-cli/README.md +++ b/packages/gatsby-dev-cli/README.md @@ -48,7 +48,7 @@ git checkout package.json; npm install --force **[Demo Video](https://www.youtube.com/watch?v=D0SwX1MSuas)** More detailed instructions for setting up your Gatsby development environment can -be found [here](https://www.gatsbyjs.org/contributing/how-to-contribute/). +be found [here](https://www.gatsbyjs.com/contributing/how-to-contribute/). ### Other commands diff --git a/packages/gatsby-link/README.md b/packages/gatsby-link/README.md index e898fb165ff18..7e887d606a311 100644 --- a/packages/gatsby-link/README.md +++ b/packages/gatsby-link/README.md @@ -2,4 +2,4 @@ All components and utility functions from this package are now exported from [`gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby) package. You should not import anything from this package directly. -The [API reference](https://www.gatsbyjs.org/docs/gatsby-link/) has more documentation. +The [API reference](https://www.gatsbyjs.com/docs/gatsby-link/) has more documentation. diff --git a/packages/gatsby-plugin-catch-links/README.md b/packages/gatsby-plugin-catch-links/README.md index c047830b2d1b6..b8806eacdc6b7 100644 --- a/packages/gatsby-plugin-catch-links/README.md +++ b/packages/gatsby-plugin-catch-links/README.md @@ -1,6 +1,6 @@ # gatsby-plugin-catch-links -This plugin intercepts all local links that have not been created in React using [`gatsby-link`](https://gatsbyjs.org/docs/gatsby-link), and replaces their behavior with that of the `gatsby-link` [`navigate`](https://gatsbyjs.org/docs/gatsby-link/#how-to-use-the-navigate-helper-function). This avoids the browser having to refresh the whole page when navigating between local pages, preserving the Single Page Application (SPA) feel. +This plugin intercepts all local links that have not been created in React using [`gatsby-link`](https://gatsbyjs.com/docs/gatsby-link), and replaces their behavior with that of the `gatsby-link` [`navigate`](https://gatsbyjs.com/docs/gatsby-link/#how-to-use-the-navigate-helper-function). This avoids the browser having to refresh the whole page when navigating between local pages, preserving the Single Page Application (SPA) feel. Example use cases: diff --git a/packages/gatsby-plugin-feed/README.md b/packages/gatsby-plugin-feed/README.md index fdaaeb1789175..00179ab1a4e28 100644 --- a/packages/gatsby-plugin-feed/README.md +++ b/packages/gatsby-plugin-feed/README.md @@ -84,7 +84,7 @@ Each feed must include `output`, `query`, `title`, and `serialize`. You'll need All additional options are passed through to the [`rss`][rss] utility. For more info on those additional options, [explore the `itemOptions` section of the `rss` package](https://www.npmjs.com/package/rss#itemoptions). -Check out an example of [how you could implement](https://www.gatsbyjs.org/docs/adding-an-rss-feed/) to your own site, with a custom `serialize` function, and additional functionality. +Check out an example of [how you could implement](https://www.gatsbyjs.com/docs/adding-an-rss-feed/) to your own site, with a custom `serialize` function, and additional functionality. _**Note**: This plugin only generates the `xml` file(s) when run in `production` mode! To test your feed, run: `gatsby build && gatsby serve`._ diff --git a/packages/gatsby-plugin-gatsby-cloud/README.md b/packages/gatsby-plugin-gatsby-cloud/README.md index 43cb1dd28cab0..46f94aaeae2b3 100644 --- a/packages/gatsby-plugin-gatsby-cloud/README.md +++ b/packages/gatsby-plugin-gatsby-cloud/README.md @@ -95,13 +95,13 @@ have to add to every path. To make this easier, the plugin provides the ### Redirects -You can create redirects using the [`createRedirect`](https://www.gatsbyjs.org/docs/actions/#createRedirect) action. +You can create redirects using the [`createRedirect`](https://www.gatsbyjs.com/docs/actions/#createRedirect) action. In addition to the options provided by the Gatsby API, you can pass these options specific to this plugin: | Attribute | Description | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `statusCode` | Overrides the HTTP status code which is set to `302` by default or `301` when [`isPermanent`](https://www.gatsbyjs.org/docs/actions/#createRedirect) is `true`. You can set one here. For example, `200` for rewrites, or `404` for a custom error page. | +| `statusCode` | Overrides the HTTP status code which is set to `302` by default or `301` when [`isPermanent`](https://www.gatsbyjs.com/docs/actions/#createRedirect) is `true`. You can set one here. For example, `200` for rewrites, or `404` for a custom error page. | An example: @@ -119,7 +119,7 @@ createRedirect({ }) ``` -Redirect rules are automatically added for [client only paths](https://www.gatsbyjs.org/docs/client-only-routes-and-user-authentication). The plugin uses the [matchPath](https://www.gatsbyjs.org/docs/gatsby-internals-terminology/#matchpath) syntax to match all possible requests in the range of your client-side routes and serves the HTML file for the client-side route. Without it, only the exact route of the client-side route works. +Redirect rules are automatically added for [client only paths](https://www.gatsbyjs.com/docs/client-only-routes-and-user-authentication). The plugin uses the [matchPath](https://www.gatsbyjs.com/docs/gatsby-internals-terminology/#matchpath) syntax to match all possible requests in the range of your client-side routes and serves the HTML file for the client-side route. Without it, only the exact route of the client-side route works. If those rules are conflicting with custom rules or if you want to have more control over them you can disable them in [configuration](#configuration) by setting `generateMatchPathRewrites` to `false`. diff --git a/packages/gatsby-plugin-google-analytics/README.md b/packages/gatsby-plugin-google-analytics/README.md index 00c402ff1069a..ea72dbf97d3d2 100644 --- a/packages/gatsby-plugin-google-analytics/README.md +++ b/packages/gatsby-plugin-google-analytics/README.md @@ -121,7 +121,7 @@ If you need to exclude any path from the tracking system, you can add it (one or ### `pageTransitionDelay` -If your site uses any custom transitions on route update (e.g. [`gatsby-plugin-transition-link`](https://www.gatsbyjs.org/blog/2018-12-04-per-link-gatsby-page-transitions-with-transitionlink/)), then you can delay processing the page view event until the new page is mounted. +If your site uses any custom transitions on route update (e.g. [`gatsby-plugin-transition-link`](https://www.gatsbyjs.com/blog/2018-12-04-per-link-gatsby-page-transitions-with-transitionlink/)), then you can delay processing the page view event until the new page is mounted. ### `optimizeId` diff --git a/packages/gatsby-plugin-google-gtag/README.md b/packages/gatsby-plugin-google-gtag/README.md index 0bf7dcad71e88..6cd023189ccfd 100644 --- a/packages/gatsby-plugin-google-gtag/README.md +++ b/packages/gatsby-plugin-google-gtag/README.md @@ -4,7 +4,7 @@ Easily add Google Global Site Tag to your Gatsby site. > The global site tag (gtag.js) is a JavaScript tagging framework and API that allows you to send event data to Google Analytics, Google Ads, Campaign Manager, Display & Video 360, and Search Ads 360. -Global site tag (gtag.js) is meant to combine multiple Google tagging systems and can replace older ones such as [analytics.js](https://developers.google.com/analytics/devguides/collection/analyticsjs/) ([gatsby-plugin-google-analytics](https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/)). +Global site tag (gtag.js) is meant to combine multiple Google tagging systems and can replace older ones such as [analytics.js](https://developers.google.com/analytics/devguides/collection/analyticsjs/) ([gatsby-plugin-google-analytics](https://www.gatsbyjs.com/plugins/gatsby-plugin-google-analytics/)). For more general information on gtag you can read Google's official documentation on the subject: https://developers.google.com/gtagjs/. @@ -89,7 +89,7 @@ import { OutboundLink } from "gatsby-plugin-google-gtag" export default () => (
- + Visit the Google Global Site Tag plugin page!
diff --git a/packages/gatsby-plugin-layout/README.md b/packages/gatsby-plugin-layout/README.md index 5e0cfc647fab4..83b564f95f503 100644 --- a/packages/gatsby-plugin-layout/README.md +++ b/packages/gatsby-plugin-layout/README.md @@ -50,7 +50,7 @@ Once the plugin is added, you don't need to manually wrap your pages with the La There are a few scenarios where it makes sense to reimplement the V1 layout handling: -1. You have a large or complex V1 site and [refactoring to the new layout component](https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/#remove-or-refactor-layout-components) is not feasible +1. You have a large or complex V1 site and [refactoring to the new layout component](https://www.gatsbyjs.com/docs/migrating-from-v1-to-v2/#remove-or-refactor-layout-components) is not feasible 2. Your site uses page transitions or other transitions that break if the layout component is unmounted and remounted when routes change 3. Your site attaches global state in the layout that doesn't persist if the component is unmounted and remounted @@ -82,7 +82,7 @@ In version 2, the layout component is no longer special, and it's included in ev ``` -This can make it complicated to support transitions or state without using the [`wrapPageElement` browser API](https://gatsbyjs.org/docs/browser-apis/#wrapPageElement) (and the [SSR equivalent](https://gatsbyjs.org/docs/ssr-apis/#wrapPageElement)). This plugin implements those APIs for you, which reimplements the behavior of Gatsby V1. +This can make it complicated to support transitions or state without using the [`wrapPageElement` browser API](https://gatsbyjs.com/docs/browser-apis/#wrapPageElement) (and the [SSR equivalent](https://gatsbyjs.com/docs/ssr-apis/#wrapPageElement)). This plugin implements those APIs for you, which reimplements the behavior of Gatsby V1. ## Troubleshooting diff --git a/packages/gatsby-plugin-mdx/README.md b/packages/gatsby-plugin-mdx/README.md index feefe00473baa..62388d19c9b4b 100644 --- a/packages/gatsby-plugin-mdx/README.md +++ b/packages/gatsby-plugin-mdx/README.md @@ -281,7 +281,7 @@ _**Note:** You should rerun your Gatsby development environment to update import If you want to allow usage of a component from anywhere (often referred to as a shortcode), you can pass it to the -[MDXProvider](https://www.gatsbyjs.org/docs/mdx/customizing-components/). +[MDXProvider](https://www.gatsbyjs.com/docs/mdx/customizing-components/). ```js // src/components/layout.js @@ -315,14 +315,14 @@ Here's a YouTube embed #### Gatsby remark plugins This config option is used for compatibility with a set of plugins many people -[use with remark](https://www.gatsbyjs.org/plugins/?=gatsby-remark-) that require +[use with remark](https://www.gatsbyjs.com/plugins/?=gatsby-remark-) that require the gatsby environment to function properly. In some cases, like -[gatsby-remark-prismjs](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/?=gatsby-remark-), +[gatsby-remark-prismjs](https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/?=gatsby-remark-), it makes more sense to use a library like [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) to render codeblocks using a [React component](/api-reference/mdx-provider). In other cases, like -[gatsby-remark-images](https://www.gatsbyjs.org/packages/gatsby-remark-images/?=gatsby-remark-), +[gatsby-remark-images](https://www.gatsbyjs.com/plugins/gatsby-remark-images/?=gatsby-remark-), the interaction with the Gatsby APIs is well deserved because the images can be optimized by Gatsby and you should continue using it. diff --git a/packages/gatsby-plugin-netlify-cms/README.md b/packages/gatsby-plugin-netlify-cms/README.md index 2fa87134c813a..d2cccc2cb12d1 100644 --- a/packages/gatsby-plugin-netlify-cms/README.md +++ b/packages/gatsby-plugin-netlify-cms/README.md @@ -39,7 +39,7 @@ file](https://www.netlifycms.org/docs/add-to-your-site/#configuration) in Netlify CMS can be configured via the plugin options below. You can learn about how to pass options to plugins in the [Gatsby -docs](https://www.gatsbyjs.org/docs/plugins/#how-to-use-gatsby-plugins). +docs](https://www.gatsbyjs.com/docs/plugins/#how-to-use-gatsby-plugins). ### `modulePath` @@ -195,7 +195,7 @@ Function to customize webpack configuration. Function parameters: - config: webpack configuration for NetlifyCMS -- destructured object from onCreateWebpackConfig { store, stage, pathPrefix, getConfig, rules, loaders, plugins} as seen in https://www.gatsbyjs.org/docs/node-apis/#onCreateWebpackConfig +- destructured object from onCreateWebpackConfig { store, stage, pathPrefix, getConfig, rules, loaders, plugins} as seen in https://www.gatsbyjs.com/docs/node-apis/#onCreateWebpackConfig ```javascript plugins: [ diff --git a/packages/gatsby-plugin-offline/src/__tests__/fixtures/public/index.html b/packages/gatsby-plugin-offline/src/__tests__/fixtures/public/index.html index b2b53a8652436..53b9025bf0c93 100644 --- a/packages/gatsby-plugin-offline/src/__tests__/fixtures/public/index.html +++ b/packages/gatsby-plugin-offline/src/__tests__/fixtures/public/index.html @@ -60,11 +60,11 @@ - - + + - + diff --git a/packages/gatsby-plugin-offline/src/__tests__/gatsby-browser.test.js b/packages/gatsby-plugin-offline/src/__tests__/gatsby-browser.test.js index 0bbfe7d0b5e87..51a182d1e6f5c 100644 --- a/packages/gatsby-plugin-offline/src/__tests__/gatsby-browser.test.js +++ b/packages/gatsby-plugin-offline/src/__tests__/gatsby-browser.test.js @@ -15,9 +15,9 @@ it(`does not add prefetch for preconnect/prefetch/prerender`, () => { } // Should not be prefetched - addHeadElement(`link`, { rel: `preconnect`, href: `https://gatsbyjs.org` }) - addHeadElement(`link`, { rel: `prefetch`, href: `https://gatsbyjs.org` }) - addHeadElement(`link`, { rel: `prerender`, href: `https://gatsbyjs.org` }) + addHeadElement(`link`, { rel: `preconnect`, href: `https://gatsbyjs.com` }) + addHeadElement(`link`, { rel: `prefetch`, href: `https://gatsbyjs.com` }) + addHeadElement(`link`, { rel: `prerender`, href: `https://gatsbyjs.com` }) addHeadElement(`script`, { src: `https://gats.by/script.js` }) addHeadElement(`style`, { "data-href": `https://gats.by/lazy.css` }) addHeadElement(`link`, { diff --git a/packages/gatsby-plugin-page-creator/src/gatsby-node.ts b/packages/gatsby-plugin-page-creator/src/gatsby-node.ts index d732e1536d695..35795ca580438 100644 --- a/packages/gatsby-plugin-page-creator/src/gatsby-node.ts +++ b/packages/gatsby-plugin-page-creator/src/gatsby-node.ts @@ -81,7 +81,7 @@ export async function createPagesStatefully( context: { sourceMessage: `"path" is a required option for gatsby-plugin-page-creator -See docs here - https://www.gatsbyjs.org/plugins/gatsby-plugin-page-creator/`, +See docs here - https://www.gatsbyjs.com/plugins/gatsby-plugin-page-creator/`, }, }) } diff --git a/packages/gatsby-plugin-react-css-modules/README.md b/packages/gatsby-plugin-react-css-modules/README.md index cc86d09b6ebde..0a0769b7afb65 100644 --- a/packages/gatsby-plugin-react-css-modules/README.md +++ b/packages/gatsby-plugin-react-css-modules/README.md @@ -39,4 +39,4 @@ plugins: [ Files must be named using the pattern `filename.module.css` for Gatsby to treat them as CSS modules. You can change this behavior using a custom webpack config -https://www.gatsbyjs.org/docs/add-custom-webpack-config/ +https://www.gatsbyjs.com/docs/add-custom-webpack-config/ diff --git a/packages/gatsby-plugin-typescript/README.md b/packages/gatsby-plugin-typescript/README.md index 852d98762d657..06406d3bbfc22 100644 --- a/packages/gatsby-plugin-typescript/README.md +++ b/packages/gatsby-plugin-typescript/README.md @@ -58,7 +58,7 @@ compiler is not involved, the following applies: > and import x, {y} from "z". > > Does not support baseUrl. -> Workaround: use [gatsby-plugin-root-import](https://www.gatsbyjs.com/packages/gatsby-plugin-root-import/) +> Workaround: use [gatsby-plugin-root-import](https://www.gatsbyjs.com/plugins/gatsby-plugin-root-import/) > and configure it to point the baseUrl value (also set baseUrl option in tsconfig.json file). https://babeljs.io/docs/en/babel-plugin-transform-typescript.html diff --git a/packages/gatsby-plugin-typography/README.md b/packages/gatsby-plugin-typography/README.md index e3a0b0c9edc67..bb3fcfe448258 100644 --- a/packages/gatsby-plugin-typography/README.md +++ b/packages/gatsby-plugin-typography/README.md @@ -2,9 +2,6 @@ A Gatsby plugin for utilizing the [Typography](https://kyleamathews.github.io/typography.js/) library with minimal configuration. -See it in action in the [Tutorial](https://www.gatsbyjs.org/tutorial/part-3/) -([source](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typography)) - ## Install `npm install gatsby-plugin-typography react-typography typography` diff --git a/packages/gatsby-remark-copy-linked-files/README.md b/packages/gatsby-remark-copy-linked-files/README.md index e84328f7431bb..5f18d3d3cad30 100644 --- a/packages/gatsby-remark-copy-linked-files/README.md +++ b/packages/gatsby-remark-copy-linked-files/README.md @@ -30,7 +30,7 @@ The `my-awesome-pdf.pdf` file will be copied to the root directory (i.e., `publi **Default settings:** -Add `gatsby-remark-copy-linked-files` plugin as a plugin to [`gatsby-transformer-remark`](https://www.gatsbyjs.org/packages/gatsby-transformer-remark/): +Add `gatsby-remark-copy-linked-files` plugin as a plugin to [`gatsby-transformer-remark`](https://www.gatsbyjs.com/plugins/gatsby-transformer-remark/): ```javascript // In your gatsby-config.js diff --git a/packages/gatsby-remark-custom-blocks/README.md b/packages/gatsby-remark-custom-blocks/README.md index c987d450333e8..3e7d1e520f156 100644 --- a/packages/gatsby-remark-custom-blocks/README.md +++ b/packages/gatsby-remark-custom-blocks/README.md @@ -11,7 +11,7 @@ Adds custom blocks to `MarkdownRemark` using [remark-custom-blocks](https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks). -Unlike in [gatsby-remark-component](https://www.gatsbyjs.org/packages/gatsby-remark-component/) where you can only use HTML within the custom component tag, custom blocks allow you to use markdown within the block. +Unlike in [gatsby-remark-component](https://www.gatsbyjs.com/plugins/gatsby-remark-component/) where you can only use HTML within the custom component tag, custom blocks allow you to use markdown within the block. ## Install diff --git a/packages/gatsby-remark-embed-snippet/README.md b/packages/gatsby-remark-embed-snippet/README.md index 248f9c7ff23b7..00605410070ae 100644 --- a/packages/gatsby-remark-embed-snippet/README.md +++ b/packages/gatsby-remark-embed-snippet/README.md @@ -4,7 +4,7 @@ Embeds the contents of specified files as code snippets. ## Installation -**Note**: This plugin depends on [gatsby-remark-prismjs](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/) and [gatsby-transformer-remark](https://www.gatsbyjs.org/packages/gatsby-transformer-remark/) plugins +**Note**: This plugin depends on [gatsby-remark-prismjs](https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/) and [gatsby-transformer-remark](https://www.gatsbyjs.com/plugins/gatsby-transformer-remark/) plugins ```shell npm install gatsby-remark-embed-snippet gatsby-remark-prismjs gatsby-transformer-remark prismjs @@ -14,7 +14,7 @@ npm install gatsby-remark-embed-snippet gatsby-remark-prismjs gatsby-transformer > **Important**: _You must add `gatsby-remark-embed-snippet` before `gatsby-remark-prismjs` in your plugins array!_ > Otherwise, this plugin will not work because the code snippet files first need to be inlined before they can be transformed into code blocks. -> For more information, see [gatsby-remark-prismjs](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/). +> For more information, see [gatsby-remark-prismjs](https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/). To use `gatsby-remark-embed-snippet` plugin: diff --git a/packages/gatsby-remark-images/README.md b/packages/gatsby-remark-images/README.md index 4beafdb23ad1f..f34c9a50de3c0 100644 --- a/packages/gatsby-remark-images/README.md +++ b/packages/gatsby-remark-images/README.md @@ -96,7 +96,7 @@ This plugin will support the following formats: - JPEG - PNG -Since [Sharp][5] is used for image processing, this plugin will not support GIFs or SVGs. If you would like to render these file types with the image markdown syntax, use the [`gatsby-remark-copy-linked-files`](https://www.gatsbyjs.org/packages/gatsby-remark-copy-linked-files/) plugin. Do note with this it will load in the images, but won't use the features of [Sharp][5] such as the elastic container or the blur-up enhancements. +Since [Sharp][5] is used for image processing, this plugin will not support GIFs or SVGs. If you would like to render these file types with the image markdown syntax, use the [`gatsby-remark-copy-linked-files`](https://www.gatsbyjs.com/plugins/gatsby-remark-copy-linked-files/) plugin. Do note with this it will load in the images, but won't use the features of [Sharp][5] such as the elastic container or the blur-up enhancements. [1]: https://jmperezperez.com/medium-image-progressive-loading-placeholder/ [2]: https://code.facebook.com/posts/991252547593574/the-technology-behind-preview-photos/ diff --git a/packages/gatsby-remark-katex/README.md b/packages/gatsby-remark-katex/README.md index 051f3b62da434..82d41e0139e32 100644 --- a/packages/gatsby-remark-katex/README.md +++ b/packages/gatsby-remark-katex/README.md @@ -58,7 +58,7 @@ a^2 + b^2 = c^2 $$ ``` -[1]: https://www.gatsbyjs.org/packages/gatsby-remark-katex/ +[1]: https://www.gatsbyjs.com/plugins/gatsby-remark-katex/ [2]: https://github.com/Rokt33r/remark-math [3]: https://github.com/KaTeX/KaTeX [4]: https://github.com/gatsbyjs/gatsby/blob/master/examples/using-remark/src/templates/template-blog-post.js diff --git a/packages/gatsby-remark-prismjs/README.md b/packages/gatsby-remark-prismjs/README.md index 9917f8232c55e..02b57cd0b0dbe 100644 --- a/packages/gatsby-remark-prismjs/README.md +++ b/packages/gatsby-remark-prismjs/README.md @@ -94,7 +94,7 @@ plugins: [ PrismJS ships with a number of [themes][5] (previewable on the [PrismJS website][6]) that you can easily include in your Gatsby site, or you can build your own by copying and modifying an example (which is what we've done for -[gatsbyjs.org](https://gatsbyjs.org)). +[gatsbyjs.com](https://gatsbyjs.com)). To load a theme, just require its CSS file in your `gatsby-browser.js` file, e.g. @@ -400,7 +400,7 @@ You can specify language for `diff` code blocks by using `diff-[language]` to en ### Line hiding -As well as highlighting lines, it's possible to _hide_ lines from the rendered output. Often this is handy when using `gatsby-remark-prismjs` along with [`gatsby-remark-embed-snippet`](https://www.gatsbyjs.org/packages/gatsby-remark-embed-snippet/). +As well as highlighting lines, it's possible to _hide_ lines from the rendered output. Often this is handy when using `gatsby-remark-prismjs` along with [`gatsby-remark-embed-snippet`](https://www.gatsbyjs.com/plugins/gatsby-remark-embed-snippet/). As with highlighting lines, you can control which lines to hide by adding directives as comments in your source code. diff --git a/packages/gatsby-source-contentful/README.md b/packages/gatsby-source-contentful/README.md index c3512c12700ba..8463df758e773 100644 --- a/packages/gatsby-source-contentful/README.md +++ b/packages/gatsby-source-contentful/README.md @@ -206,7 +206,7 @@ You might query for **all** of a type of node: } ``` -You might do this in your `gatsby-node.js` using Gatsby's [`createPages`](https://next.gatsbyjs.org/docs/node-apis/#createPages) Node API. +You might do this in your `gatsby-node.js` using Gatsby's [`createPages`](https://gatsbyjs.com/docs/node-apis/#createPages) Node API. ### Query for a single node @@ -247,7 +247,7 @@ To query for a single `CaseStudy` node with the short text properties `title` an } ``` -You might query for a **single** node inside a component in your `src/components` folder, using [Gatsby's `StaticQuery` component](https://www.gatsbyjs.org/docs/static-query/). +You might query for a **single** node inside a component in your `src/components` folder, using [Gatsby's `StaticQuery` component](https://www.gatsbyjs.com/docs/static-query/). #### A note about LongText fields @@ -263,7 +263,7 @@ On Contentful, a "Long text" field uses Markdown by default. The field is expose } ``` -Unless the text is Markdown-free, you cannot use the returned value directly. In order to handle the Markdown content, you must use a transformer plugin such as [`gatsby-transformer-remark`](https://www.gatsbyjs.org/packages/gatsby-transformer-remark/). The transformer will create a `childMarkdownRemark` on the "Long text" field and expose the generated html as a child node: +Unless the text is Markdown-free, you cannot use the returned value directly. In order to handle the Markdown content, you must use a transformer plugin such as [`gatsby-transformer-remark`](https://www.gatsbyjs.com/plugins/gatsby-transformer-remark/). The transformer will create a `childMarkdownRemark` on the "Long text" field and expose the generated html as a child node: ```graphql { diff --git a/packages/gatsby-source-contentful/src/__tests__/normalize.js b/packages/gatsby-source-contentful/src/__tests__/normalize.js index 45d6699205c3b..0f6ca5884f8ae 100644 --- a/packages/gatsby-source-contentful/src/__tests__/normalize.js +++ b/packages/gatsby-source-contentful/src/__tests__/normalize.js @@ -20,7 +20,7 @@ const { } = require(`./data.json`) const conflictFieldPrefix = `contentful_test` -// restrictedNodeFields from here https://www.gatsbyjs.org/docs/node-interface/ +// restrictedNodeFields from here https://www.gatsbyjs.com/docs/node-interface/ const restrictedNodeFields = [ `id`, `children`, diff --git a/packages/gatsby-source-contentful/src/source-nodes.js b/packages/gatsby-source-contentful/src/source-nodes.js index 1697dcb254ebf..29ab446b43f82 100644 --- a/packages/gatsby-source-contentful/src/source-nodes.js +++ b/packages/gatsby-source-contentful/src/source-nodes.js @@ -17,7 +17,7 @@ import { CODES } from "./report" const conflictFieldPrefix = `contentful` -// restrictedNodeFields from here https://www.gatsbyjs.org/docs/node-interface/ +// restrictedNodeFields from here https://www.gatsbyjs.com/docs/node-interface/ const restrictedNodeFields = [ `children`, `contentful_id`, diff --git a/packages/gatsby-source-drupal/README.md b/packages/gatsby-source-drupal/README.md index 732653c6932fc..a70b5b744dde7 100644 --- a/packages/gatsby-source-drupal/README.md +++ b/packages/gatsby-source-drupal/README.md @@ -402,4 +402,4 @@ You can query nodes created from Drupal like the following: ``` [dotenv]: https://github.com/motdotla/dotenv -[envvars]: https://www.gatsbyjs.org/docs/environment-variables +[envvars]: https://www.gatsbyjs.com/docs/environment-variables diff --git a/packages/gatsby-source-filesystem/README.md b/packages/gatsby-source-filesystem/README.md index 7853d4ed30234..41d3a45538bb3 100644 --- a/packages/gatsby-source-filesystem/README.md +++ b/packages/gatsby-source-filesystem/README.md @@ -130,8 +130,6 @@ createFilePath({ #### Example usage -The following is taken from [Gatsby Tutorial, Part Seven](https://www.gatsbyjs.org/tutorial/part-7/) and is used to create URL slugs for markdown pages. - ```javascript const { createFilePath } = require(`gatsby-source-filesystem`) diff --git a/packages/gatsby-source-filesystem/index.d.ts b/packages/gatsby-source-filesystem/index.d.ts index d7c02db11d0f2..2d578b9e1a3da 100644 --- a/packages/gatsby-source-filesystem/index.d.ts +++ b/packages/gatsby-source-filesystem/index.d.ts @@ -1,19 +1,19 @@ import { Node, Store, NodePluginArgs } from "gatsby" /** - * @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createfilepath + * @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilepath */ export function createFilePath(args: CreateFilePathArgs): string /** - * @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createremotefilenode + * @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createremotefilenode */ export function createRemoteFileNode( args: CreateRemoteFileNodeArgs ): Promise /** - * @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createfilenodefrombuffer + * @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilenodefrombuffer */ export function createFileNodeFromBuffer( args: CreateFileNodeFromBufferArgs @@ -103,7 +103,7 @@ export interface FileSystemConfig { } /** - * @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=filesy#options + * @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=filesy#options */ interface FileSystemOptions { name: string diff --git a/packages/gatsby-source-filesystem/src/gatsby-node.js b/packages/gatsby-source-filesystem/src/gatsby-node.js index 9b319120af77c..8a2d70003962d 100644 --- a/packages/gatsby-source-filesystem/src/gatsby-node.js +++ b/packages/gatsby-source-filesystem/src/gatsby-node.js @@ -171,7 +171,7 @@ exports.sourceNodes = (api, pluginOptions) => { The path passed to gatsby-source-filesystem does not exist on your file system: ${pluginOptions.path} Please pick a path to an existing directory. -See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/ +See docs here - https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/ `) } diff --git a/packages/gatsby-source-lever/src/normalize.js b/packages/gatsby-source-lever/src/normalize.js index 9ad163377cb7b..c09d090408566 100644 --- a/packages/gatsby-source-lever/src/normalize.js +++ b/packages/gatsby-source-lever/src/normalize.js @@ -1,7 +1,7 @@ const deepMapKeys = require(`deep-map-keys`) const conflictFieldPrefix = `lever_` -// restrictedNodeFields from here https://www.gatsbyjs.org/docs/node-interface/ +// restrictedNodeFields from here https://www.gatsbyjs.com/docs/node-interface/ const restrictedNodeFields = [`id`, `children`, `parent`, `fields`, `internal`] /** diff --git a/packages/gatsby-source-wordpress/docs/tutorials/building-a-new-site-wordpress-and-gatsby.md b/packages/gatsby-source-wordpress/docs/tutorials/building-a-new-site-wordpress-and-gatsby.md index 2577382046ed8..cdd61eed9f606 100644 --- a/packages/gatsby-source-wordpress/docs/tutorials/building-a-new-site-wordpress-and-gatsby.md +++ b/packages/gatsby-source-wordpress/docs/tutorials/building-a-new-site-wordpress-and-gatsby.md @@ -13,7 +13,7 @@ gatsby new wordpress-tutorial-site cd wordpress-tutorial-site ``` -Install the `gatsby-source-wordpress` plugin. For extra reading on the plugin’s features and examples of GraphQL queries not included in this tutorial, see the [`gatsby-source-wordpress` plugin’s README file](https://www.gatsbyjs.com/packages/gatsby-source-wordpress). +Install the `gatsby-source-wordpress` plugin. For extra reading on the plugin’s features and examples of GraphQL queries not included in this tutorial, see the [`gatsby-source-wordpress` plugin’s README file](https://www.gatsbyjs.com/plugins/gatsby-source-wordpress). ```shell npm install gatsby-source-wordpress diff --git a/packages/gatsby-transformer-documentationjs/README.md b/packages/gatsby-transformer-documentationjs/README.md index 6b69b82e25561..419dc32e64fab 100644 --- a/packages/gatsby-transformer-documentationjs/README.md +++ b/packages/gatsby-transformer-documentationjs/README.md @@ -4,8 +4,8 @@ Uses [Documentation.js](http://documentation.js.org/) to extract code metadata (JSDocs is supported currently though Flow is also supported by Documentation.js and can be added to this plugin as well). -It's used on gatsbyjs.org and can be seen in use on several pages there e.g. -[https://www.gatsbyjs.org/docs/node-apis/](https://www.gatsbyjs.org/docs/node-apis/) +It's used on gatsbyjs.com and can be seen in use on several pages there e.g. +[https://www.gatsbyjs.com/docs/node-apis/](https://www.gatsbyjs.com/docs/node-apis/) ## Install diff --git a/packages/gatsby-transformer-screenshot/README.md b/packages/gatsby-transformer-screenshot/README.md index f9b421371cb1f..09f551f3dc962 100644 --- a/packages/gatsby-transformer-screenshot/README.md +++ b/packages/gatsby-transformer-screenshot/README.md @@ -94,7 +94,7 @@ You can use placeholder image by setting `GATSBY_SCREENSHOT_PLACEHOLDER` environ GATSBY_SCREENSHOT_PLACEHOLDER=true gatsby develop ``` -or by using [`dotenv`](https://www.gatsbyjs.org/docs/environment-variables/#server-side-nodejs) in your `gatsby-config.js` and adding `GATSBY_SCREENSHOT_PLACEHOLDER` to `.env.development` file in root of your project: +or by using [`dotenv`](https://www.gatsbyjs.com/docs/environment-variables/#server-side-nodejs) in your `gatsby-config.js` and adding `GATSBY_SCREENSHOT_PLACEHOLDER` to `.env.development` file in root of your project: ```shell:title=.env.development GATSBY_SCREENSHOT_PLACEHOLDER=true diff --git a/packages/gatsby-transformer-sharp/README.md b/packages/gatsby-transformer-sharp/README.md index 230f9f079a58d..05474cc9db7ea 100644 --- a/packages/gatsby-transformer-sharp/README.md +++ b/packages/gatsby-transformer-sharp/README.md @@ -23,7 +23,7 @@ module.exports = { Please note that you must have a source plugin (which brings in images) installed in your project. Otherwise, no `ImageSharp` nodes can be created for your files. Examples would be [`gatsby-source-filesystem`](/plugins/gatsby-source-filesystem) or source plugins for (headless) CMSs like [`gatsby-source-wordpress`](/plugins/gatsby-source-wordpress). -**Note**: An exception to this is when using [`gatsby-source-contentful`](/plugins/gatsby-source-contentful/), as the source plugin and the assets are not [downloaded to the local filesystem](https://www.gatsbyjs.org/packages/gatsby-source-contentful/#download-assets-for-static-distribution). By default, the `gatsby-source-contentful` plugin creates a `ContentfulAsset` node for every image with links to Contentful’s CDN, therefore it is not necessary to use `gatsby-transformer-sharp` together with `gatsby-source-contentful`. +**Note**: An exception to this is when using [`gatsby-source-contentful`](/plugins/gatsby-source-contentful/), as the source plugin and the assets are not [downloaded to the local filesystem](https://www.gatsbyjs.com/plugins/gatsby-source-contentful/#download-assets-for-static-distribution). By default, the `gatsby-source-contentful` plugin creates a `ContentfulAsset` node for every image with links to Contentful’s CDN, therefore it is not necessary to use `gatsby-transformer-sharp` together with `gatsby-source-contentful`. ## Parsing algorithm diff --git a/packages/gatsby/cache-dir/__tests__/dev-loader.js b/packages/gatsby/cache-dir/__tests__/dev-loader.js index 23ca7fdf85b39..c4d6a17620105 100644 --- a/packages/gatsby/cache-dir/__tests__/dev-loader.js +++ b/packages/gatsby/cache-dir/__tests__/dev-loader.js @@ -438,7 +438,7 @@ describe(`Dev loader`, () => { expect(consoleErrorSpy).toHaveBeenCalledTimes(1) expect(consoleErrorSpy).toHaveBeenCalledWith( - `404 page could not be found. Checkout https://www.gatsbyjs.org/docs/how-to/adding-common-features/add-404-page/` + `404 page could not be found. Checkout https://www.gatsbyjs.com/docs/how-to/adding-common-features/add-404-page/` ) mock.error(defaultXHRMockErrorHandler) diff --git a/packages/gatsby/cache-dir/__tests__/static-entry.js b/packages/gatsby/cache-dir/__tests__/static-entry.js index 76aa0690f83c9..3d7bf1c683b52 100644 --- a/packages/gatsby/cache-dir/__tests__/static-entry.js +++ b/packages/gatsby/cache-dir/__tests__/static-entry.js @@ -498,15 +498,15 @@ describe(`sanitizeComponents`, () => { }) it(`strips assetPrefix for manifest link`, () => { - global.__PATH_PREFIX__ = `https://gatsbyjs.org/blog` + global.__PATH_PREFIX__ = `https://gatsbyjs.com/blog` global.__BASE_PATH__ = `/blog` - global.__ASSET_PREFIX__ = `https://gatsbyjs.org` + global.__ASSET_PREFIX__ = `https://gatsbyjs.com` const sanitizedComponents = sanitizeComponents([ , ]) expect(sanitizedComponents[0].props.href).toBe(`/blog/manifest.webmanifest`) diff --git a/packages/gatsby/cache-dir/dev-loader.js b/packages/gatsby/cache-dir/dev-loader.js index b6c16104a7eab..ddc6dad90f491 100644 --- a/packages/gatsby/cache-dir/dev-loader.js +++ b/packages/gatsby/cache-dir/dev-loader.js @@ -93,7 +93,7 @@ class DevLoader extends BaseLoader { rawPath !== `/dev-404-page/` ) { console.error( - `404 page could not be found. Checkout https://www.gatsbyjs.org/docs/how-to/adding-common-features/add-404-page/` + `404 page could not be found. Checkout https://www.gatsbyjs.com/docs/how-to/adding-common-features/add-404-page/` ) return this.loadPageDataJson(`/dev-404-page/`).then(result => Object.assign({}, data, result) diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index a4ad27b79b5cb..00fb99add5e24 100644 --- a/packages/gatsby/index.d.ts +++ b/packages/gatsby/index.d.ts @@ -185,12 +185,12 @@ export interface PageRendererProps { } /** - * PageRenderer's constructor [loads the page resources](https://www.gatsbyjs.org/docs/production-app/#load-page-resources) for the path. + * PageRenderer's constructor [loads the page resources](https://www.gatsbyjs.com/docs/production-app/#load-page-resources) for the path. * - * On first load though, these will have already been requested from the server by `` in the page's original HTML (see [Link Preloads](https://www.gatsbyjs.org/docs/how-code-splitting-works/#construct-link-and-script-tags-for-current-page) in HTML Generation Docs). + * On first load though, these will have already been requested from the server by `` in the page's original HTML (see [Link Preloads](https://www.gatsbyjs.com/docs/how-code-splitting-works/#construct-link-and-script-tags-for-current-page) in HTML Generation Docs). * The loaded page resources includes the imported component, with which we create the actual page component using [React.createElement()](https://reactjs.org/docs/react-api.html). This element is returned to our RouteHandler which hands it off to Reach Router for rendering. * - * @see https://www.gatsbyjs.org/docs/production-app/#page-rendering + * @see https://www.gatsbyjs.com/docs/production-app/#page-rendering */ export class PageRenderer extends React.Component {} @@ -209,7 +209,7 @@ export interface StaticQueryProps { * - StaticQuery does not accept variables (hence the name "static"), but can be used in _any_ component, including pages * - StaticQuery does not work with raw React.createElement calls; please use JSX, e.g. `` * - * @see https://www.gatsbyjs.org/docs/static-query/ + * @see https://www.gatsbyjs.com/docs/static-query/ */ export class StaticQuery extends React.Component< @@ -221,14 +221,14 @@ export class StaticQuery extends React.Component< * * During the Gatsby build process, GraphQL queries are pulled out of the original source for parsing. * - * @see https://www.gatsbyjs.org/docs/page-query#how-does-the-graphql-tag-work + * @see https://www.gatsbyjs.com/docs/page-query#how-does-the-graphql-tag-work */ export const graphql: (query: TemplateStringsArray) => StaticQueryDocument /** * Gatsby configuration API. * - * @see https://www.gatsbyjs.org/docs/gatsby-config/ + * @see https://www.gatsbyjs.com/docs/gatsby-config/ */ export interface GatsbyConfig { /** When you want to reuse common pieces of data across the site (for example, your site title), you can store that here. */ @@ -250,7 +250,7 @@ export interface GatsbyConfig { jsxImportSource?: string /** * Setting the proxy config option will tell the develop server to proxy any unknown requests to your specified server. - * @see https://www.gatsbyjs.org/docs/api-proxy/ + * @see https://www.gatsbyjs.com/docs/api-proxy/ * */ proxy?: { prefix: string @@ -263,7 +263,7 @@ export interface GatsbyConfig { /** * Gatsby API for Node.js. * - * @see https://www.gatsbyjs.org/docs/node-apis/ + * @see https://www.gatsbyjs.com/docs/node-apis/ */ export interface GatsbyNode< TNode extends Record = Record, @@ -274,7 +274,7 @@ export interface GatsbyNode< * sourcing and transformation of nodes plus creation of the GraphQL schema are * complete so you can query your data in order to create pages. * - * @see https://www.gatsbyjs.org/docs/node-apis/#createPages + * @see https://www.gatsbyjs.com/docs/node-apis/#createPages */ createPages?( args: CreatePagesArgs & { @@ -342,7 +342,7 @@ export interface GatsbyNode< * transform nodes created by other plugins should implement this API. * * See also the documentation for `createNode` - * and [`createNodeField`](https://www.gatsbyjs.org/docs/actions/#createNodeField) + * and [`createNodeField`](https://www.gatsbyjs.com/docs/actions/#createNodeField) * @example * exports.onCreateNode = ({ node, actions }) => { * const { createNode, createNodeField } = actions @@ -375,7 +375,7 @@ export interface GatsbyNode< * for programmatically manipulating pages created by other plugins e.g. * if you want paths without trailing slashes. * - * See the guide [Creating and Modifying Pages](https://www.gatsbyjs.org/docs/creating-and-modifying-pages/) + * See the guide [Creating and Modifying Pages](https://www.gatsbyjs.com/docs/creating-and-modifying-pages/) * for more on this API. */ onCreatePage?( @@ -386,7 +386,7 @@ export interface GatsbyNode< /** * Let plugins extend/mutate the site's webpack configuration. - * @see https://www.gatsbyjs.org/docs/node-apis/#onCreateWebpackConfig + * @see https://www.gatsbyjs.com/docs/node-apis/#onCreateWebpackConfig */ onCreateWebpackConfig?( args: CreateWebpackConfigArgs, @@ -488,7 +488,7 @@ export interface GatsbyNode< * * Many transformer plugins use this to add fields that take arguments. * - * @see https://www.gatsbyjs.org/docs/node-apis/#setFieldsOnGraphQLNodeType + * @see https://www.gatsbyjs.com/docs/node-apis/#setFieldsOnGraphQLNodeType */ setFieldsOnGraphQLNodeType?( args: SetFieldsOnGraphQLNodeTypeArgs, @@ -504,7 +504,7 @@ export interface GatsbyNode< * will be called exactly once after all of your source plugins have finished * creating nodes. * - * @see https://www.gatsbyjs.org/docs/node-apis/#sourceNodes + * @see https://www.gatsbyjs.com/docs/node-apis/#sourceNodes */ sourceNodes?( args: SourceNodesArgs, @@ -560,7 +560,7 @@ export interface GatsbyNode< * * This API runs immediately before schema generation. For modifications of the generated schema, e.g. * to customize added third-party types, use the createResolvers API. - * @see https://www.gatsbyjs.org/docs/node-apis/#createSchemaCustomization + * @see https://www.gatsbyjs.com/docs/node-apis/#createSchemaCustomization */ createSchemaCustomization?( args: CreateSchemaCustomizationArgs, @@ -578,7 +578,7 @@ export interface GatsbyNode< /** * Gatsby browser API. * - * @see https://www.gatsbyjs.org/docs/browser-apis/ + * @see https://www.gatsbyjs.com/docs/browser-apis/ */ export interface GatsbyBrowser< DataType = Record, @@ -644,7 +644,7 @@ export interface GatsbyBrowser< /** * Gatsby server-side rendering API. * - * @see https://www.gatsbyjs.org/docs/ssr-apis/ + * @see https://www.gatsbyjs.com/docs/ssr-apis/ */ export interface GatsbySSR< DataSet = Record, @@ -737,7 +737,7 @@ export interface GatsbySSR< * This is useful for setting wrapper component around pages that won't get * unmounted on page change. For setting Provider components use `wrapRootElement`. * - * _Note:_ [There is equivalent hook in Browser API](https://www.gatsbyjs.org/docs/browser-apis/#wrapPageElement) + * _Note:_ [There is equivalent hook in Browser API](https://www.gatsbyjs.com/docs/browser-apis/#wrapPageElement) * @example * const React = require("react") * const Layout = require("./src/components/layout") @@ -759,7 +759,7 @@ export interface GatsbySSR< * This is useful to setup any Providers component that will wrap your application. * For setting persistent UI elements around pages use `wrapPageElement`. * - * _Note:_ [There is equivalent hook in Browser API](https://www.gatsbyjs.org/docs/browser-apis/#wrapRootElement) + * _Note:_ [There is equivalent hook in Browser API](https://www.gatsbyjs.com/docs/browser-apis/#wrapRootElement) * @example * const React = require("react") * const { Provider } = require("react-redux") @@ -1133,7 +1133,7 @@ export interface NodePluginArgs { /** * Set of utilities that allow adding more detailed tracing for plugins. * Check - * [Performance tracing](https://www.gatsbyjs.org/docs/performance-tracing) + * [Performance tracing](https://www.gatsbyjs.com/docs/performance-tracing) * page for more details. */ tracing: Tracing @@ -1166,10 +1166,10 @@ export interface BuildArgs extends ParentSpanPluginArgs { } export interface Actions { - /** @see https://www.gatsbyjs.org/docs/actions/#deletePage */ + /** @see https://www.gatsbyjs.com/docs/actions/#deletePage */ deletePage(this: void, args: { path: string; component: string }): void - /** @see https://www.gatsbyjs.org/docs/actions/#createPage */ + /** @see https://www.gatsbyjs.com/docs/actions/#createPage */ createPage>( this: void, args: Page, @@ -1177,10 +1177,10 @@ export interface Actions { option?: ActionOptions ): void - /** @see https://www.gatsbyjs.org/docs/actions/#deletePage */ + /** @see https://www.gatsbyjs.com/docs/actions/#deletePage */ deleteNode(node: NodeInput, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#createNode */ + /** @see https://www.gatsbyjs.com/docs/actions/#createNode */ createNode>( this: void, node: NodeInput & TNode, @@ -1188,10 +1188,10 @@ export interface Actions { options?: ActionOptions ): void - /** @see https://www.gatsbyjs.org/docs/actions/#touchNode */ + /** @see https://www.gatsbyjs.com/docs/actions/#touchNode */ touchNode(node: NodeInput, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#createNodeField */ + /** @see https://www.gatsbyjs.com/docs/actions/#createNodeField */ createNodeField( this: void, args: { @@ -1203,7 +1203,7 @@ export interface Actions { options?: ActionOptions ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createParentChildLink */ + /** @see https://www.gatsbyjs.com/docs/actions/#createParentChildLink */ createParentChildLink( this: void, args: { parent: Node; child: NodeInput }, @@ -1221,37 +1221,37 @@ export interface Actions { plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#setWebpackConfig */ + /** @see https://www.gatsbyjs.com/docs/actions/#setWebpackConfig */ setWebpackConfig(this: void, config: object, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#replaceWebpackConfig */ + /** @see https://www.gatsbyjs.com/docs/actions/#replaceWebpackConfig */ replaceWebpackConfig(this: void, config: object, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#setBabelOptions */ + /** @see https://www.gatsbyjs.com/docs/actions/#setBabelOptions */ setBabelOptions(this: void, options: object, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#setBabelPlugin */ + /** @see https://www.gatsbyjs.com/docs/actions/#setBabelPlugin */ setBabelPlugin( this: void, config: { name: string; options: object }, plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#setBabelPreset */ + /** @see https://www.gatsbyjs.com/docs/actions/#setBabelPreset */ setBabelPreset( this: void, config: { name: string; options: object }, plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createJob */ + /** @see https://www.gatsbyjs.com/docs/actions/#createJob */ createJob( this: void, job: Record & { id: string }, plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createJobV2 */ + /** @see https://www.gatsbyjs.com/docs/actions/#createJobV2 */ createJobV2( this: void, job: { @@ -1263,24 +1263,24 @@ export interface Actions { plugin?: ActionPlugin ): Promise - /** @see https://www.gatsbyjs.org/docs/actions/#setJob */ + /** @see https://www.gatsbyjs.com/docs/actions/#setJob */ setJob( this: void, job: Record & { id: string }, plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#endJob */ + /** @see https://www.gatsbyjs.com/docs/actions/#endJob */ endJob(this: void, job: { id: string }, plugin?: ActionPlugin): void - /** @see https://www.gatsbyjs.org/docs/actions/#setPluginStatus */ + /** @see https://www.gatsbyjs.com/docs/actions/#setPluginStatus */ setPluginStatus( this: void, status: Record, plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createRedirect */ + /** @see https://www.gatsbyjs.com/docs/actions/#createRedirect */ createRedirect( this: void, redirect: { @@ -1296,7 +1296,7 @@ export interface Actions { plugin?: ActionPlugin ): void - /** @see https://www.gatsbyjs.org/docs/actions/#addThirdPartySchema */ + /** @see https://www.gatsbyjs.com/docs/actions/#addThirdPartySchema */ addThirdPartySchema( this: void, args: { schema: object }, @@ -1304,7 +1304,7 @@ export interface Actions { traceId?: string ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createTypes */ + /** @see https://www.gatsbyjs.com/docs/actions/#createTypes */ createTypes( this: void, types: @@ -1316,7 +1316,7 @@ export interface Actions { traceId?: string ): void - /** @see https://www.gatsbyjs.org/docs/actions/#createFieldExtension */ + /** @see https://www.gatsbyjs.com/docs/actions/#createFieldExtension */ createFieldExtension( this: void, extension: object, diff --git a/packages/gatsby/src/bootstrap/load-plugins/validate.ts b/packages/gatsby/src/bootstrap/load-plugins/validate.ts index db662b9e5a787..7dffe0706b5cf 100644 --- a/packages/gatsby/src/bootstrap/load-plugins/validate.ts +++ b/packages/gatsby/src/bootstrap/load-plugins/validate.ts @@ -483,7 +483,7 @@ export const handleMultipleReplaceRenderers = ({ reporter.warn(`replaceRenderer API found in these plugins:`) reporter.warn(rendererPlugins.join(`, `)) reporter.warn( - `This might be an error, see: https://www.gatsbyjs.org/docs/debugging-replace-renderer-api/` + `This might be an error, see: https://www.gatsbyjs.com/docs/debugging-replace-renderer-api/` ) } else { console.log(``) @@ -493,7 +493,7 @@ export const handleMultipleReplaceRenderers = ({ reporter.error(rendererPlugins.join(`, `)) reporter.error(`This will break your build`) reporter.error( - `See: https://www.gatsbyjs.org/docs/debugging-replace-renderer-api/` + `See: https://www.gatsbyjs.com/docs/debugging-replace-renderer-api/` ) if (process.env.NODE_ENV === `production`) process.exit(1) } diff --git a/packages/gatsby/src/commands/build.ts b/packages/gatsby/src/commands/build.ts index f2e2aec0942c7..8ea53cfeabd62 100644 --- a/packages/gatsby/src/commands/build.ts +++ b/packages/gatsby/src/commands/build.ts @@ -81,7 +81,7 @@ module.exports = async function build( if (program.profile) { report.warn( - `React Profiling is enabled. This can have a performance impact. See https://www.gatsbyjs.org/docs/profiling-site-performance-with-react-profiler/#performance-impact` + `React Profiling is enabled. This can have a performance impact. See https://www.gatsbyjs.com/docs/profiling-site-performance-with-react-profiler/#performance-impact` ) } diff --git a/packages/gatsby/src/internal-plugins/prod-404-500/gatsby-node.js b/packages/gatsby/src/internal-plugins/prod-404-500/gatsby-node.js index 5a4cfb0fa07eb..3d59d3efc36c9 100644 --- a/packages/gatsby/src/internal-plugins/prod-404-500/gatsby-node.js +++ b/packages/gatsby/src/internal-plugins/prod-404-500/gatsby-node.js @@ -8,7 +8,7 @@ emitter.on(`CREATE_PAGE`, action => { // Copy /404/ to /404.html and /500/ to /500.html. Many static site hosts expect // site 404 pages to be named this. In addition, with Rendering Engines there might // be runtime errors which would fallback to "/500.html" page. - // https://www.gatsbyjs.org/docs/how-to/adding-common-features/add-404-page/ + // https://www.gatsbyjs.com/docs/how-to/adding-common-features/add-404-page/ const result = /^\/?(404|500)\/?$/.exec(action.payload.path) if (result && result.length > 1) { const status = result[1] diff --git a/packages/gatsby/src/query/query-watcher.ts b/packages/gatsby/src/query/query-watcher.ts index ef4bae7168fe3..215ad5bd464d4 100644 --- a/packages/gatsby/src/query/query-watcher.ts +++ b/packages/gatsby/src/query/query-watcher.ts @@ -269,7 +269,7 @@ export const updateStateAndRunQueries = async ( reason. If the failing component(s) is a regular component and not intended to be a page - component, you generally want to use a (https://gatsbyjs.org/docs/static-query) + component, you generally want to use a (https://gatsbyjs.com/docs/static-query) instead of exporting a page query. If you're more experienced with GraphQL, you can also export GraphQL diff --git a/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap b/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap index 4eaabad246f4a..bb1ea4b22e958 100644 --- a/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap +++ b/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap @@ -1829,7 +1829,7 @@ If you have explicitly defined a type for those fields, you can safely ignore th Otherwise, Gatsby will omit those fields from the GraphQL schema. If you know all field types in advance, the best strategy is to explicitly define them with the \`createTypes\` action, and skip inference with the \`@dontInfer\` directive. -See https://www.gatsbyjs.org/docs/actions/#createTypes", +See https://www.gatsbyjs.com/docs/actions/#createTypes", ], ], "results": Array [ diff --git a/packages/gatsby/src/schema/infer/type-conflict-reporter.ts b/packages/gatsby/src/schema/infer/type-conflict-reporter.ts index bdad7242cc226..af54563176319 100644 --- a/packages/gatsby/src/schema/infer/type-conflict-reporter.ts +++ b/packages/gatsby/src/schema/infer/type-conflict-reporter.ts @@ -135,7 +135,7 @@ class TypeConflictReporter { `If you know all field types in advance, the best strategy is to ` + `explicitly define them with the \`createTypes\` action, and skip ` + `inference with the \`@dontInfer\` directive.\n` + - `See https://www.gatsbyjs.org/docs/actions/#createTypes` + `See https://www.gatsbyjs.com/docs/actions/#createTypes` ) this.entries.forEach(entry => entry.printEntry()) } diff --git a/packages/gatsby/src/utils/__tests__/api-runner-node.js b/packages/gatsby/src/utils/__tests__/api-runner-node.js index a97ca1e484ab8..7a2d4644f8345 100644 --- a/packages/gatsby/src/utils/__tests__/api-runner-node.js +++ b/packages/gatsby/src/utils/__tests__/api-runner-node.js @@ -298,7 +298,7 @@ describe(`api-runner-node`, () => { 1337: { text: context => `Error text is ${context.someProp}`, level: `ERROR`, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, }) @@ -341,7 +341,7 @@ describe(`api-runner-node`, () => { "test-plugin-plugin-prefixes_1337": { text: {}, level: `ERROR`, - docsUrl: `https://www.gatsbyjs.org/docs/gatsby-cli/#new`, + docsUrl: `https://www.gatsbyjs.com/docs/gatsby-cli/#new`, }, }) }) diff --git a/packages/gatsby/src/utils/api-node-helpers-docs.js b/packages/gatsby/src/utils/api-node-helpers-docs.js index 8df66b14c95f1..59280494ec078 100644 --- a/packages/gatsby/src/utils/api-node-helpers-docs.js +++ b/packages/gatsby/src/utils/api-node-helpers-docs.js @@ -294,7 +294,7 @@ module.exports.createNodeId = true; /** * Set of utilities that allow adding more detailed tracing for plugins. * Check - * [Performance tracing](https://www.gatsbyjs.org/docs/performance-tracing) + * [Performance tracing](https://www.gatsbyjs.com/docs/performance-tracing) * page for more details. * @type {GatsbyTracing} */ diff --git a/peril/tests/validate-yaml/validate-yaml-creators.test.ts b/peril/tests/validate-yaml/validate-yaml-creators.test.ts index d323196c7a86e..41bbe63dca912 100644 --- a/peril/tests/validate-yaml/validate-yaml-creators.test.ts +++ b/peril/tests/validate-yaml/validate-yaml-creators.test.ts @@ -70,7 +70,7 @@ describe("a new PR", () => { description: lorem ipsum location: moon github: https://github.com/gatsbyjs - website: https://www.gatsbyjs.org/ + website: https://www.gatsbyjs.com/ for_hire: false portfolio: true hiring: false diff --git a/scripts/i18n/PROGRESS.template.md b/scripts/i18n/PROGRESS.template.md index bc47e7ae768f4..7782311654632 100644 --- a/scripts/i18n/PROGRESS.template.md +++ b/scripts/i18n/PROGRESS.template.md @@ -6,7 +6,7 @@ To translate a page: 2. Comment below with the name of the page you would like to translate. **Please take only one page at a time**. 3. Clone this repo, translate your page, and submit a pull request! -Before contributing, please read the [translation guide](https://www.gatsbyjs.org/contributing/gatsby-docs-translation-guide/#contributing-to-a-translation) to understand the Gatsby translation process. +Before contributing, please read the [translation guide](https://www.gatsbyjs.com/contributing/gatsby-docs-translation-guide/#contributing-to-a-translation) to understand the Gatsby translation process. Please be prompt with your translations! If you find that you can't commit anymore, let the maintainers know so they can assign the page to someone else. diff --git a/scripts/i18n/create.js b/scripts/i18n/create.js index 6d516c2119667..001613c1100f3 100644 --- a/scripts/i18n/create.js +++ b/scripts/i18n/create.js @@ -111,7 +111,7 @@ Please refer to the [Translation Progress Issue](${transRepo.url}/issues/1) to s Useful Links: * [Style Guide](/style-guide.md) -* [Gatsby Translation Guide](https://www.gatsbyjs.org/contributing/gatsby-docs-translation-guide/) +* [Gatsby Translation Guide](https://www.gatsbyjs.com/contributing/gatsby-docs-translation-guide/) * [Gatsby Discord](https://gatsby.dev/discord) (Feel free to translate this document and add any content you feel would be useful to contributors). @@ -277,7 +277,7 @@ If you are not already a member of the [gatsbyjs GitHub organization](https://gi You're free to use the [Gatsby Discord](https://gatsby.dev/discord) to discuss translations. Ask a moderator to create a channel for you in the \`#translations\` channel. -Finally, make sure to check out the [maintainer responsibilities](https://www.gatsbyjs.org/contributing/gatsby-docs-translation-guide/#maintainer-responsibilities) and review your duties as a maintainer. +Finally, make sure to check out the [maintainer responsibilities](https://www.gatsbyjs.com/contributing/gatsby-docs-translation-guide/#maintainer-responsibilities) and review your duties as a maintainer. Feel free to reach out to the Gatsby team if you need any help! diff --git a/scripts/i18n/sync.js b/scripts/i18n/sync.js index 1451ecd217bc8..7c40c69b2f730 100644 --- a/scripts/i18n/sync.js +++ b/scripts/i18n/sync.js @@ -144,7 +144,7 @@ function conflictPRBody(conflictFiles, comparisonUrl, prNumber) { return ` Sync conflicts with the source repo. Please update the translations based on updated source content. -For more information on how to resolve sync conflicts, check out the [guide for syncing translations](https://gatsbyjs.org/contributing/translation/sync-guide/). +For more information on how to resolve sync conflicts, check out the [guide for syncing translations](https://gatsbyjs.com/contributing/translation/sync-guide/).
The following ${ diff --git a/scripts/site-up-checker/index.js b/scripts/site-up-checker/index.js index c7e1323b2689f..3da78f95721b1 100644 --- a/scripts/site-up-checker/index.js +++ b/scripts/site-up-checker/index.js @@ -46,7 +46,7 @@ const checkWebsite = async site => { const main = () => { const websites = [ - `https://www.gatsbyjs.org`, + `https://www.gatsbyjs.com`, `https://gatsbygram.gatsbyjs.org`, `https://using-drupal.gatsbyjs.org`, ]