GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — iree/docs/api_docs/python at main · iree-org/iree

Expand file tree

/

python

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

python

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
_static
_static
 
 
compiler
compiler
 
 
.gitignore
.gitignore
 
 
.readthedocs.yaml
.readthedocs.yaml
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
conf.py
conf.py
 
 
index.rst
index.rst
 
 
requirements.txt
requirements.txt
 
 
runtime.rst
runtime.rst
 
 

README.md

Outline

Python API Docs

Documentation for the Python API is built with Sphinx under this directory. When new versions are released, the documentation is generated and published to the Read the Docs project and is served at readthedocs.io.

Building the API documentation locally

Setup virtual environment with requirements

python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

(Optional) Using locally built IREE packages

You can build the site using either released Python packages or local packages, whichever appear first on the PYTHONPATH environment variable. The requirements.txt file used in the previous step downloads the latest pre-release (nightly) iree-base-compiler and iree-base-runtime packages.

To use local packages, such as when changing docstrings and wanting to see how they appear in the generated documentation, follow the instructions for building the Python bindings from source at https://iree.dev/building-from-source/getting-started/#using-the-python-bindings.

In particular, after building with -DIREE_BUILD_PYTHON_BINDINGS=ON, you will need to extend your PYTHONPATH to include the relevant build directories. The the generated .env files can help with this:

source ../../../iree-build/.env && export PYTHONPATH

Build docs

sphinx-build -b html . _build

Serve locally locally with autoreload

sphinx-autobuild . _build

Then open http://127.0.0.1:8000 as instructed by the logs and make changes to the files in this directory as needed to update the documentation.

Clean to show all warnings

A clean rebuild will show all warnings again:

make clean
sphinx-build -b html . _build
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.