Skip to content

Commit

Permalink
Display torchscript classes correctly in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Jan 26, 2024
1 parent 1e487a9 commit 9bb21cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
ROOT = os.path.abspath(os.path.join("..", ".."))
sys.path.insert(0, ROOT)

# when importing metatensor-torch, this will change the definition of the classes
# to include the documentation
os.environ["METATENSOR_IMPORT_FOR_SPHINX"] = "1"

# -- Project information -----------------------------------------------------

# The master toctree document.
Expand Down

0 comments on commit 9bb21cc

Please sign in to comment.