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:
parent
717e0939a8
commit
f011510749
@ -54,7 +54,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
architectureDocs: allMarkdownRemark(
|
devOceanDocs: allMarkdownRemark(
|
||||||
filter: {
|
filter: {
|
||||||
fileAbsolutePath: { regex: "/dev-ocean/doc/" }
|
fileAbsolutePath: { regex: "/dev-ocean/doc/" }
|
||||||
}
|
}
|
||||||
@ -98,13 +98,14 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Create Architecture section from dev-ocean contents
|
// Create pages from dev-ocean contents
|
||||||
const postsArchitecture = result.data.architectureDocs.edges
|
const postsDevOcean = result.data.devOceanDocs.edges
|
||||||
|
|
||||||
postsArchitecture
|
postsDevOcean
|
||||||
// only grab files with required frontmatter defined
|
// only grab files with required frontmatter defined
|
||||||
.filter(
|
.filter(
|
||||||
post =>
|
post =>
|
||||||
|
post.node.frontmatter &&
|
||||||
post.node.frontmatter.slug &&
|
post.node.frontmatter.slug &&
|
||||||
post.node.frontmatter.title &&
|
post.node.frontmatter.title &&
|
||||||
post.node.frontmatter.description &&
|
post.node.frontmatter.description &&
|
||||||
|
Loading…
Reference in New Issue
Block a user