From 66ebe958bb004d99e859b664b295d510d8999678 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski Date: Wed, 27 Feb 2019 20:11:14 +0000 Subject: [PATCH] chore(*): replace gatsby.app with gatsby.dev (#12153) ## Description Replace gatsby.app with gatsby.dev Command used to find all files: ``` grep -rl 'gatsby\.app' --exclude-dir=.git --exclude-dir=.idea --exclude-dir=node_modules . ``` Command used to replace files: ``` grep -rl 'gatsby\.app' --exclude-dir=.git --exclude-dir=.idea --exclude-dir=node_modules ./ | xargs sed -i 's/gatsby.app/gatsby.dev/g' ``` ## Related Issues Fixes #12152 --- .github/ISSUE_TEMPLATE/question.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- README.md | 2 +- .../index.md | 2 +- docs/blog/2018-09-07-gatsby-values/index.md | 2 +- docs/contributing/community-contributions.md | 2 +- docs/contributing/community.md | 2 +- docs/contributing/gatsby-style-guide.md | 2 +- docs/contributing/how-to-file-an-issue.md | 2 +- docs/contributing/where-to-participate.md | 2 +- e2e-tests/development-runtime/gatsby-config.js | 2 +- e2e-tests/development-runtime/src/components/image.js | 4 ++-- examples/using-jest/src/components/image.js | 4 ++-- examples/using-js-search/package.json | 2 +- examples/using-shopify/package.json | 2 +- integration-tests/gatsby-pipeline/src/components/image.js | 4 ++-- packages/gatsby-link/src/index.js | 2 +- packages/gatsby-source-contentful/README.md | 6 +++--- packages/gatsby-source-graphql/README.md | 4 ++-- packages/gatsby/README.md | 2 +- packages/gatsby/src/bootstrap/load-plugins/validate.js | 4 ++-- packages/gatsby/src/bootstrap/resolve-module-exports.js | 2 +- packages/gatsby/src/commands/build.js | 2 +- packages/gatsby/src/commands/develop.js | 6 +++--- packages/gatsby/src/utils/api-runner-node.js | 2 +- starters/README.md | 2 +- starters/blog/package.json | 2 +- starters/default/gatsby-config.js | 2 +- starters/default/package.json | 2 +- starters/default/src/components/image.js | 4 ++-- starters/hello-world/package.json | 2 +- www/src/components/navigation.js | 2 +- 32 files changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index c4da18cc12886..3071b2f8bfe37 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -12,7 +12,7 @@ about: Usage question or discussion about Gatsby. Gatsby has several community support channels, try asking your question on: - - Discord: https://gatsby.app/discord + - Discord: https://gatsby.dev/discord - Spectrum: https://spectrum.chat/gatsby-js - Twitter: https://twitter.com/gatsbyjs diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 40ae16a83724a..fea5848b216e2 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,5 @@ diff --git a/README.md b/README.md index 441d6f404e54e..97a79195749cd 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ · Support: Spectrum & - Discord + Discord Gatsby is a modern framework for blazing fast websites. diff --git a/docs/blog/2017-02-21-1-0-progress-update-where-came-from-where-going/index.md b/docs/blog/2017-02-21-1-0-progress-update-where-came-from-where-going/index.md index afff49f3a303f..bd46e5568ea26 100644 --- a/docs/blog/2017-02-21-1-0-progress-update-where-came-from-where-going/index.md +++ b/docs/blog/2017-02-21-1-0-progress-update-where-came-from-where-going/index.md @@ -354,6 +354,6 @@ reactions and what kind of problems you face that you think Gatsby will help with. If you're interested in contributing, please join the -[Gatsby Discord](https://gatsby.app/discord), check out the +[Gatsby Discord](https://gatsby.dev/discord), check out the [issues](https://github.com/gatsbyjs/gatsby/issues), and help bikeshed on names and APIs and other ideas. diff --git a/docs/blog/2018-09-07-gatsby-values/index.md b/docs/blog/2018-09-07-gatsby-values/index.md index 505358a931ff5..6f5dff11f5df3 100644 --- a/docs/blog/2018-09-07-gatsby-values/index.md +++ b/docs/blog/2018-09-07-gatsby-values/index.md @@ -141,7 +141,7 @@ While we need to stick to our roadmap and make steady progress toward our compan Open source doesn’t have the best reputation for being friendly and welcoming, and that makes us sad. **Everyone belongs in open source, and Gatsby is dedicated to making you feel welcome.** -We will never judge, condescend, or exclude anyone. Instead, we will go above and beyond to support the community, through [pair programming](https://gatsby.app/pairing), offering [free swag for contributors](https://gatsby.app/swag), giving control to the community by [auto-inviting all contributors to the Gatsby GitHub org](https://github.com/gatsbyjs/gatsby/pull/7699#issuecomment-416665803), an open and inclusive [code of conduct](/contributing/code-of-conduct/), and other means that empower and embrace the incredible community that makes Gatsby possible. +We will never judge, condescend, or exclude anyone. Instead, we will go above and beyond to support the community, through [pair programming](https://gatsby.dev/pairing), offering [free swag for contributors](https://gatsby.dev/swag), giving control to the community by [auto-inviting all contributors to the Gatsby GitHub org](https://github.com/gatsbyjs/gatsby/pull/7699#issuecomment-416665803), an open and inclusive [code of conduct](/contributing/code-of-conduct/), and other means that empower and embrace the incredible community that makes Gatsby possible.

Huge shoutout to @gatsbyjs. Not only have hey been the perfect open source project for Lambda School students to contribute to, but the whole community goes above and beyond in helping students understand the OSS ecosystem generally

— Austen Allred (@AustenAllred) September 7, 2018
diff --git a/docs/contributing/community-contributions.md b/docs/contributing/community-contributions.md index e3f897546071f..c82c421005626 100644 --- a/docs/contributing/community-contributions.md +++ b/docs/contributing/community-contributions.md @@ -20,4 +20,4 @@ We welcome all contributions from you in the community, and would be thrilled to - [Submit to Starter Library](/contributing/submit-to-starter-library/) - [Submit to Plugin Library](/contributing/submit-to-plugin-library/) -Peruse through the rest of our contributor docs and reach out to us on [Twitter](https://twitter.com/gatsbyjs), [Discord](https://gatsby.app/discord), or in a [GitHub issue](/contributing/how-to-file-an-issue/) if you have any questions about contributing! +Peruse through the rest of our contributor docs and reach out to us on [Twitter](https://twitter.com/gatsbyjs), [Discord](https://gatsby.dev/discord), or in a [GitHub issue](/contributing/how-to-file-an-issue/) if you have any questions about contributing! diff --git a/docs/contributing/community.md b/docs/contributing/community.md index d86d5567a79bf..9d8dba33425d5 100644 --- a/docs/contributing/community.md +++ b/docs/contributing/community.md @@ -47,7 +47,7 @@ tagged with **gatsby** or ### Discord If you need an answer right away, check out the -[Gatsby Discord](https://gatsby.app/discord). Community & team members are happy to help you out or point you to +[Gatsby Discord](https://gatsby.dev/discord). Community & team members are happy to help you out or point you to useful resources. ### Hashnode diff --git a/docs/contributing/gatsby-style-guide.md b/docs/contributing/gatsby-style-guide.md index f846548985a33..c56070a2f2e06 100644 --- a/docs/contributing/gatsby-style-guide.md +++ b/docs/contributing/gatsby-style-guide.md @@ -114,7 +114,7 @@ it in a clear, accurate, and objective manner. You'll likely go through several rounds of proofreading and editing before you're happy with your writing. Also, there's a community of contributors to support you. Bounce ideas off of them and ask for input on your writing in the -[Gatsby Discord](https://gatsby.app/discord) and in the [GitHub repo](https://github.com/gatsbyjs/gatsby). +[Gatsby Discord](https://gatsby.dev/discord) and in the [GitHub repo](https://github.com/gatsbyjs/gatsby). ## Word choice diff --git a/docs/contributing/how-to-file-an-issue.md b/docs/contributing/how-to-file-an-issue.md index 3afc9e38510a4..cc11e933e9b5b 100644 --- a/docs/contributing/how-to-file-an-issue.md +++ b/docs/contributing/how-to-file-an-issue.md @@ -11,7 +11,7 @@ If you want your issue to be resolved quickly, please include in your issue: `gatsby-node.js`, `gatsby-browser.js` `gatsby-ssr.js` files depending on changes you've made there. -Please do not use the issue tracker for personal support requests. [Stack Overflow](http://stackoverflow.com/questions/ask?tags=gatsby) (**gatsby** tag) and the [Gatsby Discord](https://gatsby.app/discord) are better places to get help. +Please do not use the issue tracker for personal support requests. [Stack Overflow](http://stackoverflow.com/questions/ask?tags=gatsby) (**gatsby** tag) and the [Gatsby Discord](https://gatsby.dev/discord) are better places to get help. ### Special Note on Issues diff --git a/docs/contributing/where-to-participate.md b/docs/contributing/where-to-participate.md index 15b262fe60022..ff5eea78a5f02 100644 --- a/docs/contributing/where-to-participate.md +++ b/docs/contributing/where-to-participate.md @@ -14,7 +14,7 @@ We want contributing to Gatsby to be fun, enjoyable, and educational for anyone - Adding unit or functional tests - Triaging [GitHub issues](https://github.com/gatsbyjs/gatsby/issues) -- especially determining whether an issue still persists or is reproducible - [Reporting bugs or issues](/contributing/how-to-file-an-issue/) -- Searching for Gatsby on [Discord](https://gatsby.app/discord) or [Spectrum](https://spectrum.chat/gatsby-js) and helping someone else who needs help +- Searching for Gatsby on [Discord](https://gatsby.dev/discord) or [Spectrum](https://spectrum.chat/gatsby-js) and helping someone else who needs help - Teaching others how to contribute to Gatsby's repo! As our way of saying “thank you” to our contributors, **_all contributors_ are eligible for [free Gatsby swag](/contributing/contributor-swag/)** — whether you’re contributing code, docs, a talk, an article, or something else that helps the Gatsby community. [Learn how to claim free swag for contributors.](/contributing/contributor-swag/) diff --git a/e2e-tests/development-runtime/gatsby-config.js b/e2e-tests/development-runtime/gatsby-config.js index 32fb579570817..bdc16cdbf1f65 100644 --- a/e2e-tests/development-runtime/gatsby-config.js +++ b/e2e-tests/development-runtime/gatsby-config.js @@ -44,7 +44,7 @@ module.exports = { }, }, // this (optional) plugin enables Progressive Web App + Offline functionality - // To learn more, visit: https://gatsby.app/offline + // To learn more, visit: https://gatsby.dev/offline // 'gatsby-plugin-offline', ], } diff --git a/e2e-tests/development-runtime/src/components/image.js b/e2e-tests/development-runtime/src/components/image.js index 2d068b89a89c9..ef4d21778b8d9 100644 --- a/e2e-tests/development-runtime/src/components/image.js +++ b/e2e-tests/development-runtime/src/components/image.js @@ -9,8 +9,8 @@ import Img from "gatsby-image" * component, rather than having to pass the image data down from pages. * * For more information, see the docs: - * - `gatsby-image`: https://gatsby.app/gatsby-image - * - `StaticQuery`: https://gatsby.app/staticquery + * - `gatsby-image`: https://gatsby.dev/gatsby-image + * - `StaticQuery`: https://gatsby.dev/staticquery */ const Image = () => ( diff --git a/examples/using-jest/src/components/image.js b/examples/using-jest/src/components/image.js index 9ed27ee238349..8c1488a9d05d8 100644 --- a/examples/using-jest/src/components/image.js +++ b/examples/using-jest/src/components/image.js @@ -9,8 +9,8 @@ import Img from 'gatsby-image' * component, rather than having to pass the image data down from pages. * * For more information, see the docs: - * - `gatsby-image`: https://gatsby.app/gatsby-image - * - `StaticQuery`: https://gatsby.app/staticquery + * - `gatsby-image`: https://gatsby.dev/gatsby-image + * - `StaticQuery`: https://gatsby.dev/staticquery */ const Image = () => ( diff --git a/examples/using-js-search/package.json b/examples/using-js-search/package.json index c1ac2ca36bdf9..0b29a8ab84723 100644 --- a/examples/using-js-search/package.json +++ b/examples/using-js-search/package.json @@ -12,7 +12,7 @@ "develop": "gatsby develop", "start": "npm run develop", "serve": "gatsby serve", - "test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"" + "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" }, "dependencies": { "axios": "^0.18.0", diff --git a/examples/using-shopify/package.json b/examples/using-shopify/package.json index f107f539c1a0e..a8e6750246111 100644 --- a/examples/using-shopify/package.json +++ b/examples/using-shopify/package.json @@ -29,7 +29,7 @@ "develop": "gatsby develop", "start": "npm run develop", "serve": "gatsby serve", - "test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"" + "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" }, "repository": { "type": "git", diff --git a/integration-tests/gatsby-pipeline/src/components/image.js b/integration-tests/gatsby-pipeline/src/components/image.js index 2d068b89a89c9..ef4d21778b8d9 100644 --- a/integration-tests/gatsby-pipeline/src/components/image.js +++ b/integration-tests/gatsby-pipeline/src/components/image.js @@ -9,8 +9,8 @@ import Img from "gatsby-image" * component, rather than having to pass the image data down from pages. * * For more information, see the docs: - * - `gatsby-image`: https://gatsby.app/gatsby-image - * - `StaticQuery`: https://gatsby.app/staticquery + * - `gatsby-image`: https://gatsby.dev/gatsby-image + * - `StaticQuery`: https://gatsby.dev/staticquery */ const Image = () => ( diff --git a/packages/gatsby-link/src/index.js b/packages/gatsby-link/src/index.js index 7865d0f756e28..8fcc0fd2733d2 100644 --- a/packages/gatsby-link/src/index.js +++ b/packages/gatsby-link/src/index.js @@ -112,7 +112,7 @@ class GatsbyLink extends React.Component { const LOCAL_URL = /^\/(?!\/)/ if (process.env.NODE_ENV !== `production` && !LOCAL_URL.test(to)) { console.warn( - `External link ${to} was detected in a Link component. Use the Link component only for internal links. See: https://gatsby.app/internal-links` + `External link ${to} was detected in a Link component. Use the Link component only for internal links. See: https://gatsby.dev/internal-links` ) } diff --git a/packages/gatsby-source-contentful/README.md b/packages/gatsby-source-contentful/README.md index 5ba1a59a9834b..d3822ba68c0b4 100644 --- a/packages/gatsby-source-contentful/README.md +++ b/packages/gatsby-source-contentful/README.md @@ -25,7 +25,7 @@ module.exports = { resolve: `gatsby-source-contentful`, options: { spaceId: `your_space_id`, - // Learn about environment variables: https://gatsby.app/env-vars + // Learn about environment variables: https://gatsby.dev/env-vars accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, }, }, @@ -43,7 +43,7 @@ module.exports = { resolve: `gatsby-source-contentful`, options: { spaceId: `your_space_id`, - // Learn about environment variables: https://gatsby.app/env-vars + // Learn about environment variables: https://gatsby.dev/env-vars accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, host: `preview.contentful.com`, }, @@ -249,4 +249,4 @@ After adding the transformer plugin you can use the following query to get the h ``` [dotenv]: https://github.com/motdotla/dotenv -[envvars]: https://gatsby.app/env-vars +[envvars]: https://gatsby.dev/env-vars diff --git a/packages/gatsby-source-graphql/README.md b/packages/gatsby-source-graphql/README.md index 44553fcd9eaf5..40bde2179c1b1 100644 --- a/packages/gatsby-source-graphql/README.md +++ b/packages/gatsby-source-graphql/README.md @@ -39,7 +39,7 @@ module.exports = { url: "https://api.github.com/graphql", // HTTP headers headers: { - // Learn about environment variables: https://gatsby.app/env-vars + // Learn about environment variables: https://gatsby.dev/env-vars Authorization: `bearer ${process.env.GITHUB_TOKEN}`, }, // Additional options to pass to node-fetch @@ -156,4 +156,4 @@ module.exports = { ``` [dotenv]: https://github.com/motdotla/dotenv -[envvars]: https://gatsby.app/env-vars +[envvars]: https://gatsby.dev/env-vars diff --git a/packages/gatsby/README.md b/packages/gatsby/README.md index 8b299a753134b..d5bdd37d76666 100644 --- a/packages/gatsby/README.md +++ b/packages/gatsby/README.md @@ -47,7 +47,7 @@ · Support: Spectrum & - Discord + Discord Gatsby is a modern framework for blazing fast websites. diff --git a/packages/gatsby/src/bootstrap/load-plugins/validate.js b/packages/gatsby/src/bootstrap/load-plugins/validate.js index edd7157b43349..ef4a2bcdf81c1 100644 --- a/packages/gatsby/src/bootstrap/load-plugins/validate.js +++ b/packages/gatsby/src/bootstrap/load-plugins/validate.js @@ -42,11 +42,11 @@ const getBadExportsMessage = (badExports, exportType, apis) => { const badExportsMigrationMap = { modifyWebpackConfig: { replacement: `onCreateWebpackConfig`, - migrationLink: `https://gatsby.app/update-webpack-config`, + migrationLink: `https://gatsby.dev/update-webpack-config`, }, wrapRootComponent: { replacement: `wrapRootElement`, - migrationLink: `https://gatsby.app/update-wraprootcomponent`, + migrationLink: `https://gatsby.dev/update-wraprootcomponent`, }, } const isOldAPI = Object.keys(badExportsMigrationMap).includes( diff --git a/packages/gatsby/src/bootstrap/resolve-module-exports.js b/packages/gatsby/src/bootstrap/resolve-module-exports.js index ed777a054c92f..6f61e9ade732c 100644 --- a/packages/gatsby/src/bootstrap/resolve-module-exports.js +++ b/packages/gatsby/src/bootstrap/resolve-module-exports.js @@ -112,7 +112,7 @@ You'll need to edit the file to use just one or the other. plugin: ${modulePath}.js This didn't cause a problem in Gatsby v1 so you might want to review the migration doc for this: -https://gatsby.app/no-mixed-modules +https://gatsby.dev/no-mixed-modules ` ) } diff --git a/packages/gatsby/src/commands/build.js b/packages/gatsby/src/commands/build.js index eab68a6a2b915..1150b538a4639 100644 --- a/packages/gatsby/src/commands/build.js +++ b/packages/gatsby/src/commands/build.js @@ -67,7 +67,7 @@ module.exports = async function build(program: BuildArgs) { : `` } - See our docs page on debugging HTML builds for help https://gatsby.app/debug-html + See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html `, err ) diff --git a/packages/gatsby/src/commands/develop.js b/packages/gatsby/src/commands/develop.js index c88dc577428d1..ca4b371cac572 100644 --- a/packages/gatsby/src/commands/develop.js +++ b/packages/gatsby/src/commands/develop.js @@ -62,7 +62,7 @@ async function startServer(program) { report.stripIndent` There was an error compiling the html.js component for the development server. - See our docs page on debugging HTML builds for help https://gatsby.app/debug-html + See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html `, err ) @@ -385,11 +385,11 @@ module.exports = async (program: any) => { const fixMap = { boundActionCreators: { newName: `actions`, - docsLink: `https://gatsby.app/boundActionCreators`, + docsLink: `https://gatsby.dev/boundActionCreators`, }, pathContext: { newName: `pageContext`, - docsLink: `https://gatsby.app/pathContext`, + docsLink: `https://gatsby.dev/pathContext`, }, } const deprecatedLocations = {} diff --git a/packages/gatsby/src/utils/api-runner-node.js b/packages/gatsby/src/utils/api-runner-node.js index a4a7036473304..032f353405d0e 100644 --- a/packages/gatsby/src/utils/api-runner-node.js +++ b/packages/gatsby/src/utils/api-runner-node.js @@ -126,7 +126,7 @@ const runAPI = (plugin, api, args) => { `graphql` )} or http requests). For more info and debugging tips: see ${chalk.bold( - `https://gatsby.app/sync-actions` + `https://gatsby.dev/sync-actions` )} `), ] diff --git a/starters/README.md b/starters/README.md index 2c0e7023f96b8..2a867909c7202 100644 --- a/starters/README.md +++ b/starters/README.md @@ -47,7 +47,7 @@ · Support: Spectrum & - Discord + Discord Gatsby is a modern framework for blazing fast websites. This repository is our monorepo for managing all the great GatsbyJS starters for the community. diff --git a/starters/blog/package.json b/starters/blog/package.json index 7e8b8a2ba9f6c..a841120b73861 100644 --- a/starters/blog/package.json +++ b/starters/blog/package.json @@ -54,6 +54,6 @@ "format": "prettier --write src/**/*.{js,jsx}", "start": "npm run develop", "serve": "gatsby serve", - "test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"" + "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" } } diff --git a/starters/default/gatsby-config.js b/starters/default/gatsby-config.js index 765ebb90203dd..1bf6988fd49e7 100644 --- a/starters/default/gatsby-config.js +++ b/starters/default/gatsby-config.js @@ -28,7 +28,7 @@ module.exports = { }, }, // this (optional) plugin enables Progressive Web App + Offline functionality - // To learn more, visit: https://gatsby.app/offline + // To learn more, visit: https://gatsby.dev/offline // 'gatsby-plugin-offline', ], } diff --git a/starters/default/package.json b/starters/default/package.json index 28f4092ffda49..62d132648745d 100644 --- a/starters/default/package.json +++ b/starters/default/package.json @@ -31,7 +31,7 @@ "format": "prettier --write src/**/*.{js,jsx}", "start": "npm run develop", "serve": "gatsby serve", - "test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"" + "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" }, "repository": { "type": "git", diff --git a/starters/default/src/components/image.js b/starters/default/src/components/image.js index 2d068b89a89c9..ef4d21778b8d9 100644 --- a/starters/default/src/components/image.js +++ b/starters/default/src/components/image.js @@ -9,8 +9,8 @@ import Img from "gatsby-image" * component, rather than having to pass the image data down from pages. * * For more information, see the docs: - * - `gatsby-image`: https://gatsby.app/gatsby-image - * - `StaticQuery`: https://gatsby.app/staticquery + * - `gatsby-image`: https://gatsby.dev/gatsby-image + * - `StaticQuery`: https://gatsby.dev/staticquery */ const Image = () => ( diff --git a/starters/hello-world/package.json b/starters/hello-world/package.json index 4b34311af3728..2617fbb6c1988 100644 --- a/starters/hello-world/package.json +++ b/starters/hello-world/package.json @@ -10,7 +10,7 @@ "format": "prettier --write src/**/*.{js,jsx}", "start": "npm run develop", "serve": "gatsby serve", - "test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"" + "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" }, "dependencies": { "gatsby": "^2.1.18", diff --git a/www/src/components/navigation.js b/www/src/components/navigation.js index 4039b85409f44..441fa3c25c8e2 100644 --- a/www/src/components/navigation.js +++ b/www/src/components/navigation.js @@ -181,7 +181,7 @@ const Navigation = ({ pathname }) => { [presets.Hd]: { display: `flex` }, }} > - +