Skip to content

Commit

Permalink
[docs] Reorder tutorials to have a common landing page (#1493)
Browse files Browse the repository at this point in the history
Reorder tutorials to have a common landing page, move rewriter and
optimizer tutorials under tutorial tree.
  • Loading branch information
shubhambhokare1 authored May 3, 2024
1 parent 7e9c9e6 commit a1e46e4
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ result = MatmulAdd(x, wt, bias)
tutorial/index
api/index
intermediate_representation/index
optimizer/index
rewriter/index
auto_examples/index
articles/index
```
Expand Down
2 changes: 1 addition & 1 deletion docs/test/test_documentation_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test(*relpath):

test("..", "..", "docs", "examples")
test("..", "..", "docs", "tutorial", "examples")
test("..", "..", "docs", "rewriter", "examples")
test("..", "..", "docs", "tutorial", "rewriter", "examples")


if __name__ == "__main__":
Expand Down
15 changes: 15 additions & 0 deletions docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ myst:

# Tutorial

## Welcome to ONNX Script Tutorials

For extended tutorials on how to use the **Optimizer** and **Rewriter** tools, refer to the relevant sub-sections within the Tutorial section.
- <project:optimizer/optimize.md>
- <project:rewriter/rewrite_patterns.md>


In this tutorial, we illustrate the features supported by {{ onnxscript }} using examples.

## Basic Features
Expand Down Expand Up @@ -257,3 +264,11 @@ ONNX perspective, the two assignments to *g* represent two distinct tensors

```{literalinclude} examples/outerscope_redef_error.py
```

```{toctree}
:maxdepth: 1
optimizer/index
rewriter/index
```

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit a1e46e4

Please sign in to comment.