Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into k-develop-ssr
- Loading branch information
Showing
1,083 changed files
with
40,166 additions
and
17,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
process.env.GATSBY_RECIPES_NO_COLOR = "true" | ||
process.env.GATSBY_EXPERIMENTAL_PLUGIN_OPTION_VALIDATION = "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Gatsby Contributor Covenant Code of Conduct | ||
|
||
Please check out the [Code of Conduct](https://www.gatsbyjs.org/contributing/code-of-conduct/) page on the Gatsby site. | ||
Please check out the [Code of Conduct](https://www.gatsbyjs.com/contributing/code-of-conduct/) page on the Gatsby site. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## How to Contribute | ||
|
||
For information related to contributing to Gatsby, please check out the [How to Contribute](https://www.gatsbyjs.org/contributing/how-to-contribute/) section of the documentation at the Gatsby site. | ||
For information related to contributing to Gatsby, please check out the [How to Contribute](https://www.gatsbyjs.com/contributing/how-to-contribute/) section of the documentation at the Gatsby site. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# dotenv environment variable files | ||
.env* | ||
|
||
# gatsby files | ||
.cache/ | ||
public | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Yarn | ||
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
gendata.csv | ||
yarn.lock |
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
benchmarks/gabe-markdown/README.md → benchmarks/gabe-csv-markdown/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: `Gatsby CSV Markdown Benchmark for Gabe`, | ||
description: "A blog like no other blog", | ||
author: "Bob the Blogger", | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
options: { | ||
name: `blurp`, | ||
path: __dirname + '/gendata.csv', | ||
}, | ||
}, | ||
`gatsby-transformer-remark`, | ||
`gatsby-transformer-csv`, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
const path = require(`path`) | ||
|
||
const blogPost = path.resolve(`./src/templates/blog-post.js`) | ||
|
||
exports.createPages = async ({ graphql, actions }) => { | ||
const { createPage } = actions | ||
|
||
const result = await graphql(` | ||
query { | ||
allMarkdownRemark { | ||
nodes { | ||
id | ||
frontmatter { | ||
slug | ||
title # used in prev/next | ||
} | ||
} | ||
} | ||
} | ||
`) | ||
|
||
if (result.errors) { | ||
throw result.errors | ||
} | ||
|
||
const posts = result.data.allMarkdownRemark.nodes | ||
|
||
posts.forEach(({ id, frontmatter: { slug } }, index) => { | ||
const previous = index === posts.length - 1 ? null : posts[index + 1] | ||
const next = index === 0 ? null : posts[index - 1] | ||
|
||
createPage({ | ||
path: slug, | ||
component: blogPost, | ||
context: { | ||
id, | ||
slug, | ||
previous, | ||
next, | ||
}, | ||
}) | ||
}) | ||
} | ||
|
||
// Not sure if there is a better way than to create a proxy node for markdown to pick up | ||
// I certainly can't get remark to to pick up csv nodes :( | ||
exports.onCreateNode = ({ node, actions }) => { | ||
const { createNode } = actions | ||
|
||
if (node.internal.type === `GendataCsv`) { | ||
createNode({ | ||
id: `${node.id}-MarkdownProxy`, | ||
parent: node.id, | ||
internal: { | ||
type: `MarkdownProxy`, | ||
mediaType: "text/markdown", | ||
content: node.articleContent, | ||
contentDigest: node.articleContent, | ||
}, | ||
}) | ||
} | ||
} |
Oops, something went wrong.