-
Notifications
You must be signed in to change notification settings - Fork 0
Guide Page Format
ABKQPO edited this page Apr 25, 2026
·
3 revisions
GuideNH runtime pages are markdown files parsed with:
- standard markdown block and inline syntax
- YAML frontmatter
- GFM tables
- strikethrough
- MDX-style custom tags
GuideNH pages support the common markdown features used in the example guide:
- headings
- paragraphs
- inline emphasis, bold, strike, and code
- links and images
- unordered and ordered lists
- blockquotes
- horizontal rules
- fenced code blocks
- GFM tables
See wiki/resourcepack/assets/guidenh/guidenh/_en_us/markdown.md for a live sample page.
GuideNH reads the first YAML frontmatter block and parses these known keys:
| Key | Type | Meaning |
|---|---|---|
navigation |
map | Adds the page to the navigation tree |
categories |
list of strings | Adds the page to the category index |
item_ids |
list of item references | Makes the page discoverable by <ItemLink>
|
| any other key | any YAML value | Preserved in additionalProperties for extensions or tooling |
| Field | Required | Type | Notes |
|---|---|---|---|
title |
yes | string | Display name in navigation and search title fallback |
parent |
no | page id | Parent page id; omitted means top-level node |
position |
no | integer | Sibling sort order; default 0
|
icon |
no | item id | Item icon shown in navigation/search when valid |
icon_texture |
no | asset path | Texture icon path resolved like any other asset link |
icon_components |
no | map | Parsed from frontmatter but currently unused by runtime rendering |
item_ids:
- guidenh:guide
navigation:
title: Root
parent: index.md
position: 10
icon: minecraft:book
icon_texture: test1.png
categories:
- basics
- examplesGuideNH resolves ids and paths using these rules:
| Input | Meaning |
|---|---|
subpage.md |
relative to the current page |
./subpage.md |
relative to the current page |
/assets/example.png |
rooted to the current guide namespace |
guidenh:index.md |
explicit modid:path resource location |
subpage.md#anchor |
page plus anchor fragment |
https://example.com |
external HTTP/HTTPS link |
Assets use the same resolution rules as links. For example:
-
test1.pngresolves relative to the current page file. -
/assets/example_structure.snbtresolves to the guide's asset root. -
guidenh:textures/gui/example.pngresolves as an explicit resource location.
Several tags accept item references with extended syntax:
modid:name
modid:name:meta
modid:name:meta:{snbt}
Rules:
- omitted
metadefaults to0 -
*,32767, or uppercase tokens likeANYbecome wildcard meta - an SNBT tail starts at the first
{and is parsed as item NBT
Examples:
minecraft:diamond
minecraft:wool:14
minecraft:wool:*
minecraft:written_book:0:{title:TestBook,author:GuideNH}
If a page fails to parse, GuideNH creates an error page instead of crashing the guide. Invalid tags, ids, and attributes are reported inline as guide-rendered error text.