[book]
title = "Rustelo Documentation"
description = "A comprehensive guide to building web applications with Rustelo - a modular Rust web application template"
authors = ["Rustelo Contributors"]
language = "en"
multilingual = false
src = "book"
book = "_book"

[rust]
edition = "2021"

[build]
build-dir = "_book"
create-missing = true
preprocess = ["links", "index"]
use-default-preprocessors = true

[preprocessor.links]
# Process relative links and convert them to proper mdBook links

[preprocessor.index]
# Generate index pages automatically

[output.html]
default-theme = "light"
preferred-dark-theme = "navy"
smart-punctuation = true
mathjax-support = false
copy-fonts = true

edit-url-template = "https://github.com/yourusername/rustelo/edit/main/book/{path}"
site-url = "/docs/"
cname = ""
git-repository-url = "https://github.com/yourusername/rustelo"
git-repository-icon = "fa-github"

# Logo configuration
# additional-css = ["theme/custom.css"]
# additional-js = ["theme/custom.js"]

[output.html.print]
enable = true
page-break = true

[output.html.search]
enable = true
limit-results = 30
teaser-word-count = 30
use-boolean-and = true
boost-title = 2
boost-hierarchy = 1
boost-paragraph = 1
expand = true
heading-split-level = 3

[output.html.redirect]
# Add redirects for moved pages if needed

[output.html.fold]
enable = false
level = 0

[output.html.playground]
runnable = true
copyable = true
copy-js = true
line-numbers = false
editable = false

# [output.linkcheck]
# # Check for broken links
# optional = true
# follow-web-links = false
# traverse-parent-directories = false
# exclude = [ "private" ]
# # Temporarily disabled due to broken links

# Optional: Generate PDF output
# [output.pdf]
# enable = true

# Optional: Generate EPUB output
# [output.epub]
# enable = true
