-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathzensical.toml
More file actions
118 lines (105 loc) · 3.5 KB
/
Copy pathzensical.toml
File metadata and controls
118 lines (105 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
site_name = "xvr"
site_description = "Differentiable 2D/3D X-ray to volume registration"
site_author = "Vivek Gopalakrishnan"
site_url = "https://xvr.csail.mit.edu"
repo_url = "https://github.com/eigenvivek/xvr"
repo_name = "eigenvivek/xvr"
edit_uri = "edit/main/docs/"
copyright = "Copyright © 2026 Vivek Gopalakrishnan"
docs_dir = "docs"
extra_css = ["stylesheets/extra.css"]
# Editing a file under `src` already triggers a rebuild, because mkdocstrings
# registers everything in `paths` below as a watched source. Do not add `src`
# here as well: as of zensical 0.0.57, a watch entry that overlaps those paths
# deadlocks the dev server on the first source edit. Adding a *new* module is
# the one case the running server misses; restart `zensical serve` for that.
watch = ["tools/macros.py"]
# Navigation: https://zensical.org/docs/setup/navigation/
nav = [
{ Home = "index.md" },
{ "CLI Reference" = [
{ train = "cli/train.md" },
{ restart = "cli/restart.md" },
{ register = "cli/register.md" },
] },
{ "API Reference" = [
{ io = "reference/io.md" },
{ model = "reference/model.md" },
{ register = "reference/register.md" },
{ utils = "reference/utils.md" },
] },
]
[project.theme]
favicon = "assets/images/favicon.png"
language = "en"
features = [
"announce.dismiss",
"content.action.edit",
"content.code.annotate",
"content.code.copy",
"content.code.select",
"content.footnote.tooltips",
"content.tabs.link",
"content.tooltips",
"navigation.expand",
"navigation.footer",
"navigation.indexes",
"navigation.instant",
"navigation.instant.prefetch",
"navigation.path",
"navigation.sections",
"navigation.top",
"navigation.tracking",
"search.highlight",
]
# Palette: https://zensical.org/docs/setup/colors/
[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
primary = "black"
accent = "lime"
toggle.icon = "lucide/moon"
toggle.name = "Switch to light mode"
[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
toggle.icon = "lucide/sun"
toggle.name = "Switch to dark mode"
# Logos: https://zensical.org/docs/setup/logo-and-icons
[project.theme.icon]
logo = "lucide/crosshair"
[[project.extra.social]]
icon = "fontawesome/brands/github"
link = "https://github.com/eigenvivek/xvr"
[[project.extra.social]]
icon = "fontawesome/solid/file-lines"
link = "https://arxiv.org/abs/2503.16309"
# ----------------------------------------------------------------------------
# Plugins configuration
# ----------------------------------------------------------------------------
# Jinja macros defined in tools/macros.py, used by the CLI and API reference
# pages to generate their contents at build time. `module_name` is resolved as
# a path below the project root, so it is not importable-module syntax.
[project.plugins.macros]
module_name = "tools/macros"
on_error_fail = true
[project.plugins.mkdocstrings.handlers.python]
inventories = ["https://docs.python.org/3/objects.inv"]
paths = ["src"]
[project.plugins.mkdocstrings.handlers.python.options]
docstring_style = "google"
show_root_heading = true
show_if_no_docstring = false
inherited_members = true
show_bases = false
members_order = "source"
separate_signature = true
unwrap_annotated = true
merge_init_into_class = true
docstring_section_style = "spacy"
signature_crossrefs = true
show_signature_annotations = true
show_symbol_type_heading = true
show_symbol_type_toc = true
line_length = 80