Building Blocks

has three levels of documentation organization: Chapters Pages Page Sections encourages authors to split their content across multiple pages. If you feel like you need to use nested headings, consider moving your content hierarchy one level up: Split overlong page into multiple ones Introduce chapters Focus on one thing at a time Znai Znai

Similarity with OOP

It may be useful to compare documentation design to an object-oriented programming approach: Chapters as Pages as Page Sections as It is a bad practice to have a class with loosely related methods. Similarly, it is a bad practice to have a long page with loosely related sections. packages classes methods

Table of Contents

Each documentation must have file in its root. This file contains chapters and pages. This is a file for this documentation. Take a look at the left side bar and compare it with the file content. The top entry, , corresponds to the directory of the same name. The nested entry, , corresponds to the file . toc toc introduction what-is-this getting-started flow structure landing names page-references page-toc lookup-paths search llm footer support footnotes presentation testing-is-documenting shortcuts snippets code-snippets external-code-snippets snippets-manipulation snippets-highlighting code-comments inlined-code-snippets api-parameters code-references json xml ocaml open-API CLI math jupyter-notebook cpp python java groovy markdown visuals attention-signs images image-annotations cards checkboxes charts mermaid-diagrams SVG icons headings text-badge read-more spoilers keyboard-shortcuts smart-bullet-points flow-diagrams graphviz-diagrams PlantUml iframe asciinema layout tabs page-tabs tables columns templates runtime-templates two-sides-pages two-sides-tabs jupyter-notebook-two-sides python content-extraction description-extraction auto-reference CPP doxygen-setup description-extraction auto-reference java content-extraction description-extraction auto-reference synergy-with-testing web-UI REST-API business-logic plugins plugin-types default-parameters javascript-plugin user-defined-plugins development configuration basic styling extensions top-header deployment additional-files hub introduction setup build-artifacts-watch example-references domain api znai-development local-build release-notes 2026 2025 2024 2023 2022 2021 introduction rationale rationale.md

Pages Without Chapters

You can define TOC without having chapters. Specify file names with extension without adding any indentation: page-one.md page-two.md optional-chapter page-three.md page-four.md

Hide & Skip

You can control how individual pages participate in the documentation by setting property in the file. A hidden page can be navigated to with a direct link, but it won't appear in the TOC panel and won't participate in next/prev page navigation. A skipped page is accessible via direct URL, but it won't participate in next/prev page navigation. Users navigating sequentially will skip over it. toc toc chapter-name page-one page-two {toc: "hide"} page-three chapter-name page-one page-two {toc: "skip"} page-three

Sub Headings

Only a first level heading is treated as a first class citizen: Part of TOC Smallest unit of search result Nested sub headings only add visual distinction within a page. Sub heading content of sub heading Sub Sub heading content of sub sub heading # First Class Citizen ## Sub heading content of sub heading ### Sub Sub heading content of sub sub heading

Heading Allowed Content

Keep headings text simple and short. Try to avoid putting extra formatting into headings: inconsistent heading look and feel can feel distracting. Note: Only inlined code and Links are allowed as part of the heading content. Consider sticking to a regular text.

Meta

Each documentation must have the file in its root. This file contains documentation display name, type, and optional information. meta.json JSON View On { "title": "Znai", "type": "User Guide", "category": "Documentation", "description": "Build functional, maintainable, beautiful User Guides with markdown and Znai plugins. Instant pages navigation. Local search. Multiple integrations to work with Python, Java, C++, OpenAPI, etc. Transform \"getting started\" sections into slideshow for your workshops. Manage multiple documentations with self-deployed znai hub.", "slackAttn": ["user1", "group-two"], "hidePresentationTrigger": false, "hideFootnoteList": false, "viewOn": { "link": "https://github.com/testingisdocumenting/znai/blob/master/znai-docs/znai", "title": "View Markdown" }, "support": { "link": "https://github.com/testingisdocumenting/znai/discussions", "title": "GitHub" } }