# Getting Started This page shows the smallest useful GuideNH runtime guide layout and the first page you can author. ## Minimum Runtime Layout ```text wiki/resourcepack/ `-- assets/ `-- / `-- guidenh/ |-- assets/ | `-- example_structure.snbt `-- _en_us/ `-- index.md ``` For the built-in example guide in this repository, that resolves to: ```text wiki/resourcepack/assets/guidenh/guidenh/ ``` ## TXLoader Native Layout When deploying the same files through TXLoader, remove the outer `assets/` segment because TXLoader stores resources as `/` under `load` and `forceload`: ```text config/txloader/load/ `-- / `-- guidenh/ |-- assets/ | `-- example_structure.snbt `-- _en_us/ `-- index.md ``` For example, the standard resource-pack path `assets/guidenh/guidenh/_en_us/index.md` becomes `config/txloader/load/guidenh/guidenh/_en_us/index.md`. The same native layout works under `config/txloader/forceload/`. ## Guide Discovery GuideNH now discovers pages directly from the resource tree. Any markdown file under `assets//guidenh/_/...` is part of the guide for `:guidenh`. `index.md` is still the conventional start page and the recommended place to begin. Each `` gets its own isolated guide namespace. For example, `assets/guidenh/guidenh/_en_us/index.md` and `assets/gregtech/guidenh/_en_us/index.md` are two different pages in two different guides: `guidenh:guidenh` and `gregtech:guidenh`. Relative links such as `[Next](guide.md)` stay inside the page's own namespace; write an explicit id such as `[GT Page](gregtech:guide.md)` when you want to cross to another mod's guide. Rooted explicit paths like `gregtech:/guide.md` are also accepted. ## Fast Local Iteration If you are editing the built-in example guide in this repository, prefer the live preview workflow documented in [Live Preview](Live-Preview). That workflow points GuideNH at: ```text wiki/resourcepack/assets/guidenh/guidenh/ ``` and opens the guide automatically on startup. ## First Page ````md --- navigation: title: Root --- # Start Page Welcome to GuideNH. [Next Page](subpage.md) ```` ## Adding Navigation Metadata The smallest useful frontmatter for navigation is: ```yaml navigation: title: Root ``` Without navigation frontmatter, the page can still exist and be linked to directly, but it will not automatically appear in the guide navigation tree. If you also want a page to appear in the home page Recommended panel, add `navigation.recommend`. The field is optional, `0` is valid, and larger values appear earlier. ## Adding Assets Place page-local assets next to the page file: ```text wiki/resourcepack/assets/guidenh/guidenh/_en_us/test1.png ``` Reference them relatively from markdown: ````md ![Example](test1.png) ```` Place shared guide assets under the guide's own `assets/` folder: ```text wiki/resourcepack/assets/guidenh/guidenh/assets/example_structure.snbt ``` Reference them with a rooted guide path: ````md ```` ## Next Steps - [Live Preview](Live-Preview) - [Guide Page Format](Guide-Page-Format) - [Navigation](Navigation) - [Images And Assets](Images-And-Assets) - [Tags Reference](Tags-Reference)