Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"bugs": {
"url": "https://github.com/reactjs/reactjs.org"
},
"resolutions": {
"gatsby/graphql": "0.10.5",
"gatsby/react": "16.0.0",
"gatsby/react-dom": "16.0.0",
"eslint-plugin-relay/graphql": "0.10.5"
},
"dependencies": {
"array-from": "^2.1.1",
"babel-eslint": "^8.0.1",
Expand All @@ -25,30 +19,30 @@
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-relay": "^0.0.19",
"flow-bin": "^0.56.0",
"gatsby": "^1.9.181",
"gatsby": "^1.9.273",
"gatsby-link": "^1.6.9",
"gatsby-plugin-catch-links": "^1.0.9",
"gatsby-plugin-feed": "^1.3.9",
"gatsby-plugin-glamor": "^1.6.4",
"gatsby-plugin-google-analytics": "^1.0.4",
"gatsby-plugin-manifest": "^1.0.4",
"gatsby-plugin-netlify": "^1.0.4",
"gatsby-plugin-netlify": "^1.0.21",
"gatsby-plugin-nprogress": "^1.0.7",
"gatsby-plugin-react-helmet": "^1.0.3",
"gatsby-plugin-react-next": "^1.0.3",
"gatsby-plugin-sharp": "^1.6.2",
"gatsby-plugin-sharp": "^1.6.48",
"gatsby-plugin-twitter": "^1.0.10",
"gatsby-remark-autolink-headers": "^1.4.4",
"gatsby-remark-code-repls": "^1.0.2",
"gatsby-remark-copy-linked-files": "^1.5.2",
"gatsby-remark-embed-snippet": "^1.0.22",
"gatsby-remark-images": "^1.5.11",
"gatsby-remark-images": "^1.5.67",
"gatsby-remark-prismjs": "^1.2.24",
"gatsby-remark-responsive-iframe": "^1.4.3",
"gatsby-remark-smartypants": "^1.4.3",
"gatsby-source-filesystem": "^1.4.4",
"gatsby-transformer-remark": "^1.7.2",
"gatsby-transformer-sharp": "^1.6.1",
"gatsby-transformer-remark": "^1.7.44",
"gatsby-transformer-sharp": "^1.6.27",
"glamor": "^2.20.40",
"hex2rgba": "^0.0.1",
"prettier": "^1.7.4",
Expand Down Expand Up @@ -84,7 +78,7 @@
"format:source": "prettier --config .prettierrc --write \"{gatsby-*.js,{flow-typed,plugins,src}/**/*.js}\"",
"format:examples": "prettier --config .prettierrc.examples --write \"examples/**/*.js\"",
"lint": "eslint .",
"netlify": "yarn install && yarn build",
"netlify": "rimraf node_modules && yarn install --frozen-lockfile --check-files && yarn build",
"nit:source": "prettier --config .prettierrc --list-different \"{gatsby-*.js,{flow-typed,plugins,src}/**/*.js}\"",
"nit:examples": "prettier --config .prettierrc.examples --list-different \"examples/**/*.js\"",
"prettier": "yarn format:source && yarn format:examples",
Expand Down
4 changes: 3 additions & 1 deletion src/pages/docs/error-decoder.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export const pageQuery = graphql`
markdownRemark(fields: {slug: {eq: $slug}}) {
html
fields {
path
path {
id
}
}
frontmatter {
title
Expand Down
4 changes: 3 additions & 1 deletion src/templates/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export const pageQuery = graphql`
}
fields {
date(formatString: "MMMM DD, YYYY")
path
path {
id
}
slug
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/templates/community.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const pageQuery = graphql`
prev
}
fields {
path
path {
id
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KyleAMathews any idea why this now requires { ... }?

screen shot 2018-07-16 at 9 23 53 pm

}
slug
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/templates/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const pageQuery = graphql`
prev
}
fields {
path
path {
id
}
slug
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/templates/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const pageQuery = graphql`
prev
}
fields {
path
path {
id
}
slug
}
}
Expand Down
20 changes: 12 additions & 8 deletions src/utils/sectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ import navDocs from '../../content/docs/nav.yml';
// $FlowExpectedError
import navTutorial from '../../content/tutorial/nav.yml';

const sectionListDocs = navDocs.map((item: Object): Object => ({
...item,
directory: 'docs',
}));
const sectionListDocs = navDocs.map(
(item: Object): Object => ({
...item,
directory: 'docs',
}),
);

const sectionListCommunity = navCommunity.map((item: Object): Object => ({
...item,
directory: 'community',
}));
const sectionListCommunity = navCommunity.map(
(item: Object): Object => ({
...item,
directory: 'community',
}),
);

export {
sectionListCommunity,
Expand Down
Loading