Click on a step to be taken to further information on the part of the process where it occurs. The basic data flow for this starter can be illustrated like this:
You give structure and content for your docs and their navigation.
↓
Gatsby pulls Markdown files in.
↓
Remark transformer parses the Markdown files.
↓
Nodes are available for manipulation in the onCreateNode hook. We add a new slug field.
↓
Doc page nodes with new slug field are turned into pages with a template in the Gatsby createPages function.
↓
We query the data with GraphQL in our doc.jsx page.
↓
The <TableOfContents / > component receives and renders the queried data.