Skip to content

Commit ec04a00

Browse files
authored
[Docs](fix) Add libdevice doc rendering and language api sidebar (#1782)
* [Docs](fix) Add libdevice doc rendering and language api sidebar * [Docs](feat) Complete libdevice API docs and examples for all libdevice ops
1 parent c2e7103 commit ec04a00

169 files changed

Lines changed: 8190 additions & 91 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/en/_static/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ div.dtype-support-table table.docutils td:not(:first-child) {
4141
section#triton-ascend h1 {
4242
text-align: center;
4343
}
44+
45+
/* The triton.language overview page keeps a visible toctree so its
46+
per-category pages nest in the sidebar. Hide the article's rendering
47+
of that toctree. The toctree-wrapper class only appears on toctrees
48+
rendered by the directive in the article body; the theme's sidebar
49+
nav is built separately from the doctree and is unaffected. */
50+
.toctree-wrapper.sidebar-groups-only {
51+
display: none;
52+
}

docs/en/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Triton Ascend
5454
triton <python-api/triton>
5555
triton.language <python-api/triton.language>
5656
triton.testing <python-api/triton.testing>
57+
triton.language.extra.cann.libdevice <python-api/triton.language.extra.cann.libdevice>
5758

5859
.. Temporarily disabled -- restore into the toctree above when needed:
5960
triton.language.extra.cann.extension <python-api/triton.language.extra.cann.extension>
60-
triton.language.extra.cann.libdevice <python-api/triton.language.extra.cann.libdevice>
6161
triton.extension.buffer.language <python-api/triton.extension.buffer.language>
6262
6363
.. toctree::
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/atomic_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/comparison_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/compiler_hint_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/creation_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/debug_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/indexing_ops.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/inline_assembly.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../zh/python-api/triton.language/iterators.rst

0 commit comments

Comments
 (0)