Skip to content

Commit

Permalink
docs(integration): add sphinx docs entries
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Nov 5, 2023
1 parent 0341b06 commit e72193c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ sphinx-rtd-theme
sphinxcontrib-bibtex
sphinx-autodoc-typehints >= 1.19.2
docutils

jax
numpy
torch
5 changes: 5 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ OpTree: Optimized PyTree Utilities
typing.rst
api.rst

.. toctree::
:maxdepth: 1

integration.rst

License
-------

Expand Down
39 changes: 39 additions & 0 deletions docs/source/integration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Integration with Third-Party Libraries
======================================

Integration for JAX
-------------------

.. currentmodule:: optree.integration.jax

.. autosummary::

tree_ravel

.. autofunction:: tree_ravel

------

Integration for NumPy
---------------------

.. currentmodule:: optree.integration.numpy

.. autosummary::

tree_ravel

.. autofunction:: tree_ravel

------

Integration for PyTorch
-----------------------

.. currentmodule:: optree.integration.torch

.. autosummary::

tree_ravel

.. autofunction:: tree_ravel

0 comments on commit e72193c

Please sign in to comment.