[book]
authors = ["The Zed Team"]
language = "en"
multilingual = false
src = "src"
title = "Zed"
site-url = "/docs/"

[output.html]
no-section-label = true
preferred-dark-theme = "dark"
additional-css = ["theme/page-toc.css", "theme/plugins.css", "theme/highlight.css"]
additional-js  = ["theme/page-toc.js", "theme/plugins.js"]

[output.html.print]
enable = false

[output.html.redirect]
"/elixir.html" = "/docs/languages/elixir.html"
"/javascript.html" = "/docs/languages/javascript.html"
"/ruby.html" = "/docs/languages/ruby.html"
"/python.html" = "/docs/languages/python.html"
"/adding-new-languages.html" = "/docs/extensions/languages.html"
"/language-model-integration.html" = "/docs/assistant/assistant.html"
"/assistant.html" = "/docs/assistant/assistant.html"
"/developing-zed.html" = "/docs/development.html"
"/conversations.html" = "/community-links"
"/assistant/assistant.html" = "/docs/ai/overview.html"
"/assistant/configuration.html" = "/docs/ai/custom-api-keys.html"
"/assistant/assistant-panel.html" = "/docs/ai/agent-panel.html"
"/assistant/contexts.html" = "/docs/ai/text-threads.html"
"/assistant/inline-assistant.html" = "/docs/ai/inline-assistant.html"
"/assistant/commands.html" = "/docs/ai/text-threads.html"
"/assistant/prompting.html" = "/docs/ai/rules.html"
"/assistant/context-servers.html" = "/docs/ai/mcp.html"
"/assistant/model-context-protocol.html" = "/docs/ai/mcp.html"
"/model-improvement.html" = "/docs/ai/ai-improvement.html"


# Our custom preprocessor for expanding commands like `{#kb action::ActionName}`,
# and other docs-related functions.
#
# Comment the below section out if you need to bypass the preprocessor for some reason.
[preprocessor.zed_docs_preprocessor]
command = "cargo run -p docs_preprocessor --"
renderer = ["html"]
