docs: convert website from postcss to emotion (#2068)

This commit is contained in:
Zeb Pykosz
2020-01-23 21:55:18 -05:00
committed by Shawn Erquhart
parent 7b0838dfef
commit 3d474b1944
69 changed files with 7769 additions and 6834 deletions

View File

@ -1,8 +1,8 @@
const path = require('path');
const { createFilePath } = require('gatsby-source-filesystem');
exports.createPages = async ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators;
exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions;
const docPage = path.resolve('./src/templates/doc-page.js');
const blogPost = path.resolve('./src/templates/blog-post.js');
@ -51,8 +51,8 @@ exports.createPages = async ({ graphql, boundActionCreators }) => {
const pad = n => (n >= 10 ? n : `0${n}`);
exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
const { createNodeField } = boundActionCreators;
exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions;
if (node.internal.type === 'MarkdownRemark') {
const value = createFilePath({ node, getNode });