diff --git a/website-gatsby/package.json b/website-gatsby/package.json index 8db59af860..570cca6d2b 100644 --- a/website-gatsby/package.json +++ b/website-gatsby/package.json @@ -22,8 +22,8 @@ "react-dom": "^16.6.0" }, "devDependencies": { - "gatsby": "^2.3.0", - "ocular-gatsby": "1.0.0-alpha.35", - "sharp": "^0.22" + "gatsby": "^2.13.0", + "ocular-gatsby": "1.0.0-alpha.46", + "sharp": "^0.23.0" } } diff --git a/website-gatsby/src/components/site-query.jsx b/website-gatsby/src/components/site-query.jsx deleted file mode 100644 index 43e252fb5f..0000000000 --- a/website-gatsby/src/components/site-query.jsx +++ /dev/null @@ -1,113 +0,0 @@ -// This component contains the StaticQuery needed to provide data for the layout components. -// These layout components will then pass some of that information down to the rest of the site -// ie to the table of content, header, etc. - -// because this is a StaticQuery it needs to be in the local tree so that its graphQl can be -// run by gatsby. Rather, a file of the same name must have the same query in the local tree. -// During the init process, ocular copies this file over to the local tree. - - -import React from 'react'; -import { StaticQuery, graphql } from 'gatsby'; - -// All common metadata, table-of-contents etc are queried here and put in React context -const QUERY = graphql` - fragment SiteConfigFragment on Site { - siteMetadata { - config { - PROJECT_NAME - PROJECT_TYPE - PROJECT_DESC - PROJECT_URL - PROJECT_ORG - HOME_HEADING - HOME_BULLETS { - text - desc - img - } - EXAMPLES { - title - path - } - THEME_OVERRIDES { - key - value - } - PROJECTS { - name - url - } - ADDITIONAL_LINKS { - name - href - index - } - } - } - } - - fragment MarkdownNodeFragment on MarkdownRemark { - id - fields { - slug - } - frontmatter { - title - } - } - - query ConfigQuery { - site { - ...SiteConfigFragment - } - - allMarkdown: allMarkdownRemark(limit: 2000) { - edges { - node { - ...MarkdownNodeFragment - } - } - } - - tableOfContents: docsJson { - chapters { - title - level - chapters { - title - level - entries { - childMarkdownRemark { - frontmatter { - title - } - fields { - slug - } - } - } - } - entries { - childMarkdownRemark { - frontmatter { - title - } - fields { - slug - } - } - } - } - } - } -`; - -// The Layout instance is shared between pages. It queries common, static data -// and makes it available on React context -export default class SiteQuery extends React.Component { - render() { - const { onComplete } = this.props; - return ; - } -}