zed-industries/zed · error
Default title not found
Error message
Default title not found
What it means
Raised in handle_postprocessing when the zed-html output table has no default-title key. The docs theme requires a default title for pages lacking frontmatter; its absence means the mdbook preprocess config is incomplete and postprocessing panics.
Source
Thrown at crates/docs_preprocessor/src/main.rs:714
.map(|redirects| {
redirects
.iter()
.filter_map(|(source, destination)| {
destination
.as_str()
.map(|destination| (source.clone(), destination.to_string()))
})
.collect::<Vec<_>>()
});
let default_description = zed_html
.get("default-description")
.expect("Default description not found")
.as_str()
.expect("Default description not a string")
.to_string();
let default_title = zed_html
.get("default-title")
.expect("Default title not found")
.as_str()
.expect("Default title not a string")
.to_string();
let amplitude_key = std::env::var("DOCS_AMPLITUDE_API_KEY").unwrap_or_default();
let consent_io_instance = std::env::var("DOCS_CONSENT_IO_INSTANCE").unwrap_or_default();
let docs_channel = std::env::var("DOCS_CHANNEL").unwrap_or_else(|_| "stable".to_string());
let site_url = std::env::var("MDBOOK_BOOK__SITE_URL")
.ok()
.filter(|site_url| !site_url.trim().is_empty())
.unwrap_or_else(|| {
match docs_channel.as_str() {
"nightly" => "/docs/nightly/",
"preview" => "/docs/preview/",
_ => "/docs/",
}
.to_string()
});
let noindex = if docs_channel == "nightly" || docs_channel == "preview" {View on GitHub (pinned to f4178619ac)
Solutions
- Add `default-title` under [output.zed-html] in book.toml
- Compare the configuration with the docs repository's reference book.toml
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/docs_preprocessor/src/main.rs:714 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/d5eb68196d0ef3a9.
Report an issue: GitHub.