2.9 KiB
Miles Documentation
Live site: https://miles.radixark.com/docs
Layout
docs/
├── docs.json # Mintlify config: navigation, theme, redirects
├── index.md # Homepage
├── getting-started/ hardware-platforms/ models/ user-guide/ advanced/
├── examples/ blog/
├── developer/
│ └── ci/
└── assets/ # Images and stylesheets
Previewing locally
npm i -g mint
cd docs
mint dev
Then open http://localhost:3000.
Adding or editing a page
-
Add or edit a
.mdfile (e.g.models/qwen/qwen4.md). Every page needs frontmatter with atitleand adescription— the description becomes the meta description and the social preview text, so write one sentence that reads well on its own and stays under 160 characters. Mintlify renderstitleas the page'sh1, so do not repeat it as a#heading in the body.Convention: every landing page (a tab's
index.md— including the site homepage — a model family'sindex.md,user-guide/environments.md) titles itself after the tab or group it fronts (Welcome,User Guide,DeepSeek, …): thetitlefeeds theh1, browser tab, and search results, which have no sidebar context. It then addssidebarTitle: Overviewso the sidebar shows a short, uniform label. ThesidebarTitleis a constant — never rename it in step with the title. -
New pages need an entry in the
navigationtree indocs.json, otherwise they won't show up in the sidebar — and, because indexing follows the navigation, they stay out of the sitemap and out of search results entirely.Never give a navigation group a
root:(a pre-commit hook rejects it). A rooted group header doubles as a link, which makes some headers navigate and others merely toggle — indistinguishable until clicked. Instead, list the group's landing page as its first entry inpages(withsidebarTitle: Overview, per the convention above), so every header is label-only and every navigation target is an explicit row. -
When linking between pages, use absolute paths:
[Quick Start](/getting-started/quick-start). Drop the.mdextension. -
Do not edit anything under
examples/. Those pages, and the Examples tab ofdocs.json, are generated from theREADME.mdfiles under the repository'sexamples/directory, which is the single source of truth. Edit the README and runpython scripts/tools/sync_example_docs.py— pre-commit runs it for you and fails if the two ever diverge. -
Images and other assets go in
assets/and are referenced the same way:/assets/images/arch.png. Group them into a subdirectory once a topic has more than one image, named after the page or area that uses them:assets/images/low-precision/for low-precision charts,assets/images/brand/for the logo and favicon. A one-off image stays at the top level.