Skip to content

Commit

Permalink
Add stable API references (#2399)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2399

Differential Revision: D62700154
  • Loading branch information
PaulZhang12 authored and facebook-github-bot committed Sep 15, 2024
1 parent e75f376 commit 9d5c872
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sphinx==5.0.0
myst_parser
pyre-extensions
# torch
# PyTorch Theme
Expand Down
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.napoleon", "sphinx.ext.autodoc"]
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"myst_parser",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
11 changes: 11 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ TorchRec API

overview.rst

.. toctree::
:maxdepth: 1
:caption: Stable API References
:hidden:

stable/datatypes-api-reference.rst
stable/modules-api-reference.rst
stable/planner-api-reference.rst
stable/model-parallel-api-reference.rst
stable/inference-api-reference.rst

.. toctree::
:maxdepth: 1
:caption: All API References
Expand Down
6 changes: 6 additions & 0 deletions docs/source/stable/datatypes-api-reference.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TorchRec DataTypes API Reference
----------------------------------

.. autoclass:: JaggedTensor
.. autoclass:: KeyedJaggedTensor
.. autoclass:: KeyedTensor
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 9d5c872

Please sign in to comment.