This guide explains the frontmatter pattern for all documentation pages.
What Was Fixed
- Dark Theme: Added
color_scheme: darkto_config.yml - Mermaid Support: Created
_includes/head_custom.htmlwith Mermaid.js integration (dark theme) - Markdown Rendering: Added frontmatter to key pages for proper Jekyll processing
- Navigation: Configured Just the Docs navigation hierarchy
Frontmatter Pattern
Every markdown file needs frontmatter at the top. Here are the patterns:
Top-Level Section Index (e.g., getting-started/index.md)
---
layout: default
title: Getting Started
nav_order: 2
has_children: true
permalink: /getting-started
---
Child Page (e.g., getting-started/installation.md)
---
layout: default
title: Installation
parent: Getting Started
nav_order: 1
---
Grandchild Page (if you have sub-sections)
---
layout: default
title: Advanced Setup
parent: Installation
grand_parent: Getting Started
nav_order: 1
---
Navigation Order
Current top-level sections (nav_order):
- Home (index.md)
- Getting Started
- Architecture
- API Reference
- Platform Support
- Development
- Hardware
- Resources
Remaining Pages to Update
You’ll need to add frontmatter to all remaining .md files in:
getting-started/(first-app.md, troubleshooting.md)architecture/(connectivity.md, data-flow.md, runtime.md, security.md)api-reference/(error-codes.md, manifest-format.md, native-api.md)platform/(esp32-s3.md, native-sim.md, nrf54l15.md, stm32.md)development/(best-practices.md, building-apps.md, debugging.md, ota-updates.md, sdk-api-reference.md, sdk-troubleshooting.md)hardware/(any child pages)resources/(faq.md, glossary.md, performance.md)
Mermaid Diagrams
Mermaid diagrams will now render automatically. Just use:
```mermaid graph TD A[Start] –> B[End] ```
The dark theme is already configured in _includes/head_custom.html.
Testing Locally
To test the site locally before pushing:
cd docs
bundle install
bundle exec jekyll serve
Then visit http://localhost:4000
Next Steps
- Add frontmatter to all remaining pages using the patterns above
- Adjust
nav_orderwithin each section as needed - Push to GitHub - pages will rebuild automatically
- Check for any broken links or formatting issues