Skip to content

Commit 2a55838

Browse files
authored
Add introductory slides to docs (#394)
* Move slides into docs directory * Link to slides
1 parent c6b30c8 commit 2a55838

11 files changed

+7961
-15340
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@
119119
# so a file named "default.css" will overwrite the builtin "default.css".
120120
# html_static_path = ["_static"]
121121

122-
html_extra_path = ["../examples/cubed.slides.html"]
122+
html_extra_path = ["slides/intro/cubed-intro.slides.html"]

docs/getting-started/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This guide aims to get you started using Cubed as quickly as possible.
44

5+
Have a look at [Cubed: an introduction](https://cubed-dev.github.io/cubed/cubed-intro.slides.html) for a high-level overview.
6+
57
```{toctree}
68
---
79
maxdepth: 2

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ caption: For users
2020
---
2121
getting-started/index
2222
user-guide/index
23+
Intro slides <https://cubed-dev.github.io/cubed/cubed-intro.slides.html>
2324
Examples <https://github.com/tomwhite/cubed/tree/main/examples/README.md>
2425
api
2526
array-api
File renamed without changes.

examples/cubed.ipynb renamed to docs/slides/intro/cubed-intro.ipynb

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"\n",
162162
"Cubed is composed of five layers: from the storage layer at the bottom, to the Array API layer at the top: \n",
163163
"\n",
164-
"![Five layer diagram](../docs/images/design.svg)"
164+
"![Five layer diagram](../../images/design.svg)"
165165
]
166166
},
167167
{
@@ -175,7 +175,7 @@
175175
"source": [
176176
"# Core and Primitive Operations\n",
177177
"\n",
178-
"![Core and Primitive Operations](../docs/images/ops.dot.svg)"
178+
"![Core and Primitive Operations](../../images/ops.dot.svg)"
179179
]
180180
},
181181
{
@@ -189,7 +189,7 @@
189189
"source": [
190190
"# Example: `map_direct`\n",
191191
"\n",
192-
"![`map_direct`](../docs/images/map_direct.svg)\n",
192+
"![`map_direct`](../../images/map_direct.svg)\n",
193193
"\n",
194194
"Each block in the output array is read directly from one or more blocks from the inputs.\n",
195195
"\n",
@@ -207,7 +207,7 @@
207207
"source": [
208208
"# Example: `reduction`\n",
209209
"\n",
210-
"![`reduction`](../docs/images/reduction.svg)\n",
210+
"![`reduction`](../../images/reduction.svg)\n",
211211
"\n",
212212
"Implemented using multiple rounds of calls to `blockwise` and `rechunk`."
213213
]
@@ -369,7 +369,7 @@
369369
"\n",
370370
"Cubed models the memory used by every operation, and calculates the `projected_mem` for a task - an upper bound.\n",
371371
"\n",
372-
"<img src=\"../docs/images/memory.svg\" width=\"600\">"
372+
"<img src=\"../../images/memory.svg\" width=\"600\">"
373373
]
374374
},
375375
{
@@ -562,14 +562,6 @@
562562
" * sgkit\n",
563563
"* [Optimizations](https://github.com/tomwhite/cubed/issues?q=is%3Aissue+is%3Aopen+label%3Aoptimization)"
564564
]
565-
},
566-
{
567-
"cell_type": "code",
568-
"execution_count": null,
569-
"id": "0979b928",
570-
"metadata": {},
571-
"outputs": [],
572-
"source": []
573565
}
574566
],
575567
"metadata": {
@@ -589,7 +581,7 @@
589581
"name": "python",
590582
"nbconvert_exporter": "python",
591583
"pygments_lexer": "ipython3",
592-
"version": "3.8.13"
584+
"version": "3.9.18"
593585
}
594586
},
595587
"nbformat": 4,

0 commit comments

Comments
 (0)