-
Notifications
You must be signed in to change notification settings - Fork 734
Infra/unify docs #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infra/unify docs #1036
Changes from 14 commits
923a9b4
b3f2398
fd790fe
f906870
9af59dd
50c377c
633e718
04a1a74
17aafa3
ba7abd8
4486d1f
00e3668
065fff6
a64a7e3
4f579f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
.npmignore | ||
|
||
.cache | ||
public | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ module.exports = async ({graphql, boundActionCreators}) => { | |
const {createPage} = boundActionCreators; | ||
const result = await graphql(` | ||
{ | ||
allFile(filter: {sourceInstanceName: {eq: "markdown-pages"}}) { | ||
allFile(filter: {sourceInstanceName: {eq: "markdown-pages"}, childMarkdownRemark: {frontmatter: {path: {ne: null}}}}) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure... :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I understand the comment.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We've said we'll discuss these PRs, so let's do that when you can. |
||
edges { | ||
node { | ||
id | ||
|
@@ -24,11 +24,13 @@ module.exports = async ({graphql, boundActionCreators}) => { | |
`); | ||
|
||
result.data.allFile.edges.forEach(({node}) => { | ||
createPage({ | ||
name: node.name, | ||
path: node.childMarkdownRemark.frontmatter.path, | ||
component: path.resolve(`src/templates/markdownTemplate.js`), | ||
context: {} // additional data can be passed via context | ||
}); | ||
if (node.childMarkdownRemark.frontmatter.path) { | ||
createPage({ | ||
name: node.name, | ||
path: node.childMarkdownRemark.frontmatter.path, | ||
component: path.resolve(`src/templates/markdownTemplate.js`), | ||
context: {} // additional data can be passed via context | ||
}); | ||
} | ||
}); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const PageCreators = require('./configurations/pageCreators'); | ||
const Plugins = require('./configurations/plugins'); | ||
|
||
module.exports = { | ||
PageCreators, | ||
Plugins | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "gatsby-starter-default", | ||
"private": true, | ||
"description": "A simple starter to get up and developing quickly with Gatsby", | ||
"version": "0.1.0", | ||
"author": "Kyle Mathews <[email protected]>", | ||
"name": "uilib-docs", | ||
"description": "uilib docs template", | ||
"version": "1.0.4", | ||
"author": "Ethan Sharabi <[email protected]>", | ||
"main": "index.js", | ||
"dependencies": { | ||
"classnames": "^2.2.6", | ||
"gatsby": "^2.0.0", | ||
|
Uh oh!
There was an error while loading. Please reload this page.