1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

make it clear we query whole dev-ocean repo

This commit is contained in:
Matthias Kretschmann 2018-11-16 14:52:42 +01:00
parent 717e0939a8
commit f011510749
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -54,7 +54,7 @@ exports.createPages = ({ graphql, actions }) => {
}
}
architectureDocs: allMarkdownRemark(
devOceanDocs: allMarkdownRemark(
filter: {
fileAbsolutePath: { regex: "/dev-ocean/doc/" }
}
@ -98,13 +98,14 @@ exports.createPages = ({ graphql, actions }) => {
})
})
// Create Architecture section from dev-ocean contents
const postsArchitecture = result.data.architectureDocs.edges
// Create pages from dev-ocean contents
const postsDevOcean = result.data.devOceanDocs.edges
postsArchitecture
postsDevOcean
// only grab files with required frontmatter defined
.filter(
post =>
post.node.frontmatter &&
post.node.frontmatter.slug &&
post.node.frontmatter.title &&
post.node.frontmatter.description &&