"""MDZero project configuration.

Every setting here has a hard-coded default (see MDZero's own
`mdzero/config/defaults.py`) -- this file only needs to declare the values
you want to override. Anything you don't set falls back to the default,
and any of these can also be overridden by an environment variable named
`MDZERO_<SETTING>` (or the same in a `.env` file next to this one), which
always wins over what's written here. Run `mdzero config` to see the
resolved values and where each one came from.
"""

from pathlib import Path

# Site
SITE_NAME = "My Docs"
SITE_DESCRIPTION = "Documentation"

# Content
CONTENT_DIR = Path("docs")
PUBLIC_DIR = Path("public")

# Server
HOST = "127.0.0.1"
PORT = 8000

# Theme
THEME = {
    "accent": "#8b5cf6",
    "dark_mode": "system",
    "radius": "0.75rem",
}
# Optional theme assets (paths relative to the site root, e.g. served from
# `public/`) -- leave unset (None) to skip rendering the corresponding tag.
# THEME["logo"] = "/logo.svg"
# THEME["logo_dark"] = "/logo-dark.svg"
# THEME["favicon"] = "/favicon.ico"
# THEME["custom_css"] = "/custom.css"

# Header links (shown in the site header, in order)
# HEADER = {
#     "links": [
#         {"label": "GitHub", "url": "https://github.com/your/repo"},
#     ],
# }

# Footer
# FOOTER = {
#     "enabled": True,
#     "text": "Built with MDZero.",
#     "copyright": "(c) {year} My Company",
#     "links": [
#         {"label": "Privacy", "url": "/privacy"},
#     ],
# }

# Redirects: old route -> new route
# REDIRECTS = {
#     "/old-page": "/new-page",
# }

# Absolute base URL of the deployed site, used for canonical/OpenGraph
# tags (e.g. "https://docs.example.com"). Leave unset in development.
# SITE_URL = "https://docs.example.com"

# Search
SEARCH_ENABLED = True

# MCP server
MCP_ENABLED = True
MCP_PATH = "/_mcp/"
# MCP_CLIENT_ID / MCP_CLIENT_SECRET: leave unset to have mdzero generate and
# store them in .mdzero/state.json on first run (see spec section 27).
# Set MDZERO_MCP_CLIENT_ID / MDZERO_MCP_CLIENT_SECRET as environment
# variables (or here) to pin them instead -- env always wins.
# MCP_CLIENT_ID = "..."
# MCP_CLIENT_SECRET = "..."
# MCP_BACKUP_WRITES: back up a page's prior content under .mdzero/backups/
# before an MCP write tool overwrites it. Off by default.
# MCP_BACKUP_WRITES = True
