import os
from pathlib import Path
project = "brkrs"
copyright = "2025, Christian Ledermann"
author = "Christian Ledermann"
extensions = [
"myst_parser",
"sphinx_copybutton",
]
myst_enable_extensions = [
"colon_fence",
"deflist",
"fieldlist",
"tasklist",
]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
html_theme = "furo"
html_static_path = ["_static"]
html_theme_options = {
"source_repository": "https://github.com/cleder/brkrs",
"source_branch": "main",
"source_directory": "docs/",
}
_rustdoc_path = Path(__file__).parent / "_static" / "rustdoc"
if not os.environ.get("SPHINX_SKIP_RUSTDOC") and _rustdoc_path.exists():
html_extra_path = ["_static/rustdoc"]
suppress_warnings = [
"myst.xref_missing",
]