-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into parallel-sketch
- Loading branch information
Showing
103 changed files
with
633 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
label: blog | ||
hide_body: false | ||
is_partial: false | ||
fields: | ||
- name: title | ||
label: Title | ||
type: text | ||
hidden: false | ||
default: '' | ||
- name: date | ||
label: Date | ||
type: datetime | ||
hidden: false | ||
default: '' | ||
- name: author | ||
label: Author | ||
type: text | ||
hidden: false | ||
default: '' | ||
- name: tags | ||
label: Tags | ||
type: tag_list | ||
hidden: false | ||
default: '' | ||
- name: image | ||
label: Image | ||
type: file | ||
hidden: false | ||
default: '' | ||
- name: showImageInArticle | ||
label: 'Show Image? ' | ||
type: boolean | ||
hidden: false | ||
default: '' | ||
pages: | ||
- docs/blog/gatsby-days-talks-are-here.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
label: Docs | ||
hide_body: false | ||
is_partial: false | ||
fields: | ||
- type: text | ||
name: title | ||
label: Title |
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,41 @@ | ||
--- | ||
new_page_extension: md | ||
auto_deploy: false | ||
admin_path: | ||
webhook_url: | ||
sections: | ||
- type: heading | ||
label: Content | ||
- type: directory | ||
path: docs/blog | ||
label: Blog Posts | ||
create: all | ||
match: "**/*.md" | ||
templates: | ||
- blog | ||
- type: directory | ||
path: docs/docs | ||
label: Docs | ||
create: all | ||
match: "**/*.md" | ||
templates: | ||
- making-a-site-with-user-authentication | ||
- type: document | ||
path: docs/blog/author.yaml | ||
label: Authors | ||
- type: document | ||
path: docs/sites.yml | ||
label: Featured Sites | ||
- type: document | ||
path: docs/starters.yml | ||
label: Starters | ||
upload_dir: www/src/uploads | ||
public_path: "/src/uploads" | ||
front_matter_path: '' | ||
use_front_matter_path: false | ||
file_template: ":filename:" | ||
build: | ||
preview_command: npm run forestry:preview | ||
preview_env: | ||
- BUILD_DIR=www/ | ||
output_directory: www/public |
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 |
---|---|---|
|
@@ -29,3 +29,6 @@ infrastructure | |
|
||
# coverage | ||
coverage | ||
|
||
# forestry files | ||
.forestry/**/* |
File renamed without changes
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
File renamed without changes
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,32 @@ | ||
--- | ||
title: Gatsby Days Talks are Here! | ||
date: 2019-01-09T08:00:00+00:00 | ||
author: Linda Watkins | ||
tags: | ||
- Gatsby Days | ||
- Presentations | ||
- Talks | ||
- Videos | ||
image: "./images/Gatsby-Days copy.png" | ||
showImageInArticle: true | ||
--- | ||
|
||
The wait is over! Gatsby Days talks are posted below. Gatsby Days are one-day, in-person conferences on the modern website technology stack and the future of the web. | ||
|
||
Get caught up on all the latest presentations from Gatsby Days in Mountain View, California such as Kyle Mathews' presentation on the future of the web, Chris Biscardi on Gatsby Themes, product announcements, how to sell Gatsby to your clients, and more. Check out the recordings below and if you'd like to see a Gatsby Days come to your city, [**cast your vote here**](https://www.gatsbyjs.com/gatsby-days-signup/). | ||
|
||
### Gatsby Days Talks | ||
|
||
[How We Got Here and The Future of Website Development](https://www.gatsbyjs.com/gatsby-days-keynote-kyle/) by **Kyle Mathews**, CEO and Co-founder, Gatsby | ||
|
||
[Introducing Gatsby Themes](https://www.gatsbyjs.com/gatsby-days-themes-chris/) with **Chris Biscardi**, Developer, Gatsby | ||
|
||
[Announcing Gatsby Preview: The Future is in the Cloud ](https://www.gatsbyjs.com/gatsby-days-preview-andrew/) with **Andrew Rhyne**, Cloud Services Engineer, Gatsby | ||
|
||
[The Power of Positioning: Selling Gatsby to Your Clients](https://www.gatsbyjs.com/gatsby-days-positioning-linda/) by **Linda Watkins**, Director of Marketing, Gatsby | ||
|
||
[The Journey to the Content Mesh](https://www.gatsbyjs.com/gatsby-days-content-mesh-sam/) with **Sam Bhagwat**, Co-Founder and Head of Enterprise, Gatsby | ||
|
||
[How Gatsby Does High-Impact, Low-Effort UX Research (and You Can Too!)](https://www.gatsbyjs.com/gatsby-days-UXresearch-shannon/) by **Shannon Soper**, UX Specialist and Head of Learning, Gatsby | ||
|
||
[Move Fast, Don't Break Things: Trends in Modern Web Development with Mediacurrent](https://www.gatsbyjs.com/gatsby-days-mediacurrent-ben/) by **Ben Robertson**, Front-End Developer, Mediacurrent |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
16 changes: 16 additions & 0 deletions
16
e2e-tests/development-runtime/cypress/integration/functionality/sub-plugin-caching.js
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,16 @@ | ||
/* | ||
* This e2e test validates that the cache structure | ||
* is unique per plugin (even sub-plugins) | ||
* and can interact between Gatsby lifecycles and a plugin | ||
*/ | ||
describe(`sub-plugin caching`, () => { | ||
beforeEach(() => { | ||
cy.visit(`/2018-12-14-hello-world/`).waitForAPI(`onRouteUpdate`) | ||
}) | ||
|
||
it(`has access to custom sub-plugin cache`, () => { | ||
cy.getTestElement(`gatsby-remark-subcache-value`) | ||
.invoke(`text`) | ||
.should(`eq`, `Hello World`) | ||
}) | ||
}) |
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
1 change: 1 addition & 0 deletions
1
e2e-tests/development-runtime/plugins/gatsby-remark-subcache/constants.js
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 @@ | ||
exports.id = `gatsby-remark-subcache-value` |
5 changes: 5 additions & 0 deletions
5
e2e-tests/development-runtime/plugins/gatsby-remark-subcache/gatsby-node.js
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,5 @@ | ||
const { id } = require(`./constants`) | ||
|
||
exports.onPreBootstrap = async ({ cache }) => { | ||
await cache.set(id, `Hello World`) | ||
} |
11 changes: 11 additions & 0 deletions
11
e2e-tests/development-runtime/plugins/gatsby-remark-subcache/index.js
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,11 @@ | ||
const visit = require(`unist-util-visit`) | ||
const { id } = require(`./constants`) | ||
|
||
module.exports = function remarkPlugin({ cache, markdownAST }) { | ||
visit(markdownAST, `html`, async node => { | ||
if (node.value.match(id)) { | ||
const value = await cache.get(id) | ||
node.value = node.value.replace(/%SUBCACHE_VALUE%/, value) | ||
} | ||
}) | ||
} |
3 changes: 3 additions & 0 deletions
3
e2e-tests/development-runtime/plugins/gatsby-remark-subcache/package.json
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,3 @@ | ||
{ | ||
"name": "gatsby-remark-subcache" | ||
} |
19 changes: 19 additions & 0 deletions
19
e2e-tests/production-runtime/cypress/integration/global-styles.js
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,19 @@ | ||
const zIndex = `9001` | ||
|
||
describe(`Global style from gatsby-browser.js`, () => { | ||
beforeEach(() => { | ||
cy.visit(`/global-style`).waitForAPI(`onRouteUpdate`) | ||
}) | ||
|
||
it(`should apply any styles in root gatsby-browser.js`, () => { | ||
cy.getTestElement(`global-style`).should(`have.css`, `zIndex`, zIndex) | ||
}) | ||
|
||
it(`should apply any styles in plugin(s) gatsby-browser.js`, () => { | ||
cy.getTestElement(`global-plugin-style`).should( | ||
`have.css`, | ||
`zIndex`, | ||
zIndex | ||
) | ||
}) | ||
}) |
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,5 @@ | ||
require(`./src/index.css`) | ||
|
||
if (typeof window !== `undefined`) { | ||
window.___PageComponentLifecycleCallsLog = [] | ||
} | ||
|
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
1 change: 1 addition & 0 deletions
1
e2e-tests/production-runtime/plugins/gatsby-plugin-global-style/gatsby-browser.js
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 @@ | ||
import './index.css' |
Oops, something went wrong.