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: {
|
||||
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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user