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: gatsby@2.26.1
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gatsby@2.27.0
Choose a head ref

Commits on Nov 10, 2020

  1. chore(release): Publish pre-release

     - babel-plugin-remove-graphql-queries@2.11.0-next.0
     - babel-preset-gatsby-package@0.7.0-next.0
     - babel-preset-gatsby@0.7.0-next.0
     - gatsby-admin@0.3.0-next.0
     - gatsby-cli@2.14.0-next.0
     - gatsby-codemods@1.5.0-next.0
     - gatsby-core-utils@1.5.0-next.0
     - gatsby-cypress@0.6.0-next.0
     - gatsby-design-tokens@2.2.0-next.0
     - gatsby-dev-cli@2.9.0-next.0
     - gatsby-graphiql-explorer@0.6.0-next.0
     - gatsby-image@2.6.0-next.0
     - gatsby-legacy-polyfills@0.2.0-next.0
     - gatsby-link@2.6.0-next.0
     - gatsby-page-utils@0.4.0-next.0
     - gatsby-plugin-benchmark-reporting@0.4.0-next.0
     - gatsby-plugin-canonical-urls@2.5.0-next.0
     - gatsby-plugin-catch-links@2.5.0-next.0
     - gatsby-plugin-coffeescript@2.5.0-next.0
     - gatsby-plugin-create-client-paths@2.5.0-next.0
     - gatsby-plugin-cxs@2.5.0-next.0
     - gatsby-plugin-emotion@4.5.0-next.0
     - gatsby-plugin-facebook-analytics@2.6.0-next.0
     - gatsby-plugin-feed@2.8.0-next.0
     - gatsby-plugin-flow@1.5.0-next.0
     - gatsby-plugin-fullstory@2.5.0-next.0
     - gatsby-plugin-glamor@2.5.0-next.0
     - gatsby-plugin-google-analytics@2.6.0-next.0
     - gatsby-plugin-google-gtag@2.3.0-next.0
     - gatsby-plugin-google-tagmanager@2.6.0-next.0
     - gatsby-plugin-graphql-config@0.2.0-next.0
     - gatsby-plugin-guess-js@1.5.0-next.0
     - gatsby-plugin-image@0.2.0-next.0
     - gatsby-plugin-jss@2.5.0-next.0
     - gatsby-plugin-layout@1.5.0-next.0
     - gatsby-plugin-less@4.2.0-next.0
     - gatsby-plugin-lodash@3.5.0-next.0
     - gatsby-plugin-manifest@2.7.0-next.0
     - gatsby-plugin-mdx@1.5.0-next.0
     - gatsby-plugin-netlify-cms@4.5.0-next.0
     - gatsby-plugin-netlify@2.6.0-next.0
     - gatsby-plugin-no-sourcemaps@2.4.0-next.0
     - gatsby-plugin-nprogress@2.5.0-next.0
     - gatsby-plugin-offline@3.5.0-next.0
     - gatsby-plugin-page-creator@2.5.0-next.0
     - gatsby-plugin-postcss@3.2.0-next.0
     - gatsby-plugin-preact@4.2.0-next.0
     - gatsby-plugin-preload-fonts@1.4.0-next.0
     - gatsby-plugin-react-css-modules@2.5.0-next.0
     - gatsby-plugin-react-helmet@3.5.0-next.0
     - gatsby-plugin-remove-trailing-slashes@2.5.0-next.0
     - gatsby-plugin-sass@2.6.0-next.0
     - gatsby-plugin-schema-snapshot@1.2.0-next.0
     - gatsby-plugin-sharp@2.9.0-next.0
     - gatsby-plugin-sitemap@2.7.0-next.0
     - gatsby-plugin-styled-components@3.5.0-next.0
     - gatsby-plugin-styled-jsx@3.5.0-next.0
     - gatsby-plugin-styletron@5.2.0-next.0
     - gatsby-plugin-stylus@2.5.0-next.0
     - gatsby-plugin-subfont@2.4.0-next.0
     - gatsby-plugin-twitter@2.5.0-next.0
     - gatsby-plugin-typescript@2.7.0-next.0
     - gatsby-plugin-typography@2.7.0-next.0
     - gatsby-plugin-utils@0.4.0-next.0
     - gatsby-react-router-scroll@3.2.0-next.0
     - gatsby-recipes@0.4.0-next.0
     - gatsby-remark-autolink-headers@2.6.0-next.0
     - gatsby-remark-code-repls@3.4.0-next.0
     - gatsby-remark-copy-linked-files@2.5.0-next.0
     - gatsby-remark-custom-blocks@2.5.0-next.0
     - gatsby-remark-embed-snippet@4.5.0-next.0
     - gatsby-remark-graphviz@1.5.0-next.0
     - gatsby-remark-images-contentful@2.5.0-next.0
     - gatsby-remark-images@3.6.0-next.0
     - gatsby-remark-katex@3.5.0-next.0
     - gatsby-remark-prismjs@3.8.0-next.0
     - gatsby-remark-responsive-iframe@2.6.0-next.0
     - gatsby-remark-smartypants@2.5.0-next.0
     - gatsby-source-contentful@4.1.0-next.0
     - gatsby-source-drupal@3.8.0-next.0
     - gatsby-source-faker@2.5.0-next.0
     - gatsby-source-filesystem@2.6.0-next.0
     - gatsby-source-graphql@2.9.0-next.0
     - gatsby-source-hacker-news@2.6.0-next.0
     - gatsby-source-lever@2.5.0-next.0
     - gatsby-source-medium@2.5.0-next.0
     - gatsby-source-mongodb@2.5.0-next.0
     - gatsby-source-npm-package-search@2.5.0-next.0
     - gatsby-source-shopify@3.5.0-next.0
     - gatsby-source-wikipedia@2.5.0-next.0
     - gatsby-source-wordpress@3.6.0-next.0
     - gatsby-telemetry@1.5.0-next.0
     - gatsby-theme@0.3.0-next.0
     - gatsby-transformer-asciidoc@1.5.0-next.0
     - gatsby-transformer-csv@2.5.0-next.0
     - gatsby-transformer-documentationjs@4.5.0-next.0
     - gatsby-transformer-excel@2.6.0-next.0
     - gatsby-transformer-hjson@2.6.0-next.0
     - gatsby-transformer-javascript-frontmatter@2.5.0-next.0
     - gatsby-transformer-javascript-static-exports@2.6.0-next.0
     - gatsby-transformer-json@2.6.0-next.0
     - gatsby-transformer-pdf@1.5.0-next.0
     - gatsby-transformer-react-docgen@5.4.0-next.0
     - gatsby-transformer-remark@2.11.0-next.0
     - gatsby-transformer-screenshot@2.5.0-next.0
     - gatsby-transformer-sharp@2.7.0-next.0
     - gatsby-transformer-sqip@2.6.0-next.0
     - gatsby-transformer-toml@2.6.0-next.0
     - gatsby-transformer-xml@2.5.0-next.0
     - gatsby-transformer-yaml@2.6.0-next.0
     - gatsby@2.27.0-next.0
    vladar committed Nov 10, 2020
    Copy the full SHA
    3ed71f9 View commit details
  2. fix(gatsby-transformer-asciidoc): fails when doc doesn't have title (#…

    …27865)
    
    * title field is optional, so check if it exists
    
    * previous commit did not check for existence of title correctly, fixed
    jerrydevs authored Nov 10, 2020
    Copy the full SHA
    ce43564 View commit details
  3. Copy the full SHA
    a98ca49 View commit details
  4. Copy the full SHA
    5e2b3ee View commit details

Commits on Nov 11, 2020

  1. Copy the full SHA
    c6d754a View commit details
  2. Copy the full SHA
    172cb10 View commit details
  3. pref(gatsby-plugin-mdx): add lessBabel option, 40% perf win (#27941)

    * pref(gatsby-plugin-mdx): add lessBabel option, 40% perf win
    
    * clean up
    
    * Add e2e tests with the lessBabel option
    
    * Add `lessBabel` option to other mdx tests where relevant
    pvdz authored Nov 11, 2020
    Copy the full SHA
    3c4069f View commit details
  4. feat(gatsby-recipes): add Chakra UI recipe (#27721)

    * feat(gatsby-recipes): add Chakra UI recipe
    
    * feat(gatsby-recipes): Add Chakra UI recipe to menu
    
    * fix: revert to use GatsbyShadowFile
    
    Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
    
    * fix: remove unused code
    
    Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
    shoxton and KyleAMathews authored Nov 11, 2020
    Copy the full SHA
    d0c94e9 View commit details
  5. Added snipcart recipe to gatsby-recipes package

    Francis Cote authored and KyleAMathews committed Nov 11, 2020
    Copy the full SHA
    642876d View commit details
  6. Fixed typo and formating in snipcart.mdx recipe file

    Francis Cote authored and KyleAMathews committed Nov 11, 2020
    Copy the full SHA
    6ad8120 View commit details
  7. Copy the full SHA
    e4aeff5 View commit details

Commits on Nov 12, 2020

  1. Copy the full SHA
    c7af18d View commit details
  2. perf(gatsby): pull in cache lib and change lock from fs to mem (#27873)

    * Inline the fs cache handler
    
    Imported from https://github.com/rolandstarke/node-cache-manager-fs-hash with applied prettier/eslint styles (no manual fixes).
    
    We already use this from https://github.com/rolandstarke/node-cache-manager-fs-hash but we need to pull it in in order to subdue the fs-based locking mechanism and replace it for an in-memory lock.
    
    * Satisfy TS checker
    
    * perf(gatsby): replace fs-based lock with in-memory lock
    
    * Remove dependency, update yarn.lock
    
    * Port tests
    
    From https://github.com/rolandstarke/node-cache-manager-fs-hash/blob/master/test/index.test.js
    
    * Actually set the lock
    
    * review feedback
    
    * Copy license int imported files
    pvdz authored Nov 12, 2020
    Copy the full SHA
    84aae96 View commit details
  3. Copy the full SHA
    3fda83b View commit details
  4. Copy the full SHA
    001e045 View commit details
  5. Copy the full SHA
    08447bd View commit details
  6. Copy the full SHA
    3675467 View commit details
  7. fix(gatsby): allow unknown plugin options (#27938)

    * fix(gatsby): allow unknown plugin options
    
    * Warn on unknown options
    
    * Add telemetry for unknown plugin options
    
    * Log validation errors only
    mxstbr authored Nov 12, 2020
    Copy the full SHA
    412b523 View commit details
  8. chore(deps): update minor and patch for gatsby-admin (#27896)

    * chore(deps): update minor and patch for gatsby-admin
    
    * Revert breaking gatsby-interface upgrade
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    3 people authored Nov 12, 2020
    Copy the full SHA
    fb96705 View commit details
  9. Copy the full SHA
    ccceda3 View commit details
  10. Copy the full SHA
    ac37599 View commit details
  11. docs(gatsby-source-contentful): clean up changelog (#28000)

    * docs(gatsby-source-contentful): clean up changelog
    
    * Update CHANGELOG.md
    
    * Fix source-contentful changelog formatting
    stefanjudis authored Nov 12, 2020
    Copy the full SHA
    83a8f13 View commit details
  12. Remove CODEOWNERS

    sidharthachatterjee committed Nov 12, 2020
    Copy the full SHA
    8005d02 View commit details
  13. feat(develop): add explicit express handler for page-data requests (#…

    …27882)
    
    * feat(develop): add explicit express handler for page-data requests and dont rely on express-static
    
    * don't crash process on errors trying to read page-data
    
    * fix(prod-404): remove "/404.html" page when tracked 404 is deleted
    
    * test(e2e-dev): rename not only page-data file but also page component
    
    new express handler will try to load the page result if page exists in store
    so to mimic 404 page not existing we actually need to delete that page
    
    * fix: make sure there is response for every page-data fetch request
    
    * drop debugging logs
    pieh authored Nov 12, 2020
    Copy the full SHA
    3d0de4a View commit details
  14. feat(create-gatsby): Add create-gatsby (#27703)

    * Add create-gatsby
    
    * add question and readme, update some wording
    
    * Update readme
    
    * Update handling of questions
    
    * Stylish!
    
    * Update message
    
    * Update messages
    
    * Catch ctrl^c
    
    * v0.0.0-2
    
    * Add test
    
    * Fix test
    
    * feat(gatsby): Add "gatsby plugin add" command
    
    * Load readme from local package
    
    * ensure skipped steps are actually skipped
    
    * attempt to add some more tests
    
    * Move command to cli
    
    * Try to install plugins
    
    * feat(create-gatsby): add wip plugin configuration forms (#27801)
    
    * add wip plugin configuration forms
    
    * Use plugins array
    
    * Typings
    
    Co-authored-by: Matt Kane <matt@gatsbyjs.com>
    
    * Install plugins
    
    * Add error handling
    
    * Return, don't exit
    
    * Fix tests
    
    * Resolve themes relative to root
    
    * Change back to original dir
    
    * Use starter with canary
    
    * v0.0.0-3
    
    * Fix to force publish
    
    * Working!
    
    * Change from review
    
    * Fix package name
    
    * Use gatsby-source-wordpress-experimental
    
    * Add schema import script
    
    * v0.0.0-4
    
    * Add dep
    
    * v0.0.0-5
    
    * handle peer dependencies
    
    * forgot to save a file
    
    * bump core-utils dependency
    
    * update styling and text to match Flo's design, in progress
    
    * use magenta for all actions to be taken
    
    * add final prompts
    
    * consistent coloring
    
    * consistent coloring
    
    * consistent coloring
    
    * Initial input test
    
    * Layout helpers
    
    * Add custom textinput prompt
    
    * Fixes to hint
    
    * Fix error
    
    * Add select control
    
    * update options for gatsby new
    
    * Tab to end
    
    * update tests
    
    * send both tabs
    
    * it was the right hex code, or not
    
    * order shouldn't matter but I'm very confused
    
    * will slash tab work
    
    * Formatting fixes
    
    * v0.0.0-6
    
    * use down inside of tab
    
    * test enter
    
    * trying one more thing, but suspect it's unrelated
    
    * Update packages/create-gatsby/src/cmses.json
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update packages/create-gatsby/src/styles.json
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * one more time
    
    * bane of my existence
    
    * try different keys for different OS
    
    * somehow bypasses linter
    
    * remove console.log
    
    * add fake plugin schemas for other cmses
    
    * Fix test
    
    * Longer tick
    
    * Add description to form inputs
    
    * Test changes
    
    * increase interval
    
    * add initial working test
    
    * missing return type
    
    * not sure why linter keeps skipping these diles
    
    * all tests except project name exists
    
    * just in case it's a timeout thing
    
    * does a single question pass
    
    * have CI run individual questions and see if we falter
    
    * Test
    
    * Burn it with fire 🔥
    
    * Move components into plugin
    
    * Replace Prismic with Dato
    
    * Install plugins at the start
    
    * Add support for plugin dependencies (#27995)
    
    * feat(create-gatsby): Add support for plugin dependencies
    
    * Fix extra plugin handling
    
    * Apply suggestions from code review
    
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    
    * Remove broken tests 😢
    
    Co-authored-by: Kyle Gill <kylerobertgill@gmail.com>
    Co-authored-by: Laurie <laurie@gatsbyjs.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    6 people authored Nov 12, 2020
    Copy the full SHA
    2371fd5 View commit details
  15. update utils dependency (#28012)

    LB authored Nov 12, 2020
    Copy the full SHA
    e520226 View commit details
  16. Copy the full SHA
    7558a71 View commit details
  17. Copy the full SHA
    8b59486 View commit details
  18. Copy the full SHA
    4865ea7 View commit details
  19. missing dependency (#28019)

    LB authored Nov 12, 2020
    Copy the full SHA
    77714a8 View commit details

Commits on Nov 13, 2020

  1. Copy the full SHA
    e99187f View commit details
  2. Copy the full SHA
    f345ca4 View commit details
  3. chore(docs): Update add-seo-component (#28022)

    Typo: location -> pathname
    lellky authored Nov 13, 2020
    Copy the full SHA
    6b4b7cd View commit details
  4. chore(gatsby-plugin-glamor): Add pluginOptionsSchema validation (#27602)

    * chore(gatsby-plugin-glamor): Add pluginOptionsSchema validation
    
    * Update package.json
    
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    MichaelDeBoey and mxstbr authored Nov 13, 2020
    Copy the full SHA
    e19a1d7 View commit details
  5. chore(gatsby-plugin-twitter): Add pluginOptionsSchema validation (#27601

    )
    
    * chore(gatsby-plugin-twitter): Add pluginOptionsSchema validation
    
    * Update package.json
    
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    MichaelDeBoey and mxstbr authored Nov 13, 2020
    Copy the full SHA
    bf6624b View commit details
  6. chore(create-gatsby): Microbundle package (#28030)

    * chore(create-gatsby): Microbundle package
    
    * Fix dep
    ascorbic authored Nov 13, 2020
    Copy the full SHA
    ff805c6 View commit details
  7. Revert "fix(gatsby): refresh browser when receiving update and runtim…

    …e errored (#27467)" (#28034)
    
    This reverts commit f227e85.
    pieh authored Nov 13, 2020
    Copy the full SHA
    076b59f View commit details
  8. Copy the full SHA
    d5807ac View commit details
  9. fix(create-gatsby): Disable emojis on Windows (#28039)

    * No emojis for windows 😢
    
    * v0.0.0-9
    ascorbic authored Nov 13, 2020
    Copy the full SHA
    5fbda3c View commit details
  10. feat(gatsby-cli): add GATSBY_EXPERIMENTAL_GATSBY_NEW_FLOW flag to use…

    … create-gatsby when no options are provided (#27954)
    
    * adjust gatsby new logic to use create-gatsby
    
    * remove unused code
    
    * udpate docs for changed behavior
    
    * add basic test to verify create-gatsby is run
    
    * add flag for the new interactive experience
    
    * remove line break that doesnt need to be added
    
    * add more explicit comment
    
    * update create-gatsby version
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    gillkyle and gatsbybot authored Nov 13, 2020
    Copy the full SHA
    55821db View commit details

Commits on Nov 14, 2020

  1. Make optional SVG favicon come after the fallback (#27843)

    * Make optional SVG favicon come after the fallback
    
    Fixes #26083 Chrome choosing the favicon which comes last.
    
    * Flip brackets/parens
    
    * Update snapshots
    
    Co-authored-by: Ciro Mattia Gonano <ciromattia@gmail.com>
    trevorblades and ciromattia authored Nov 14, 2020
    Copy the full SHA
    3b9a9fe View commit details
  2. Copy the full SHA
    d4ab6d2 View commit details
  3. fix(plugin-manifest): Allow for all valid WebAppManifest properties (#…

    …27951)
    
    * bring in complete(albeit outdated) WebAppManifest validation frrom previous unmerged PR
    
    * Cleanup Gatsby Plugin Options
    
    * update validation to match recent spec changes
    
    * update compatible gatsby version
    
    * reomve unused service worker object and fix numberic string
    
    * lint
    
    * add details from suplementry spec
    
    * final return
    
    * Prettify
    
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    moonmeister and mxstbr authored Nov 14, 2020
    Copy the full SHA
    88b990a View commit details

Commits on Nov 15, 2020

  1. Copy the full SHA
    4c400f3 View commit details

Commits on Nov 16, 2020

  1. add query pluginOption for mongodb plugin (#27756)

    * add query pluginOption for mongodb plugin
    
    * add documention for pluginOption
    
    * add query example to README.md
    nm123github authored Nov 16, 2020
    Copy the full SHA
    58747b2 View commit details
  2. chore(release): Publish pre-release

     - create-gatsby@0.0.0-next.0
     - gatsby-admin@0.3.0-next.1
     - gatsby-cli@2.14.0-next.1
     - gatsby-plugin-glamor@2.5.0-next.1
     - gatsby-plugin-manifest@2.7.0-next.1
     - gatsby-plugin-mdx@1.5.0-next.1
     - gatsby-plugin-sass@2.6.0-next.1
     - gatsby-plugin-twitter@2.5.0-next.1
     - gatsby-recipes@0.4.0-next.1
     - gatsby-remark-images@3.6.0-next.1
     - gatsby-source-mongodb@2.5.0-next.1
     - gatsby-telemetry@1.5.0-next.1
     - gatsby-transformer-asciidoc@1.5.0-next.1
     - gatsby-transformer-sharp@2.7.0-next.1
     - gatsby@2.27.0-next.1
    KyleAMathews committed Nov 16, 2020
    Copy the full SHA
    ba5abc8 View commit details
  3. test(gatsby-plugin-image): gatsby-image-server.ts (#27989)

    Marvin Frachet authored Nov 16, 2020
    Copy the full SHA
    51454f6 View commit details
  4. Copy the full SHA
    dd8b72b View commit details
  5. perf(gatsby): fix performance regression with query dependency cleani…

    …ng (#28032)
    
    * perf(gatsby): fix performance regression with query dependency cleaning
    
    * update snapshot
    
    * More consistent codestyle
    vladar authored Nov 16, 2020
    Copy the full SHA
    de5517b View commit details
  6. Copy the full SHA
    bd9df72 View commit details
Showing 661 changed files with 12,984 additions and 4,829 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -117,6 +117,23 @@ aliases:
- notify-status:
condition: << parameters.nightly >>

e2e_tests_development_runtime_lazy_alias:
&e2e_tests_development_runtime_lazy_alias
<<: *e2e-executor
parameters:
nightly:
type: boolean
default: false
environment:
CYPRESS_PROJECT_ID: ihj5mz
CYPRESS_RECORD_KEY: 01acdce8-75bd-4280-9839-6cb215b2c84b
steps:
- e2e-test:
test_path: e2e-tests/lazy-development-runtime
skip_file_change_test: << parameters.nightly >>
- notify-status:
condition: << parameters.nightly >>

e2e_tests_gatsby-image_alias: &e2e_tests_gatsby-image_alias
<<: *e2e-executor
parameters:
@@ -271,6 +288,12 @@ jobs:
- e2e-test:
test_path: integration-tests/artifacts

integration_tests_ssr:
executor: node
steps:
- e2e-test:
test_path: integration-tests/ssr

e2e_tests_path-prefix:
<<: *e2e-executor
environment:
@@ -326,6 +349,13 @@ jobs:
e2e_tests_development_runtime:
<<: *e2e_tests_development_runtime_alias

e2e_tests_development_runtime_lazy_devjs:
<<: *e2e_tests_development_runtime_alias
environment:
GATSBY_EXPERIMENT_LAZY_DEVJS: true
CYPRESS_PROJECT_ID: ihj5mz
CYPRESS_RECORD_KEY: 01acdce8-75bd-4280-9839-6cb215b2c84b

e2e_tests_development_runtime_with_experimental_react:
<<: *e2e_tests_development_runtime_alias

@@ -582,6 +612,8 @@ workflows:
<<: *e2e-test-workflow
- integration_tests_artifacts:
<<: *e2e-test-workflow
- integration_tests_ssr:
<<: *e2e-test-workflow
- integration_tests_gatsby_cli:
requires:
- bootstrap
@@ -597,6 +629,8 @@ workflows:
<<: *e2e-test-workflow
- e2e_tests_development_runtime:
<<: *e2e-test-workflow
- e2e_tests_development_runtime_lazy_devjs:
<<: *e2e-test-workflow
- e2e_tests_production_runtime:
<<: *e2e-test-workflow
- themes_e2e_tests_production_runtime:
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -26,8 +26,6 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
examples/biz-website/public/
examples/blog/public/
integration-tests/gatsby-cli/execution-folder/*
*.un~
dist
18 changes: 0 additions & 18 deletions CODEOWNERS

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<a href="https://circleci.com/gh/gatsbyjs/gatsby">
<img src="https://circleci.com/gh/gatsbyjs/gatsby.svg?style=shield" alt="Current CircleCI build status." />
</a>
<a href="https://www.npmjs.org/package/gatsby">
<a href="https://www.npmjs.com/package/gatsby">
<img src="https://img.shields.io/npm/v/gatsby.svg" alt="Current npm package version." />
</a>
<a href="https://npmcharts.com/compare/gatsby?minimal=true">
7 changes: 6 additions & 1 deletion benchmarks/gabe-fs-mdx/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -10,6 +10,11 @@ module.exports = {
path: `${__dirname}/generated_articles/`,
},
},
`gatsby-plugin-mdx`,
{
resolve: `gatsby-plugin-mdx`,
options: {
// lessBabel: true,
},
},
],
}
1 change: 1 addition & 0 deletions benchmarks/source-contentful/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ module.exports = {
{
resolve: "gatsby-source-contentful",
options: contentfulConfig,
pageLimit: 1000,
},
],
}
2 changes: 1 addition & 1 deletion benchmarks/source-strapi/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"sharp": "^0.25.4"
"sharp": "^0.26.3"
},
"devDependencies": {
"prettier": "2.0.5"
4 changes: 4 additions & 0 deletions docs/contributing/community.md
Original file line number Diff line number Diff line change
@@ -62,6 +62,10 @@ If you need an answer right away, check out the
[Gatsby Discord](https://gatsby.dev/discord). Community & team members are happy to help you out or point you to
useful resources.

### GitHub Discussions

Directly integrated into the repository, you can use [GitHub Discussions](https://github.com/gatsbyjs/gatsby/discussions) to ask for help or share ideas.

### Hashnode

Many members of the community also use Hashnode to ask questions and share their tips. Read through
2 changes: 1 addition & 1 deletion docs/docs/add-seo-component.md
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ Now define the query and pass it to `useStaticQuery`. You can also alias query i

```jsx:title=src/components/seo.js
const SEO = ({ title, description, image, article }) => {
const { location } = useLocation()
const { pathname } = useLocation()
const { site } = useStaticQuery(query)

return null
6 changes: 3 additions & 3 deletions docs/docs/deploying-to-firebase.md
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ In this guide, you will learn how to deploy your Gatsby site to Firebase Hosting
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
"value": "public, max-age=0, must-revalidate"
}
]
},
@@ -85,7 +85,7 @@ In this guide, you will learn how to deploy your Gatsby site to Firebase Hosting
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
"value": "public, max-age=0, must-revalidate"
}
]
},
@@ -94,7 +94,7 @@ In this guide, you will learn how to deploy your Gatsby site to Firebase Hosting
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
"value": "public, max-age=0, must-revalidate"
}
]
}
2 changes: 2 additions & 0 deletions docs/docs/gatsby-cli.md
Original file line number Diff line number Diff line change
@@ -66,6 +66,8 @@ gatsby new
(Use a different starter)
```
_Note: you can try out the experimental interactive experience from the `create-gatsby` package with the `GATSBY_EXPERIMENTAL_GATSBY_NEW_FLOW=true` flag, which will prompt you with questions about the kind of site you're building, and install the plugins you'll need automatically._
See the [Gatsby starters docs](/docs/gatsby-starters/) for more details.
### `develop`
26 changes: 16 additions & 10 deletions docs/docs/recipes/styling-css.md
Original file line number Diff line number Diff line change
@@ -395,35 +395,41 @@ Hosting your own [Google Fonts](https://fonts.google.com/) locally within a proj

- A [Gatsby site](/docs/quick-start)
- The [Gatsby CLI](/docs/gatsby-cli/) installed
- Choosing a font package from [the typefaces project](https://github.com/KyleAMathews/typefaces)
- A chosen font package from [Fontsource](https://github.com/fontsource/fontsource)

### Directions

1. Run `npm install typeface-your-chosen-font`, replacing `your-chosen-font` with the name of the font you want to install from [the typefaces project](https://github.com/KyleAMathews/typefaces).
This example shows how to set up the [Open Sans](https://fonts.google.com/specimen/Open+Sans) font. If you have a different Google Font you want to use, you can find the corresponding package in [NPM](https://www.npmjs.com/search?q=fontsource) or the [packages directory in the Fontsource repository](https://github.com/fontsource/fontsource/tree/master/packages).

An example to load the popular 'Source Sans Pro' font would be: `npm install typeface-source-sans-pro`.
1. Run `npm install fontsource-open-sans` to download the necessary package files.

2. Add `import "typeface-your-chosen-font"` to a layout template, page component, or `gatsby-browser.js`.
2. Then within your app entry file or site component, import the font package. It is recommended you import it via the layout template (`layout.js`). However, importing via page component (`index.js`), or `gatsby-browser.js` are viable alternatives.

```jsx:title=src/components/layout.js
import "typeface-your-chosen-font"
import "fontsource-open-sans" // Defaults to weight 400 with all styles included.
```

If you wish to select a particular weight or style, you may specify it by changing the import path.

```jsx:title=src/components/layout.js
import "fontsource-open-sans/500.css" // Weight 500 with all styles included.
import "fontsource-open-sans/900-normal.css" // Select either normal or italic.
```

**Note**: The range of supported weights and styles a font may support is shown in each package's README file.

3. Once it's imported, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.

```css:title=src/components/layout.css
body {
font-family: "Your Chosen Font";
font-family: "Open Sans";
}
```

_NOTE: So for the above example, the relevant CSS declaration would be `font-family: 'Source Sans Pro';`_

### Additional resources

- [Fontsource repo on GitHub](https://github.com/fontsource/fontsource)
- [Typography.js](/docs/typography-js/) - Another option for using Google fonts on a Gatsby site
- [The Typefaces Project Docs](https://github.com/KyleAMathews/typefaces/blob/master/README.md)
- [Live example on Kyle Mathews' blog](https://www.bricolage.io/typefaces-easiest-way-to-self-host-fonts/)

## Using Font Awesome

30 changes: 13 additions & 17 deletions docs/docs/using-web-fonts.md
Original file line number Diff line number Diff line change
@@ -18,36 +18,32 @@ Some examples of web font services include [Google Fonts](https://fonts.google.c

### Using Google Fonts

The fastest way to get started using Google Fonts is by choosing a font from [the typefaces project](https://github.com/KyleAMathews/typefaces). This example shows how you can add Open Sans to your project.
The fastest way to get started using Google Fonts is by choosing a font from [Fontsource](https://github.com/fontsource/fontsource).

First, install the typeface package with npm:
This example shows how to set up the [Open Sans](https://fonts.google.com/specimen/Open+Sans) font. If you have a different Google Font you want to use, you can find the corresponding package in [NPM](https://www.npmjs.com/search?q=fontsource) or the [packages directory in the Fontsource repository](https://github.com/fontsource/fontsource/tree/master/packages).

```bash
npm install --save typeface-open-sans
```
1. Run `npm install fontsource-open-sans` to download the necessary package files.

Or with yarn:
2. Then within your app entry file or site component, import the font package. It is recommended you import it via the layout template (`layout.js`). However, importing via page component (`index.js`), or `gatsby-browser.js` are viable alternatives.

```bash
yarn add typeface-open-sans
```jsx:title=src/components/layout.js
import "fontsource-open-sans" // Defaults to weight 400 with all styles included.
```

In your `layout.js` file, import the typeface.
If you wish to select a particular weight or style, you may specify it by changing the import path.

```jsx:title=src/components/layout.js
import "typeface-open-sans"
import "fontsource-open-sans/500.css" // Weight 500 with all styles included.
import "fontsource-open-sans/900-normal.css" // Select either normal or italic.
```

Next, add the typeface name to the appropriate place in your CSS. In this case, you will override the `body` element's `font-family` default values.
**Note**: The range of supported weights and styles a font may support is shown in each package's README file.

3. Once it's imported, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.

```css:title=src/components/layout.css
body {
color: hsla(0, 0%, 0%, 0.8);
// highlight-next-line
font-family: "Open Sans", georgia, serif;
font-weight: normal;
word-wrap: break-word;
font-kerning: normal;
font-family: "Open Sans";
}
```

Loading