hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
983 stars 378 forks source link

Fix to allow non-md pages to render correctly #79

Closed cmacmillan closed 3 years ago

cmacmillan commented 3 years ago

Gatsby-gitbook-starter uses 'gatsby-plugin-layout' to drape ./src/templates/docs.js overtop of all the pages on the site. This creates an issue where if a user tries to create a page using either exports.createPages or by adding a file to src/pages (as described here https://www.gatsbyjs.com/docs/recipes/pages-layouts/) the page will just render as empty because this function returns null.

You can see that a user reported this issue here https://github.com/hasura/gatsby-gitbook-starter/issues/55