Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 52637b6a88f304a79bd3999615e224113b255349
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 03d497f15bc968d88bb0c85ce427da797b8fc61d
Choose a head ref

Commits on Nov 26, 2020

  1. chore(release): Publish next pre-minor

     - babel-plugin-remove-graphql-queries@2.13.0-next.0
     - babel-preset-gatsby-package@0.9.0-next.0
     - babel-preset-gatsby@0.9.0-next.0
     - create-gatsby@0.2.0-next.0
     - gatsby-admin@0.5.0-next.0
     - gatsby-cli@2.16.0-next.0
     - gatsby-codemods@1.7.0-next.0
     - gatsby-core-utils@1.7.0-next.0
     - gatsby-cypress@0.8.0-next.0
     - gatsby-design-tokens@2.4.0-next.0
     - gatsby-dev-cli@2.11.0-next.0
     - gatsby-graphiql-explorer@0.8.0-next.0
     - gatsby-image@2.8.0-next.0
     - gatsby-legacy-polyfills@0.4.0-next.0
     - gatsby-link@2.8.0-next.0
     - gatsby-page-utils@0.6.0-next.0
     - gatsby-plugin-benchmark-reporting@0.6.0-next.0
     - gatsby-plugin-canonical-urls@2.7.0-next.0
     - gatsby-plugin-catch-links@2.7.0-next.0
     - gatsby-plugin-coffeescript@2.7.0-next.0
     - gatsby-plugin-create-client-paths@2.7.0-next.0
     - gatsby-plugin-cxs@2.7.0-next.0
     - gatsby-plugin-emotion@5.1.0-next.0
     - gatsby-plugin-facebook-analytics@2.8.0-next.0
     - gatsby-plugin-feed@2.10.0-next.0
     - gatsby-plugin-flow@1.7.0-next.0
     - gatsby-plugin-fullstory@2.7.0-next.0
     - gatsby-plugin-glamor@2.7.0-next.0
     - gatsby-plugin-google-analytics@2.8.0-next.0
     - gatsby-plugin-google-gtag@2.5.0-next.0
     - gatsby-plugin-google-tagmanager@2.8.0-next.0
     - gatsby-plugin-graphql-config@0.4.0-next.0
     - gatsby-plugin-guess-js@1.7.0-next.0
     - gatsby-plugin-image@0.4.0-next.0
     - gatsby-plugin-jss@2.7.0-next.0
     - gatsby-plugin-layout@1.7.0-next.0
     - gatsby-plugin-less@4.4.0-next.0
     - gatsby-plugin-lodash@3.7.0-next.0
     - gatsby-plugin-manifest@2.9.0-next.0
     - gatsby-plugin-mdx@1.7.0-next.0
     - gatsby-plugin-netlify-cms@4.7.0-next.0
     - gatsby-plugin-netlify@2.8.0-next.0
     - gatsby-plugin-no-sourcemaps@2.6.0-next.0
     - gatsby-plugin-nprogress@2.7.0-next.0
     - gatsby-plugin-offline@3.7.0-next.0
     - gatsby-plugin-page-creator@2.7.0-next.0
     - gatsby-plugin-postcss@3.4.0-next.0
     - gatsby-plugin-preact@4.4.0-next.0
     - gatsby-plugin-preload-fonts@1.6.0-next.0
     - gatsby-plugin-react-css-modules@2.7.0-next.0
     - gatsby-plugin-react-helmet@3.7.0-next.0
     - gatsby-plugin-remove-trailing-slashes@2.7.0-next.0
     - gatsby-plugin-sass@2.8.0-next.0
     - gatsby-plugin-schema-snapshot@1.4.0-next.0
     - gatsby-plugin-sharp@2.11.0-next.0
     - gatsby-plugin-sitemap@2.9.0-next.0
     - gatsby-plugin-styled-components@3.7.0-next.0
     - gatsby-plugin-styled-jsx@3.7.0-next.0
     - gatsby-plugin-styletron@5.4.0-next.0
     - gatsby-plugin-stylus@2.7.0-next.0
     - gatsby-plugin-subfont@2.6.0-next.0
     - gatsby-plugin-twitter@2.7.0-next.0
     - gatsby-plugin-typescript@2.9.0-next.0
     - gatsby-plugin-typography@2.9.0-next.0
     - gatsby-plugin-utils@0.6.0-next.0
     - gatsby-react-router-scroll@3.4.0-next.0
     - gatsby-recipes@0.6.0-next.0
     - gatsby-remark-autolink-headers@2.8.0-next.0
     - gatsby-remark-code-repls@3.6.0-next.0
     - gatsby-remark-copy-linked-files@2.7.0-next.0
     - gatsby-remark-custom-blocks@2.7.0-next.0
     - gatsby-remark-embed-snippet@4.7.0-next.0
     - gatsby-remark-graphviz@1.7.0-next.0
     - gatsby-remark-images-contentful@2.7.0-next.0
     - gatsby-remark-images@3.8.0-next.0
     - gatsby-remark-katex@3.7.0-next.0
     - gatsby-remark-prismjs@3.10.0-next.0
     - gatsby-remark-responsive-iframe@2.8.0-next.0
     - gatsby-remark-smartypants@2.7.0-next.0
     - gatsby-source-contentful@4.3.0-next.0
     - gatsby-source-drupal@3.10.0-next.0
     - gatsby-source-faker@2.7.0-next.0
     - gatsby-source-filesystem@2.8.0-next.0
     - gatsby-source-graphql@2.11.0-next.0
     - gatsby-source-hacker-news@2.8.0-next.0
     - gatsby-source-lever@2.7.0-next.0
     - gatsby-source-medium@2.7.0-next.0
     - gatsby-source-mongodb@2.7.0-next.0
     - gatsby-source-npm-package-search@2.7.0-next.0
     - gatsby-source-shopify@3.7.0-next.0
     - gatsby-source-wikipedia@2.7.0-next.0
     - gatsby-source-wordpress@3.8.0-next.0
     - gatsby-telemetry@1.7.0-next.0
     - gatsby-theme@0.5.0-next.0
     - gatsby-transformer-asciidoc@1.7.0-next.0
     - gatsby-transformer-csv@2.7.0-next.0
     - gatsby-transformer-documentationjs@4.7.0-next.0
     - gatsby-transformer-excel@2.8.0-next.0
     - gatsby-transformer-hjson@2.8.0-next.0
     - gatsby-transformer-javascript-frontmatter@2.7.0-next.0
     - gatsby-transformer-javascript-static-exports@2.8.0-next.0
     - gatsby-transformer-json@2.8.0-next.0
     - gatsby-transformer-pdf@1.7.0-next.0
     - gatsby-transformer-react-docgen@5.6.0-next.0
     - gatsby-transformer-remark@2.13.0-next.0
     - gatsby-transformer-screenshot@2.7.0-next.0
     - gatsby-transformer-sharp@2.9.0-next.0
     - gatsby-transformer-sqip@2.8.0-next.0
     - gatsby-transformer-toml@2.8.0-next.0
     - gatsby-transformer-xml@2.7.0-next.0
     - gatsby-transformer-yaml@2.8.0-next.0
     - gatsby@2.29.0-next.0
    pieh committed Nov 26, 2020
    Copy the full SHA
    443c8d0 View commit details

Commits on Nov 27, 2020

  1. fix(docs): document pluginOptionsSchema - add file extension, code bl…

    …ock language, quotation marks (#27844)
    muescha authored Nov 27, 2020
    Copy the full SHA
    1f148a7 View commit details
  2. chore(docs): fix broken url (#28197)

    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    saintmalik and vladar authored Nov 27, 2020
    Copy the full SHA
    c830bc2 View commit details
  3. chore(docs): Update Deploying to Render guide (#28272)

    The flow for creating static sites in the Render dashboard was recently simplified
    davidmauskop authored Nov 27, 2020
    Copy the full SHA
    2e68af8 View commit details
  4. test(gatsby-plugin-image): add E2E tests for native and intersection …

    …obs (#28314)
    
    * test(gatsby-plugin-image): add E2E tests for native and intersection obs #28314
    
    * fix
    
    * review comments
    
    * review comments
    Marvin Frachet authored Nov 27, 2020
    Copy the full SHA
    c1cdf51 View commit details
  5. Copy the full SHA
    bfd86df View commit details
  6. fix(test): wrong assert method for plugin-image (#28319)

    Marvin Frachet authored Nov 27, 2020
    Copy the full SHA
    2b8fe12 View commit details
  7. fix: avoid joi validation error when using reporter.panic (#28291)

    - previously just passing the error object would produce a joi
      error
    
    ```
    Failed to validate error Error [ValidationError]: "name" is not allowed
        at Object.exports.process (/myproject/node_modules/@hapi/joi/lib/errors.js:202:19)
        at internals.Object._validateWithOptions (/myproject/node_modules/@hapi/joi/lib/types/any/index.js:763:31)
        at internals.Object.validate (/myproject/node_modules/@hapi/joi/lib/types/any/index.js:797:21)
        at constructError (/myproject/node_modules/gatsby-cli/lib/structured-errors/construct-error.js:52:32)
        at Reporter.error (/myproject/node_modules/gatsby-cli/lib/reporter/reporter.js:135:59)
        at Reporter.panic (/myproject/node_modules/gatsby-cli/lib/reporter/reporter.js:75:34)
        at Object.panic (/myproject/node_modules/gatsby/src/utils/api-runner-node.js:201:16)
        at /myproject/node_modules/gatsby-plugin-sharp/index.js:162:14 {
      isJoi: true,
    ```
    rburgst authored Nov 27, 2020
    Copy the full SHA
    231cf9f View commit details
  8. Copy the full SHA
    064a16f View commit details
  9. Copy the full SHA
    a9f9a23 View commit details
  10. feat(gatsby-source-shopify): add "priceNumber" field that will allow …

    …for proper sorting (#28243)
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    pieh and gatsbybot authored Nov 27, 2020
    Copy the full SHA
    11a0a16 View commit details

Commits on Nov 28, 2020

  1. chore(gatsby): Invite more people to try QUERY_ON_DEMAND (#28327)

    * chore(gatsby): Invite more people to try QUERY_ON_DEMAND
    
    * update message for flags
    KyleAMathews authored Nov 28, 2020
    Copy the full SHA
    a84f78e View commit details
  2. feature(gatsby): Warn when there's unknown flags in gatsby-config.js …

    …& suggest fixes to potential typos (#28326)
    
    * feature(gatsby): Warn when there's unknown flags in gatsby-config.js & suggest fixes to potential typos
    
    * Update packages/gatsby/src/utils/handle-flags.ts
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    
    * Reformat message per @pieh's suggestion
    
    * make typescript happy
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    KyleAMathews and pieh authored Nov 28, 2020
    Copy the full SHA
    c4978e9 View commit details

Commits on Nov 30, 2020

  1. Copy the full SHA
    92742df View commit details
  2. Copy the full SHA
    4c4e8e8 View commit details
  3. chore(gatsby-plugin-manifest): Update pluginOptionsSchema link (#28344)

    Current link of the `pluginOptionsSchema.js` redirects to a non-existent (404) page on at https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/#plugin-options-validation.
    This commit fixes and points it to the actual file on the repository.
    kasipavankumar authored Nov 30, 2020
    Copy the full SHA
    098448f View commit details
  4. Copy the full SHA
    4998303 View commit details
  5. Fix v2.27 release notes (#28367)

    The `gatsby new` behavior wasn't actually shipped in that release!
    mxstbr authored Nov 30, 2020
    Copy the full SHA
    208f4cd View commit details
  6. Copy the full SHA
    4fbded2 View commit details
  7. chore(deps): update dependency theme-ui to v0.4.0-rc.14 (#28228)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Nov 30, 2020
    Copy the full SHA
    c5d28e2 View commit details
  8. chore(deps): update dependency danger to ^10.5.4 (#28225)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Nov 30, 2020
    Copy the full SHA
    6e60cc4 View commit details
  9. chore(deps): update dependency lint-staged to ^10.5.2 (#28355)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Nov 30, 2020
    Copy the full SHA
    5adfdcd View commit details
  10. Copy the full SHA
    d9904ac View commit details
  11. Copy the full SHA
    3e056d1 View commit details
  12. Copy the full SHA
    5096e90 View commit details
  13. Copy the full SHA
    f9bd368 View commit details
  14. wip(gatsby-cli): add login, logout, whoami commands (#28251)

    * add first wip implementation of login command
    
    * add logout and whoami commands
    
    * update urls
    
    * wrap commands in experimental flag
    gillkyle authored Nov 30, 2020
    Copy the full SHA
    d18b199 View commit details
  15. feat(gatsby): people who are using a flag, invite them to try out oth…

    …er flags (#28338)
    
    * feat(gatsby): people who are using a flag, invite them to try out other flags
    
    * Avoid scaling problems
    KyleAMathews authored Nov 30, 2020
    Copy the full SHA
    9c8f788 View commit details
  16. Copy the full SHA
    91b0433 View commit details

Commits on Dec 1, 2020

  1. fix(gatsby-plugin-image): Fix StaticImage props interface and add pro…

    …pTypes (#28372)
    
    * Add proptypes and better props defs
    
    * Fix compilation error
    ascorbic authored Dec 1, 2020
    Copy the full SHA
    93a1447 View commit details
  2. fix(gatsby): move starting dev-ssr listener inside function & only in…

    …it listeners once (#28395)
    
    * fix(gatsby): move starting dev-ssr listener inside function & only init listeners once
    
    * fix snapshot
    KyleAMathews authored Dec 1, 2020
    Copy the full SHA
    3ce476b View commit details
  3. Copy the full SHA
    5812c81 View commit details
  4. Copy the full SHA
    a19a76d View commit details
  5. Feat: (gatsby-cli) Add a CLI command for listing plugins (#28018)

    * initial commit
    
    * initial gatsby list functionality
    
    * fix linter
    
    * use all, but pass a flag
    
    * add tests
    
    * Update integration-tests/gatsby-cli/gatsby-sites/gatsby-plugin/package.json
    
    * fix log destructure
    
    * use different not syntax
    
    * Refactor to move plugin commands out of gatsby package
    
    * linter
    
    * instead of showing the whole error let's show a more helpful message
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    LB and gatsbybot authored Dec 1, 2020
    Copy the full SHA
    0e4d026 View commit details
  6. Copy the full SHA
    deac435 View commit details
  7. test(create-gatsby): some for init starter (#28376)

    Marvin Frachet authored Dec 1, 2020
    Copy the full SHA
    4d14e22 View commit details
  8. feature(gatsby): let users skip out of dev SSR (#28396)

    * feature(gatsby): let users skip out of dev SSR
    
    * update snapshot
    
    * update snapshot
    
    * Add link on ssr error page to the docs
    
    * copy fix
    
    * update snapshot
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    KyleAMathews and pieh authored Dec 1, 2020
    Copy the full SHA
    7577e3f View commit details
  9. fix(gatsby-plugin-image): Add overflow hidden back to wrapper CSS (#2…

    …8410)
    
    * Add overflow hidden back to wrapper CSS
    
    * update tests
    
    * Update packages/gatsby-plugin-image/src/components/__tests__/gatsby-image.server.tsx
    
    * Update packages/gatsby-plugin-image/src/components/__tests__/gatsby-image.server.tsx
    LB authored Dec 1, 2020
    Copy the full SHA
    2b62f38 View commit details
  10. chore(gatsby): add StaticQuery to SSR test (#28187)

    * chore(gatsby): add StaticQuery to SSR test
    
    * Fail if status isn't 200
    
    * Add env flag to the develop command too
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    KyleAMathews and gatsbybot authored Dec 1, 2020
    Copy the full SHA
    f5cc955 View commit details
  11. feature(gatsby): Add experiment to run source plugins in parallel (#2…

    …8214)
    
    * feature(gatsby): Add experiment to run source plugins in parallel
    
    * Add concurrency limit (20)
    
    * remove debugging code
    
    * Add flag support
    
    * Update packages/gatsby/src/utils/api-runner-node.js
    
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    KyleAMathews and vladar authored Dec 1, 2020
    Copy the full SHA
    4fb1f62 View commit details
  12. fix(gatsby): Add FAST_REFRESH config flag (#28409)

    * add FAST_REFRESH flag
    
    * update desc
    
    * handle case when FAST_REFRESH flag is set and GATSBY_HOT_LOADER env var is set to something else than fast-refresh
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    LekoArts and pieh authored Dec 1, 2020
    Copy the full SHA
    ce090e5 View commit details
  13. fix(gatsby): re-render route when location state changes (#28346)

    * creating e2e tests to catch issue
    
    * comparing location and state
    
    * update test message
    
    * using optional chaining
    WillMayger authored Dec 1, 2020
    Copy the full SHA
    3ccaec8 View commit details
  14. Copy the full SHA
    4e50d5c View commit details
  15. Copy the full SHA
    43b2f10 View commit details
  16. fix(gatsby): scroll restoration issue in browser API (#27384)

    * fix scroll restoration issue
    
    * keep the behavior same
    
    * fix the lint error
    vrabe authored Dec 1, 2020
    Copy the full SHA
    4a7a324 View commit details
  17. chore(release): Publish next

     - create-gatsby@0.2.0-next.1
     - gatsby-admin@0.5.0-next.1
     - gatsby-cli@2.16.0-next.1
     - gatsby-plugin-image@0.4.0-next.1
     - gatsby-plugin-manifest@2.9.0-next.1
     - gatsby-plugin-react-helmet@3.7.0-next.1
     - gatsby-plugin-sharp@2.11.0-next.1
     - gatsby-recipes@0.6.0-next.1
     - gatsby-source-contentful@4.3.0-next.1
     - gatsby-source-shopify@3.7.0-next.1
     - gatsby-transformer-sqip@2.8.0-next.1
     - gatsby@2.29.0-next.1
    vladar committed Dec 1, 2020
    Copy the full SHA
    43e4050 View commit details
  18. feature(gatsby): style the SSR error page (#28416)

    * Add styles & tweak language
    
    * Fix small error noticed w/ source-maps
    
    * fix snapshot
    
    * update snapshot
    KyleAMathews authored Dec 1, 2020
    Copy the full SHA
    239589a View commit details
  19. feat(gatsby): Add new caching clearing behavior for webpack/file down…

    …loads behind flags (#28334)
    
    * feat(gatsby): Add new caching behavior for v3 behind a flag
    
    * change to CACHE_CLEAR
    
    * cleanup
    
    * Split into two flags
    
    * Update invite wording + do semver check so we don't keep showing this to updated versions of source-filesystem
    
    * Add invite for webpack flag
    
    * First try grabbing the plugin from  and if that fails, try requiring
    
    * Don't use del or readdir until measure perf more
    
    * Remove now unused imports
    
    * Nest ifs
    KyleAMathews authored Dec 1, 2020
    Copy the full SHA
    f57d590 View commit details

Commits on Dec 2, 2020

  1. Copy the full SHA
    95b4fdd View commit details
  2. docs: release notes for 2.28 (#28380)

    * docs: release notes for 2.28
    
    * adjust date
    
    * Apply suggestions from code review
    
    Co-authored-by: Dustin Schau <DSchau@users.noreply.github.com>
    
    * finish instructions for enabling lazy images
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * update fast refresh
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    
    * remove double "from"
    
    * add image plugin helpers
    
    * order content to be same as table of content
    
    * add "Parallel data sourcing" to sneak peeks
    
    * add notable bugfixes
    
    * note about emotion major bump, slightly restructured notes (#28424)
    
    * Update index.md
    
    * update descriptions for bug fixes to be more readable
    
    * fix links, move lazyjs removal as last (we want to highlight new things :) )
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    
    * revert wrong change
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * Update docs/reference/release-notes/v2.28/index.md
    
    * format
    
    Co-authored-by: Dustin Schau <DSchau@users.noreply.github.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
    5 people authored Dec 2, 2020
    Copy the full SHA
    abb6839 View commit details
Showing 487 changed files with 9,324 additions and 2,077 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -334,6 +334,8 @@ jobs:
environment:
GATSBY_HOT_LOADER: fast-refresh
CYPRESS_HOT_LOADER: fast-refresh
CYPRESS_PROJECT_ID: 917bea
CYPRESS_RECORD_KEY: 4750fb36-4576-4638-a617-d243a381acef

e2e_tests_development_runtime_with_experimental_react:
<<: *e2e_tests_development_runtime_alias
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
name: Bug Report 🐞
about: Something isn't working as expected? Here is the right place to report.
about: Something isn't working as expected? Here is the right place to report. For questions, please use "Discussions".
labels: "type: bug"
---

<!--
Please fill out each section below, otherwise, your issue will be closed. This info allows Gatsby maintainers to diagnose (and fix!) your issue as quickly as possible.
Useful Links:
- Documentation: https://www.gatsbyjs.org/docs/
- How to File an Issue: https://www.gatsbyjs.org/contributing/how-to-file-an-issue/
- Documentation: https://www.gatsbyjs.com/docs/
- How to File an Issue: https://www.gatsbyjs.com/contributing/how-to-file-an-issue/
Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
-->
@@ -20,9 +20,9 @@ Describe the issue that you're seeing.

### Steps to reproduce

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue _much_ easier to diagnose (seriously).
Clear steps describing how to reproduce the issue. **Please** link to a reproduction, this makes your issue _much_ easier to diagnose (seriously).

How to Make a Minimal Reproduction: https://www.gatsbyjs.org/contributing/how-to-make-a-reproducible-test-case/
How to Make a Minimal Reproduction: https://www.gatsbyjs.com/contributing/how-to-make-a-reproducible-test-case/

### Expected result

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: Gatsby Documentation
url: https://www.gatsbyjs.org/docs/
url: https://www.gatsbyjs.com/docs/
about: Check out the Gatsby documentation for answers to common questions
- name: Gatsby Discord
url: https://gatsby.dev/discord
about: Ask questions, get help and discuss new things you're building with the Gatsby community
- name: Gatsby Discussions
url: https://github.com/gatsbyjs/gatsby/discussions
about: Have a question or feature request?
about: Ask questions, request features & discuss RFCs
- name: AskGatsbyJS Twitter
url: https://twitter.com/AskGatsbyJS
about: The official Twitter account to ask questions and get help with Gatsby
16 changes: 5 additions & 11 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
---
name: Documentation 📝
about: Suggest better docs coverage for a particular tool or process.
about: Suggest specific improvements for our documentation. For questions, please use "Discussions".
labels: "type: documentation"
---

<!--
To make it easier for us to help you, please include as much useful information as possible.
Useful Links:
- Documentation: https://www.gatsbyjs.org/docs/
- Contributing: https://www.gatsbyjs.org/contributing/
Gatsby has several community support channels, try asking your question on:
- Discord: https://gatsby.dev/discord
- Twitter: https://twitter.com/gatsbyjs
- Documentation: https://www.gatsbyjs.com/docs/
- Contributing: https://www.gatsbyjs.com/contributing/
Before opening a new issue, please search existing issues https://github.com/gatsbyjs/gatsby/issues
-->
@@ -39,10 +34,9 @@ Why should we document this and who will benefit from it?
### Draft the doc

- [ ] Write the doc, following the format listed in these resources:
- [Overview on contributing to documentation](https://www.gatsbyjs.org/contributing/docs-contributions/)
- [Docs Templates](https://www.gatsbyjs.org/contributing/docs-templates/)
- [Overview on contributing to documentation](https://www.gatsbyjs.com/contributing/docs-contributions/)
- [Docs Templates](https://www.gatsbyjs.com/contributing/docs-templates/)
- [Example of a similar article]()
- [ ] Add the article to the [docs sidebar](https://github.com/gatsbyjs/gatsby/blob/master/www/src/data/sidebars/doc-links.yaml) under the [parent doc] section.

### Open a pull request

30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/new_translation.md

This file was deleted.

4 changes: 2 additions & 2 deletions benchmarks/source-contentful/package.json
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@
"cross-env": "^7.0.0",
"dotenv": "^8.2.0",
"gatsby": "^2.19.7",
"gatsby-plugin-benchmark-reporting": "*",
"gatsby-image": "^2.2.40",
"gatsby-plugin-benchmark-reporting": "*",
"gatsby-plugin-sharp": "^2.4.5",
"gatsby-source-contentful": "^2.1.88",
"gatsby-source-contentful": "^4.2.0",
"gatsby-source-drupal": "^3.3.18",
"gatsby-source-filesystem": "^2.1.48",
"gatsby-transformer-sharp": "^2.3.14",
2 changes: 1 addition & 1 deletion benchmarks/source-wordpress/package.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"gatsby-plugin-benchmark-reporting": "*",
"gatsby-plugin-sharp": "^2.6.2",
"gatsby-source-filesystem": "^2.1.48",
"gatsby-source-wordpress-experimental": "^0.1.10",
"gatsby-source-wordpress-experimental": "^5.0.0",
"gatsby-transformer-sharp": "^2.5.2",
"react": "^16.12.0",
"react-dom": "^16.12.0"
14 changes: 8 additions & 6 deletions benchmarks/source-wordpress/src/templates/article.js
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@ const Article = ({ data: { article } }) => {
<Link to="/">Go back to index page</Link>
<div>
<h2>{article.title}</h2>
{!!article.featuredImage?.remoteFile?.childImageSharp && (
<Img fluid={article.featuredImage.remoteFile.childImageSharp.fluid} />
{!!article.featuredImage?.node?.localFile?.childImageSharp && (
<Img fluid={article.featuredImage.node.localFile.childImageSharp.fluid} />
)}
<div dangerouslySetInnerHTML={{ __html: article.content }} />
</div>
@@ -26,10 +26,12 @@ export const query = graphql`
title
content
featuredImage {
remoteFile {
childImageSharp {
fluid(maxWidth: 960, quality: 90) {
...GatsbyImageSharpFluid_withWebp_tracedSVG
node {
localFile {
childImageSharp {
fluid(maxWidth: 960, quality: 90) {
...GatsbyImageSharpFluid_withWebp_tracedSVG
}
}
}
}
8 changes: 4 additions & 4 deletions docs/docs/configuring-usage-with-plugin-options.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ _This guide refers to creating plugins, if you are looking for general informati

## Where to access plugin options

A Gatsby plugin with options included makes those options available in the second argument of Gatsby [Node](/docs/node-apis/), [Browser](/docs/browser-apis/), and [SSR APIs](/docs/ssr-apis/). Consider the following `gatsby-config` with a plugin called `gatsby-plugin-console-log`:
A Gatsby plugin with options included makes those options available in the second argument of Gatsby [Node](/docs/node-apis/), [Browser](/docs/browser-apis/), and [SSR APIs](/docs/ssr-apis/). Consider the following `gatsby-config.js` with a plugin called `gatsby-plugin-console-log`:

```javascript:title=gatsby-config.js
module.exports = {
@@ -21,7 +21,7 @@ module.exports = {
}
```

With the `optionA`, `optionB`, and `message` options passed into the plugin, the code for `gatsby-plugin-console-log` is able to access the values `true`, `false`, and `Hello world` by their keys.
With the `optionA`, `optionB`, and `message` options passed into the plugin, the code for `gatsby-plugin-console-log` is able to access the values `true`, `false`, and `"Hello world"` by their keys.

For example, `gatsby-plugin-console-log` can access the `message` in order to log its value to the console inside of the `onPreInit` API:

@@ -52,7 +52,7 @@ The following table lists possible options values and an example plugin that mak
| Array | `["/about-us/", "/projects/*"]` | [`gatsby-plugin-offline`](/packages/gatsby-plugin-offline/) |
| Object | `{ default: "./src/layout.js" }` | [`gatsby-plugin-mdx`](/packages/gatsby-plugin-mdx/) |

**Note**: Themes (which are a type of plugin) are able to receive options from a site's `gatsby-config` to be used in its `gatsby-config` in order to allow themes to be composed together. This is done by exporting the `gatsby-config` as a function instead of an object. You can see an example of this in the [`gatsby-theme-blog`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog) and [`gatsby-theme-blog-core`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog-core) repositories. Plugins are not capable of this functionality.
**Note**: Themes (which are a type of plugin) are able to receive options from a site's `gatsby-config.js` to be used in its `gatsby-config.js` in order to allow themes to be composed together. This is done by exporting the `gatsby-config.js` as a function instead of an object. You can see an example of this in the [`gatsby-theme-blog`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog) and [`gatsby-theme-blog-core`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog-core) repositories. Plugins are not capable of this functionality.

## How to validate plugin options

@@ -97,7 +97,7 @@ If users pass options that do not match the schema, the validation will show an

For example, if an integer is passed into `message` (which is marked as a required string) this message would be shown:

```
```text
ERROR #11331 PLUGIN
Invalid plugin options for "gatsby-plugin-console-log":
115 changes: 21 additions & 94 deletions docs/docs/deploying-to-kintohub.md
Original file line number Diff line number Diff line change
@@ -2,116 +2,43 @@
title: Deploying to KintoHub
---

[KintoHub](https://www.kintohub.com) is a next-gen cloud package manager. Making it easy to host and manage websites, backend APIs, cron jobs, databases and more in a production grade fashion for all your apps.
[KintoHub](https://www.kintohub.com) is an all-in-one platform to combine and deploy your backend services, websites, cron jobs, databases and everything your app needs in one place.

KintoHub has a free tier that you can use to deploy your static sites. Here are some features that come with it:

- **CICD from GitHub** - You can build different branches and tag them to make sure the websites you deploy into staging and production environments are the same.
- Automatic **[Let's Encrypt](https://letsencrypt.org) certificates.**
- **Teams** - invite your collaborators on your workspace to work with you.
- Setup **custom domain names** with automatic Let's Encrypt certificates.
- Multiple **environments** (development, staging, production).
- **Password Protection**.
KintoHub allows anyone to deploy for free their static websites.

## Prerequisites

This guide assumes you already have a Gatsby project to deploy. If you need a project, you can use the [Quick Start](/docs/quick-start) or KintoHub's template [Gatsby Template](https://github.com/kintohub/gatsby-example) before continuing.

## Setup

In order to deploy a Gatsby site on KintoHub, you will need to create and deploy a **KintoBlock** into an **Environment** (development, staging, production).

_Note: A **KintoBlock** is connected to a GitHub repository. Accessing the KintoBlock page will allow you to build, manage or tags any branches of your repository._

### Create a KintoBlock

1. Register on [KintoHub](https://beta.kintohub.com).

2. Create a new **KintoBlock** of type **Website** and give KintoHub permission to access your GitHub repo.

3. Select your GitHub repo from the list and press **Continue**.

4. Choose **Static from Build** with the following values:

| | |
| ----------------------- | ---------------------------------------------------------- |
| **Name** | `Gatsby Website` (or your own name) |
| **Language** | `Node.js` |
| **Version** | `latest` (or your own node.js version) |
| **Build Command** | `npm install && npm run build` (or your own build command) |
| **Build Output Folder** | `public` (or your own output directory) |

5. Press **Create Website**.

The build will automatically start on the default GitHub branch of your repository.
Wait for your build to be successful (green).

#### Multiple Branches

When you create a new **KintoBlock**, KintoHub imports all your branches and you can access them from your KintoBlock page (new branches will also be automatically picked up).
You can switch from one branch to another by pressing the branch name on the side panel on the left.

#### Continuous Integration

By default, KintoHub will build all the changes you push on your default branch.
If you want to disable it:

1. Disable the toggle **Build New Commits**.
2. Press **Save Changes**.

Your new changes will not be automatically picked up anymore and you will have to press **Build Latest Commit** to trigger a build.

### Deploy your KintoBlock

From your KintoBlock page, you will need to deploy your website first before accessing it.

1. Press **Deploy Now** and then **New Project**.
2. You can change the default values (optional).
3. Press **Create New Project**.

The deployment will start.
Wait for it to be successful (green).

_Note: you can disable Continuous Deployments for future builds._

### Access your KintoBlock
This guide assumes you already have a Gatsby project to deploy. If you need a project, you can use the [Quick Start](/docs/quick-start) or KintoHub's template [Gatsby Template](https://github.com/kintohub-examples/gatsby-site/generate) before continuing.

From your Project page.
## Deploy

1. Scroll down to the **Added KintoBlocks** list.
2. Press **Open** on your KintoBlock (`Gatsby Website`).
1. Navigate to [KintoHub](https://app.kintohub.com/) and login/sign-up your account.

And that's it!
2. Create a new service of type **Static Website**.

## Deployment Configuration
3. Grant the permission needed for accessing the repo that you created in the previous step. Or if you prefer not to connect your GitHub account, you may select **Import URL** and provide your access token.

You can configure additional features directly from your Project page.
If you're not already there, select **Projects** on the left-hand navigation bar, and then click on the project you want to configure.
4. Configure the service. Add the build command `yarn && yarn build`. This command is actually doing the following:

### Basic Auth
- Install the dependencies.
- Run `gatsby build`.
- Put the generated site into the `./public` directory, which is the default value of “Build Output Path”.

1. Scroll down to the **Added KintoBlocks** list.
2. Click on the cog next to your KintoBlock (`Gatsby Website`).
3. Enable **Password Protected**.
4. Enter **Username** and **Password**.
5. Press **Done Configuring** and then **Deploy**.
6. You'll see a **Compare Versions** screen. Click **Confirm Deployment**.
5. Everything is set up, now press the deploy button and wait until deployment is finished.

Wait for the deployment to be successful.
Refresh the page, your website is now protected.
6. Once the deployment is finished you can close the release logs, check the **Access tab** and copy the URL there. Paste it to the browser and you will see your website is live!

### Custom domain

1. Scroll down to the **Added KintoBlocks** list.
2. Click on the cog next to your KintoBlock (`Gatsby Website`).
3. Under **Custom Domain**, enter your custom domain name.
4. Follow the instructions under _Setup_.
5. Press **Done Configuring** and then **Deploy**.
6. You'll see a **Compare Versions** screen. Click **Confirm Deployment**.
1. Access the **Domains** tab.
2. Enter your domain or subdomain you wish to map to your service.
3. Click **Add Domain**.
4. Follow the instructions to add a **CNAME** key and value to your DNS host provider.
5. Click **OK**.

Wait for the deployment to be successful.
Access your new custom domain.
Wait for the certificate to be generated and access your new custom domain.
Note: your DNS might take some time to update your domain.

## Support

Chat with KintoHub developers on [Discord](https://discordapp.com/invite/QVgqWuw) or email `ben@kintohub.com`.
Chat with KintoHub developers on [Discord](https://kintohub.com/discord).
3 changes: 1 addition & 2 deletions docs/docs/deploying-to-render.md
Original file line number Diff line number Diff line change
@@ -25,12 +25,11 @@ This guide assumes you already have a Gatsby project to deploy. If you need a pr

You can set up a Gatsby site on Render in two quick steps:

1. Create a new **Web Service** on Render, and give Render permission to access your GitHub repo.
1. Create a new **Static Site** on Render, and give Render permission to access your GitHub repo.
2. Use the following values during creation:

| | |
| --------------------- | ------------------------------------------ |
| **Environment** | `Static Site` |
| **Build Command** | `gatsby build` (or your own build command) |
| **Publish Directory** | `public` (or your own output directory) |

8 changes: 4 additions & 4 deletions docs/docs/emotion.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ gatsby new emotion-tutorial https://github.com/gatsbyjs/gatsby-starter-hello-wor
Second, install the necessary dependencies for Emotion and Gatsby.

```shell
npm install gatsby-plugin-emotion @emotion/core@^10.0.5 @emotion/styled
npm install gatsby-plugin-emotion @emotion/react @emotion/styled
```

And then add the plugin to your site's `gatsby-config.js`:
@@ -35,7 +35,7 @@ Now create a sample Emotion page at `src/pages/index.js`:
```jsx:title=src/pages/index.js
import React from "react"
import styled from "@emotion/styled"
import { css } from "@emotion/core"
import { css } from "@emotion/react"

const Container = styled.div`
margin: 3rem auto;
@@ -123,7 +123,7 @@ To start, create a new Gatsby site with the [hello world starter](https://github
```shell
gatsby new global-styles https://github.com/gatsbyjs/gatsby-starter-hello-world
cd global-styles
npm install gatsby-plugin-emotion @emotion/core@^10.0.5 @emotion/styled
npm install gatsby-plugin-emotion @emotion/react @emotion/styled
```

Create `gatsby-config.js` and add the Emotion plugin:
@@ -138,7 +138,7 @@ Next, add a layout component at `src/components/layout.js`:

```jsx:title=src/components/layout.js
import React from "react"
import { Global, css } from "@emotion/core"
import { Global, css } from "@emotion/react"
import styled from "@emotion/styled"

const Wrapper = styled("div")`
Loading