Docs Module Specification
module-docs delivers a Docusaurus-class three-level documentation system engineered for multi-volume technical manuals and clean search-engine indexing.
Directory Convention
assets/docs/
├── guide/ # Top-level volume: /docs/guide
│ ├── index.md # Default / Chinese volume overview (optional; group-only if omitted)
│ ├── index.en.md # Optional English companion (/docs/guide?lang=en)
│ ├── quickstart/
│ │ ├── index.md # Chapter: /docs/guide/quickstart
│ │ └── index.en.md # English companion: /docs/guide/quickstart?lang=en
│ └── advanced/
│ └── ssr/
│ └── index.md # Section (level 3): /docs/guide/advanced/ssr
└── changelog/
├── index.md # Set sort_children: desc to pin latest releases on top
├── v0-7-0/index.md
└── v0-7-1/index.md
- Directories starting with
_or.(such as_drafts) are skipped by both sidebar scanning and Tantivy indexing. - Both
index.mdandindex.mdxare supported, alongside optionalindex.en.md/index.en.mdxcompanions: when a visitor selects English (?lang=enorsite_lang=encookie),module-docsserves the.en.{md,mdx}file with localized sidebar, breadcrumbs, andhreflangalternates — smoothly falling back toindex.{md,mdx}whenever a page has not been translated yet.
Frontmatter Metadata
---
title: "Axum Common Pitfalls: Handler Trait Bounds, Route Collisions & Layer Ordering"
sidebar_label: Common Pitfalls
sidebar_position: 10
description: Troubleshoot frequent compile-time Handler errors and body-extractor ordering mistakes in Axum.
keywords: [axum, FromRequest, Handler trait, troubleshooting]
sort_children: asc
source:
crate: axum
version: "0.8.4"
---
Practical Design Details
- Decoupled
titlevs.sidebar_label: Left navigation trees and previous/next cards display the concisesidebar_label(Common Pitfalls), while<title>,og:title, and JSON-LDTechArticle.headlineuse the descriptivetitle. - Automatic Volume Qualification: When a subpage sets a short
title(e.g.Routing & Extractors), the server automatically qualifies SEO tags and search index titles asRouting & Extractors · Axum, eliminating duplicate titles across multi-crate handbooks. sourceCrate Badge: Settingsource.crateandsource.versionrenders a pill linking tohttps://docs.rs/<crate>/<version>at the top of the article and attaches a Schema.orgSoftwareSourceCodeaboutnode.- Dead-Link-Free Breadcrumbs & Edit Links: Group directories without an
index.mdrender as plain text in breadcrumbs (never producing 404 links), and settingsite.json::docs_edit_url_baseappends a direct GitHub edit link at the bottom of every doc page.

