Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
set environmt METATENSOR_IMPORT_FOR_SPHINX
Browse files Browse the repository at this point in the history
This properly references TensorMap types in the doc instead of only
showing abstruse ScriptClass types
  • Loading branch information
agoscinski committed Sep 22, 2023
1 parent d1cf32d commit c1dc541
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 @@ -16,6 +16,10 @@

ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))

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

sys.path.insert(0, os.path.abspath('../../'))

# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit c1dc541

Please sign in to comment.