Skip to content

Commit

Permalink
fix: createPages only for docs content (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvarney authored Nov 26, 2021
1 parent 338f939 commit aee3722
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion @rocketseat/gatsby-theme-docs-core/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ exports.createPages = (
return graphql(
`
{
files: allFile(filter: { extension: { in: ["md", "mdx"] } }) {
files: allFile(
filter: {
extension: { in: ["md", "mdx"] }
sourceInstanceName: { eq: "docs" }
}
) {
edges {
node {
id
Expand Down

0 comments on commit aee3722

Please sign in to comment.