From 123b19f43425b0f3e3581bb9c1bdbeb29ddb005e Mon Sep 17 00:00:00 2001 From: Kyle Gill Date: Wed, 2 Sep 2020 16:43:55 -0600 Subject: [PATCH] change references from codesandbox to gatsby cloud (#26767) --- docs/contributing/docs-contributions.md | 4 +- docs/docs/graphql-reference.md | 54 ++++++++++++------------- docs/docs/recipes/querying-data.md | 8 ++-- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/contributing/docs-contributions.md b/docs/contributing/docs-contributions.md index de78bee8cd041..12dbe2b985c6b 100644 --- a/docs/contributing/docs-contributions.md +++ b/docs/contributing/docs-contributions.md @@ -172,13 +172,13 @@ When you're new to Gatsby there can be a lot of words to learn... There are embedded examples in a few places in the docs (like the [GraphQL Reference guide](/docs/graphql-reference/)) that provide a working version of the code described. In the specific example of the GraphQL Query Options Reference page, these examples of the GraphiQL interface show how data can be queried from Gatsby's data layer. -To write a new GraphQL example, a CodeSandbox project with a Gatsby site can be opened at its server container link, for example: https://711808k40x.sse.codesandbox.io/. Because CodeSandbox is running a Gatsby site in [`develop` mode instead of `build` mode](/docs/overview-of-the-gatsby-build-process/) you can navigate to GraphiQL by adding `/___graphql` to the link. Write an example query, and when you have a query you are satisfied with, the query fields and names will be saved as URL parameters so you can share the link. Copy the URL and use it as the `src` of an iframe: +To write a new GraphQL example, a CodeSandbox project with a Gatsby site can be opened at its server container link, for example: https://graphql-reference-1124782374.gtsb.io/. Because CodeSandbox is running a Gatsby site in [`develop` mode instead of `build` mode](/docs/overview-of-the-gatsby-build-process/) you can navigate to GraphiQL by adding `/___graphql` to the link. Write an example query, and when you have a query you are satisfied with, the query fields and names will be saved as URL parameters so you can share the link. Copy the URL and use it as the `src` of an iframe: ```mdx Here's an example of a GraphQL query inline: - @@ -53,7 +53,7 @@ There are several ways to reduce the number of results from a query. Here `total -Example: [`anotherDate(formatString: "dddd, MMMM Do YYYY, h:mm:ss a") # Sunday, August 5th 2018, 10:56:14 am`]() +Example: [`anotherDate(formatString: "dddd, MMMM Do YYYY, h:mm:ss a") # Sunday, August 5th 2018, 10:56:14 am`]() Dates also accept the `fromNow` and `difference` function. The former returns a string generated with Moment.js' [`fromNow`](https://momentjs.com/docs/#/displaying/fromnow/) function, the latter returns the difference between the date and current time (using Moment.js' [`difference`](https://momentjs.com/docs/#/displaying/difference/) function).