Skip to content

Commit

Permalink
Add introductory slides to docs (#394)
Browse files Browse the repository at this point in the history
* Move slides into docs directory

* Link to slides
  • Loading branch information
tomwhite authored Feb 22, 2024
1 parent c6b30c8 commit 2a55838
Show file tree
Hide file tree
Showing 11 changed files with 7,961 additions and 15,340 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ["_static"]

html_extra_path = ["../examples/cubed.slides.html"]
html_extra_path = ["slides/intro/cubed-intro.slides.html"]
2 changes: 2 additions & 0 deletions docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

Have a look at [Cubed: an introduction](https://cubed-dev.github.io/cubed/cubed-intro.slides.html) for a high-level overview.

```{toctree}
---
maxdepth: 2
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ caption: For users
---
getting-started/index
user-guide/index
Intro slides <https://cubed-dev.github.io/cubed/cubed-intro.slides.html>
Examples <https://github.com/tomwhite/cubed/tree/main/examples/README.md>
api
array-api
Expand Down
File renamed without changes
20 changes: 6 additions & 14 deletions examples/cubed.ipynb → docs/slides/intro/cubed-intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"\n",
"Cubed is composed of five layers: from the storage layer at the bottom, to the Array API layer at the top: \n",
"\n",
"![Five layer diagram](../docs/images/design.svg)"
"![Five layer diagram](../../images/design.svg)"
]
},
{
Expand All @@ -175,7 +175,7 @@
"source": [
"# Core and Primitive Operations\n",
"\n",
"![Core and Primitive Operations](../docs/images/ops.dot.svg)"
"![Core and Primitive Operations](../../images/ops.dot.svg)"
]
},
{
Expand All @@ -189,7 +189,7 @@
"source": [
"# Example: `map_direct`\n",
"\n",
"![`map_direct`](../docs/images/map_direct.svg)\n",
"![`map_direct`](../../images/map_direct.svg)\n",
"\n",
"Each block in the output array is read directly from one or more blocks from the inputs.\n",
"\n",
Expand All @@ -207,7 +207,7 @@
"source": [
"# Example: `reduction`\n",
"\n",
"![`reduction`](../docs/images/reduction.svg)\n",
"![`reduction`](../../images/reduction.svg)\n",
"\n",
"Implemented using multiple rounds of calls to `blockwise` and `rechunk`."
]
Expand Down Expand Up @@ -369,7 +369,7 @@
"\n",
"Cubed models the memory used by every operation, and calculates the `projected_mem` for a task - an upper bound.\n",
"\n",
"<img src=\"../docs/images/memory.svg\" width=\"600\">"
"<img src=\"../../images/memory.svg\" width=\"600\">"
]
},
{
Expand Down Expand Up @@ -562,14 +562,6 @@
" * sgkit\n",
"* [Optimizations](https://github.com/tomwhite/cubed/issues?q=is%3Aissue+is%3Aopen+label%3Aoptimization)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0979b928",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -589,7 +581,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2a55838

Please sign in to comment.