Repository navigation
Expand file tree
/
Copy pathzensical.toml
More file actions
330 lines (301 loc) · 17.7 KB
/
Copy pathzensical.toml
File metadata and controls
330 lines (301 loc) · 17.7 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# ============================================================================
# zensical.toml — NDSL Documentation Site Configuration
#
# Sections in this file:
# 1. Site Identity — name, URL, author, copyright
# 2. Assets & Navigation — JS/CSS assets and nav structure
# 3. Theme — fonts, colors, layout features
# 4. Markdown Extensions — rendering capabilities
# 5. Plugins — mkdocstrings (auto API docs)
# ============================================================================
[project]
copyright = "© 2026"
docs_dir = "docs"
extra_css = ["stylesheets/extra.css"]
# Lucide icon library — required for the SVG icons used in nav labels.
extra_javascript = [
"https://unpkg.com/lucide@latest",
"javasctipt/lucide-init.js",
"javascripts/extra.js"
]
nav = [
# ── Home ──────────────────────────────────────────────────────────────────
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5'/><path d='M5 9.5V20h14V9.5'/></svg> Home" = "index.md"},
# ── Install ─────────────────────────────────────────────────────────────
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v10'/><path d='M8 9l4 4 4-4'/><rect x='3' y='14' width='18' height='7' rx='2'/></svg> Install" = "install_ndsl.md"},
# ── User Manual ───────────────────────────────────────────────────────────
# Step-by-step guide for developers using NDSL.
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/></svg> User Manual" = [
{"Introduction to NDSL" = "user_manual/ndsl_introduction.md"},
{"1. Data Types and Storage" = "user_manual/data.md"},
{"2. Writing Code with NDSL" = "user_manual/writing_ndsl_code.md"},
{"3. Advanced Features" = "user_manual/advanced_features.md"},
{"4. Backends" = "user_manual/backends.md"},
{"5. Common Patterns" = "user_manual/common_patterns.md"},
{"6. Why Use Classes?" = "user_manual/why_use_classes.md"},
{"7. Best Coding Practices" = "user_manual/best_coding_practices.md"}
]},
# ── NDSL In Action ────────────────────────────────────────────────────────
# Real-world results from running NDSL in GEOS model configurations.
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19V5'/><path d='M10 19V9'/><path d='M16 19v-4'/><path d='M22 19V3'/></svg> NDSL In Action" = [
"ndsl_in_action/index.md",
{"NASA" = ["ndsl_in_action/nasa/index.md"]}
]},
# ── API Docs ──────────────────────────────────────────────────────────────
# Auto-generated reference docs from NDSL Python docstrings (via mkdocstrings).
# Organized to mirror the ndsl/ package structure.
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='16 18 22 12 16 6'/><polyline points='8 6 2 12 8 18'/></svg> API Docs" = [
"docstrings/index.md",
{"Top-level" = [
{"boilerplate" = "docstrings/top/boilerplate.md"},
{"buffer" = "docstrings/top/buffer.md"},
{"constants" = "docstrings/top/constants.md"},
{"io" = "docstrings/top/io.md"},
{"logging" = "docstrings/top/logging.md"},
{"optional_imports" = "docstrings/top/optional_imports.md"},
{"types" = "docstrings/top/types.md"},
{"typing" = "docstrings/top/typing.md"},
{"utils" = "docstrings/top/utils.md"}
]},
{"checkpointer" = [
{"base" = "docstrings/checkpointer/base.md"},
{"null" = "docstrings/checkpointer/null.md"},
{"snapshots" = "docstrings/checkpointer/snapshots.md"},
{"thresholds" = "docstrings/checkpointer/thresholds.md"},
{"validation" = "docstrings/checkpointer/validation.md"}
]},
{"config" = [
{"backend" = "docstrings/config/backend.md"}
]},
{"comm" = [
{"_boundary_utils" = "docstrings/comm/_boundary_utils.md"},
{"boundary" = "docstrings/comm/boundary.md"},
{"caching_comm" = "docstrings/comm/caching_comm.md"},
{"comm_abc" = "docstrings/comm/comm_abc.md"},
{"communicator" = "docstrings/comm/communicator.md"},
{"decomposition" = "docstrings/comm/decomposition.md"},
{"local_comm" = "docstrings/comm/local_comm.md"},
{"mpi" = "docstrings/comm/mpi.md"},
{"partitioner" = "docstrings/comm/partitioner.md"}
]},
{"debug" = [
{"config" = "docstrings/debug/config.md"},
{"debugger" = "docstrings/debug/debugger.md"},
{"tooling" = "docstrings/debug/tooling.md"}
]},
{"dsl" = [
{"caches" = [
{"cache_location" = "docstrings/dsl/caches/cache_location.md"},
{"codepath" = "docstrings/dsl/caches/codepath.md"}
]},
{"dace" = [
{"builder" = [
{"sdfg" = [
{"debug_passes" = "docstrings/dsl/dace/builder/sdfg/debug_passes.md"},
{"loop_transform" = "docstrings/dsl/dace/builder/sdfg/loop_transform.md"}
]},
{"stree" = [
{"common" = [
{"code_block" = "docstrings/dsl/dace/builder/stree/common/code_block.md"},
{"control_flow" = "docstrings/dsl/dace/builder/stree/common/control_flow.md"},
{"memlet" = "docstrings/dsl/dace/builder/stree/common/memlet.md"},
{"topology" = "docstrings/dsl/dace/builder/stree/common/topology.md"}
]},
{"optimizations" = [
{"axis_merge" = "docstrings/dsl/dace/builder/stree/optimizations/axis_merge.md"},
{"cartesian_merge" = "docstrings/dsl/dace/builder/stree/optimizations/cartesian_merge.md"},
{"clean_tree" = "docstrings/dsl/dace/builder/stree/optimizations/clean_tree.md"},
{"kernelize_maps" = "docstrings/dsl/dace/builder/stree/optimizations/kernelize_maps.md"},
{"local_optimizations" = "docstrings/dsl/dace/builder/stree/optimizations/local_optimizations.md"},
{"off_grid_conditionals" = "docstrings/dsl/dace/builder/stree/optimizations/off_grid_conditionals.md"},
{"off_grid_tasklet" = "docstrings/dsl/dace/builder/stree/optimizations/off_grid_tasklet.md"},
{"refine_transients" = "docstrings/dsl/dace/builder/stree/optimizations/refine_transients.md"},
{"remove_loops" = "docstrings/dsl/dace/builder/stree/optimizations/remove_loops.md"},
{"replace_axis_symbol" = "docstrings/dsl/dace/builder/stree/optimizations/replace_axis_symbol.md"},
{"specialize_maps" = "docstrings/dsl/dace/builder/stree/optimizations/specialize_maps.md"}
]},
{"default_pipeline" = "docstrings/dsl/dace/builder/stree/default_pipeline.md"},
{"pipeline" = "docstrings/dsl/dace/builder/stree/pipeline.md"},
{"statistics" = "docstrings/dsl/dace/builder/stree/statistics.md"}
]},
{"builder" = "docstrings/dsl/dace/builder/builder.md"},
{"cache" = "docstrings/dsl/dace/builder/cache.md"},
{"labeler" = "docstrings/dsl/dace/builder/labeler.md"},
{"optimize" = "docstrings/dsl/dace/builder/optimize.md"},
{"parse" = "docstrings/dsl/dace/builder/parse.md"}
]},
{"build" = "docstrings/dsl/dace/build.md"},
{"dace_config" = "docstrings/dsl/dace/dace_config.md"},
{"dace_executable" = "docstrings/dsl/dace/dace_executable.md"},
{"hardware_config" = "docstrings/dsl/dace/hardware_config.md"},
{"orchestration" = "docstrings/dsl/dace/orchestration.md"},
{"replacements" = "docstrings/dsl/dace/replacements.md"},
{"utils" = "docstrings/dsl/dace/utils.md"},
{"wrapped_halo_exchange" = "docstrings/dsl/dace/wrapped_halo_exchange.md"}
]},
{"gt4py" = "docstrings/dsl/gt4py.md"},
{"gt4py_utils" = "docstrings/dsl/gt4py_utils.md"},
{"ndsl_runtime" = "docstrings/dsl/ndsl_runtime.md"},
{"optimization_config" = "docstrings/dsl/optimization_config.md"},
{"stencil_config" = "docstrings/dsl/stencil_config.md"},
{"stencil" = "docstrings/dsl/stencil.md"},
{"typing" = "docstrings/dsl/typing.md"}
]},
{"grid" = [
{"eta" = "docstrings/grid/eta.md"},
{"generation" = "docstrings/grid/generation.md"},
{"geometry" = "docstrings/grid/geometry.md"},
{"global_setup" = "docstrings/grid/global_setup.md"},
{"gnomonic" = "docstrings/grid/gnomonic.md"},
{"helper" = "docstrings/grid/helper.md"},
{"mirror" = "docstrings/grid/mirror.md"},
{"stretch_transformation" = "docstrings/grid/stretch_transformation.md"}
]},
{"halo" = [
{"cuda_kernels" = "docstrings/halo/cuda_kernels.md"},
{"data_transformer" = "docstrings/halo/data_transformer.md"},
{"rotate" = "docstrings/halo/rotate.md"},
{"updater" = "docstrings/halo/updater.md"}
]},
{"initialization" = [
{"allocator" = "docstrings/initialization/allocator.md"},
{"grid_sizer" = "docstrings/initialization/grid_sizer.md"},
{"subtile_grid_sizer" = "docstrings/initialization/subtile_grid_sizer.md"}
]},
{"monitor" = [
{"convert" = "docstrings/monitor/convert.md"},
{"netcdf_monitor" = "docstrings/monitor/netcdf_monitor.md"},
{"protocol" = "docstrings/monitor/protocol.md"},
{"zarr_monitor" = "docstrings/monitor/zarr_monitor.md"}
]},
{"performance" = [
{"collector" = "docstrings/performance/collector.md"},
{"config" = "docstrings/performance/config.md"},
{"profiler" = "docstrings/performance/profiler.md"},
{"report" = "docstrings/performance/report.md"},
{"timer" = "docstrings/performance/timer.md"},
{"tools" = "docstrings/performance/tools.md"}
]},
{"quantity" = [
{"bounds" = "docstrings/quantity/bounds.md"},
{"local" = "docstrings/quantity/local.md"},
{"metadata" = "docstrings/quantity/metadata.md"},
{"quantity" = "docstrings/quantity/quantity.md"},
{"state" = "docstrings/quantity/state.md"}
]},
{"restart" = [
{"_legacy_restart" = "docstrings/restart/_legacy_restart.md"}
]},
{"stencils" = [
{"arithmetic_functions" = "docstrings/stencils/arithmetic_functions.md"},
{"basic_operations" = "docstrings/stencils/basic_operations.md"},
{"basic_operations_2d" = "docstrings/stencils/basic_operations_2d.md"},
{"column_operations" = "docstrings/stencils/column_operations.md"},
{"c2l_ord" = "docstrings/stencils/c2l_ord.md"},
{"corners" = "docstrings/stencils/corners.md"},
{"tridiag" = "docstrings/stencils/tridiag.md"}
]},
{"testing" = [
{"comparison" = "docstrings/testing/comparison.md"},
{"perturbation" = "docstrings/testing/perturbation.md"}
]},
{"viz" = [
{"cube_sphere" = "docstrings/viz/cube_sphere.md"}
]}
]},
# ── Roadmap ─────────────────────────────────────────────────────────────
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M2.077 18.449A2 2 0 0 0 4 21h16a2 2 0 0 0 1.924-2.55l-4-14A2 2 0 0 0 16 3H8a2 2 0 0 0-1.924 1.45z'/><path d='M12 17v4'/><path d='M12 5V3'/><path d='M12 9v3'/></svg> Roadmap" = "roadmap.md"},
# ── Community ─────────────────────────────────────────────────────────────
{"<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21a8 8 0 1 0-16 0'/><circle cx='12' cy='7' r='4'/></svg> Community" = "community.md"}
]
repo_name = "NDSL"
repo_url = "https://github.com/NOAA-GFDL/NDSL"
site_author = "Software Modernization Team"
site_name = "NDSL"
site_url = "https://www.ndsl_documentation.com/"
# ── Standard Python-Markdown ──────────────────────────────────────────────────
[project.markdown_extensions.abbr] # abbreviation tooltips
[project.markdown_extensions.admonition] # note/warning/tip callout boxes
[project.markdown_extensions.attr_list] # add HTML attributes to elements
[project.markdown_extensions.def_list] # definition lists
[project.markdown_extensions.footnotes] # [^1] style footnotes
[project.markdown_extensions.md_in_html] # Markdown inside raw HTML blocks
# ── PyMdown extensions ────────────────────────────────────────────────────────
[project.markdown_extensions.pymdownx.arithmatex]
generic = true # render LaTeX math via MathJax
[project.markdown_extensions.pymdownx.betterem] # smarter em/strong parsing
[project.markdown_extensions.pymdownx.caret] # superscript (^text^)
[project.markdown_extensions.pymdownx.details] # collapsible <details> blocks
[project.markdown_extensions.pymdownx.emoji]
emoji_generator = "zensical.extensions.emoji.to_svg"
emoji_index = "zensical.extensions.emoji.twemoji"
[project.markdown_extensions.pymdownx.highlight]
anchor_linenums = true # add anchor links to line numbers
line_spans = "__span" # wrap each line in a <span> for styling
pygments_lang_class = true # add language class to code blocks
[project.markdown_extensions.pymdownx.inlinehilite] # inline `code` syntax highlighting
[project.markdown_extensions.pymdownx.keys] # keyboard key rendering (++ctrl+c++)
[project.markdown_extensions.pymdownx.magiclink] # auto-linkify URLs and GitHub refs
[project.markdown_extensions.pymdownx.mark] # ==highlighted text==
[project.markdown_extensions.pymdownx.smartsymbols] # (c) → © and similar
[project.markdown_extensions.pymdownx.superfences]
# Allows non-fenced code blocks and enables Mermaid diagram rendering.
custom_fences = [
{name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format"}
]
[project.markdown_extensions.pymdownx.tabbed]
alternate_style = true # use the newer tab style
combine_header_slug = true
[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true # render [ ] / [x] as styled checkboxes
[project.markdown_extensions.pymdownx.tilde] # subscript (~text~) and strikethrough
[project.markdown_extensions.toc]
permalink = false # add anchor links to every heading
[project.plugins.mkdocstrings.handlers.python]
inventories = ["https://docs.python.org/3/objects.inv"] # cross-ref stdlib docs
paths = ["ndsl"]
[project.plugins.mkdocstrings.handlers.python.options]
docstring_style = "google"
inherited_members = true # include methods inherited from parent classes
show_source = false # hide raw source code in the rendered docs
[project.theme]
custom_dir = "./docs/overrides" # folder for template overrides
features = [
# Header
"announce.dismiss", # let users dismiss the announcement bar
# Content / code blocks
"content.code.annotate", # icon+tooltip annotations inside code blocks
"content.code.copy", # copy-to-clipboard button on code blocks
"content.code.select", # line-range selection button on code blocks
"content.footnote.tooltips", # render footnotes as inline popovers
"content.tabs.link", # sync all same-titled content tabs across pages
"content.tooltips", # hover tooltips on links
# Navigation
# "navigation.footer", # previous/next page links in the footer
"navigation.indexes", # attach overview pages directly to sections
"navigation.instant", # SPA-style navigation (no full page reload)
"navigation.instant.prefetch", # prefetch pages on link hover
"navigation.path", # breadcrumb trail above each page title
"navigation.sections", # group top-level sections in the sidebar
"navigation.tabs", # render top-level nav as tabs below the header
"navigation.top", # back-to-top button
"navigation.tracking", # update URL hash as you scroll through anchors
# "navigation.expand", # expand all sidebar sections by default
"navigation.prune", # strip invisible nav items from HTML (saves ~33%)
"navigation.tabs.sticky", # keep tabs visible while scrolling
"navigation.instant.progress", # loading progress bar for slow connections
# Search
"search.highlight" # highlight search terms after clicking a result
]
language = "en"
[project.theme.font]
code = "JetBrains Mono"
text = "Inter"
[[project.theme.palette]]
scheme = "default"
toggle.icon = "lucide/sun"
toggle.name = "Switch to dark mode"
[[project.theme.palette]]
scheme = "slate"
toggle.icon = "lucide/moon"
toggle.name = "Switch to light mode"