Skip to content

Commit 66c3397

Browse files
authored
[docs] Update Python API docs (#18662)
* Adds a configuration for Read the Docs * Removes now longer existing content * Pins requirements to run Sphinx with Python 3.12
1 parent 916bb88 commit 66c3397

File tree

9 files changed

+26
-66
lines changed

9 files changed

+26
-66
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "2"
2+
3+
build:
4+
os: "ubuntu-24.04"
5+
tools:
6+
python: "3.12"
7+
8+
python:
9+
install:
10+
- requirements: docs/api_docs/python/requirements.txt
11+
12+
sphinx:
13+
configuration: docs/api_docs/python/conf.py

docs/api_docs/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Documentation for the Python API is built with Sphinx under this directory.
44
When new versions are released, the documentation is generated and published
5-
to the website.
5+
to [Read the Docs](https://readthedocs.org/projects/iree-python-api/).
66

77
## Building Docs
88

docs/api_docs/python/compiler/api.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ In-Process Compiler API
44
IREE provides access to its MLIR-based compiler via a dedicated set of APIs
55
presented here.
66

7-
.. automodule:: iree.compiler.api.driver
7+
.. automodule:: iree.compiler.api
88
:imported-members:
9-
:members: build_iree_vm_pass_pipeline, translate_module_to_vm_bytecode
10-
11-
.. autoclass:: iree.compiler.api.driver.CompilerOptions
129
:members:

docs/api_docs/python/compiler/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Compiler API
77

88
api.rst
99
tools.rst
10-
iree_dialect.rst
11-
iree_pydm_dialect.rst
10+
iree_input_dialect.rst
1211
mlir_dialects.rst
13-
tensorflow_dialects.rst
1412
mlir.rst
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
IREE Dialect
2-
============
1+
IREE Input Dialect
2+
==================
33

44
This dialect contains frontend-oriented ops and types which are intended to be
55
used as input to IREE's compiler (in addition to various MLIR core dialects).
66

7-
.. automodule:: iree.compiler.dialects.iree
7+
.. automodule:: iree.compiler.dialects.iree_input
88
:imported-members:
99
:members:
1010
:undoc-members:

docs/api_docs/python/compiler/iree_pydm_dialect.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/api_docs/python/compiler/mlir_dialects.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ MLIR Core Dialects
4545
:undoc-members:
4646

4747

48-
`std` dialect
49-
----------------
50-
51-
.. automodule:: iree.compiler.dialects.std
52-
:imported-members:
53-
:members:
54-
:undoc-members:
55-
56-
5748
`tensor` dialect
5849
----------------
5950

docs/api_docs/python/compiler/tensorflow_dialects.rst

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/api_docs/python/requirements.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ sphinx==4.2.0
22
myst-parser==0.15.2 # For markdown
33
sphinx_rtd_theme==1.0.0
44
commonmark==0.9.1
5-
enum_tools==0.6.4
6-
sphinx_toolbox==2.15.0
5+
enum_tools==0.10.0
6+
sphinx_toolbox==2.16.1
7+
sphinxcontrib-applehelp==1.0.4
8+
sphinxcontrib-devhelp==1.0.2
9+
sphinxcontrib-htmlhelp==2.0.1
10+
sphinxcontrib-serializinghtml==1.1.5
11+
sphinxcontrib-qthelp==1.0.3
712

813
# IREE Python API
914
-f https://iree.dev/pip-release-links.html

0 commit comments

Comments
 (0)