Skip to content

Conversation

@PragmaTwice
Copy link
Member

@PragmaTwice PragmaTwice commented Oct 11, 2025

It closes #97.

This PR adds sphinx to generate API documentation for python bindings. It is achieved via the sphinx-autoapi since there are several issues while the vanilla sphinx is used for MLIR python (mostly due to namespace package and importing).

If the workflow runs without errors (that's what I expect, although in most cases we need some interactive rounds to debug the workflow) and after this PR is merged, the API docs should be available in https://mlir.llvm.org/python-bindings/.

cc @jpienaar @joker-eph @makslevental

@kuhar kuhar requested review from joker-eph and jpienaar October 11, 2025 16:56
@PragmaTwice
Copy link
Member Author

The CI passed with generated sphinx docs. Although we cannot preview the webpage before merging.

@PragmaTwice
Copy link
Member Author

I uploaded the sphinx-generated site to surge.sh so everyone can preview it now:

https://mlir-python.surge.sh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Python doc generation to MLIR Website

1 participant