Docs pages are generated at build time. To create a docs page, create a markdown file in the src/(static-pages)/(developer-resources)/docs folder.
The pages should be written in mdx. Nextbase is configured to use mdx within next.config.mjs and custom components are configured using the
src/mdx-components.tsx file. MDX is also configured to use rehype and remark plugins to allow for syntax highlighting and other features.
Here is the relevant next.config.mjs configuration.
SEO
You can add SEO to your mdx page in the same way you would add to a typescript page.tsx component, using metadata.