Skip to content

Commit 85b5230

Browse files
thowellcopybara-github
authored andcommitted
MuJoCo Warp API documentation.
PiperOrigin-RevId: 820672892 Change-Id: I1339bdc4772560e69aa2c4b615825e7faffbe2ba
1 parent bd8c921 commit 85b5230

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ build:
1414
- asdf global uv latest
1515
- uv venv $READTHEDOCS_VIRTUALENV_PATH
1616
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv pip install -r doc/requirements.txt
17+
# replace mujoco.mjx.third_party.mujoco_warp import paths with mujoco_warp
18+
- |
19+
find mjx/mujoco/mjx/third_party/mujoco_warp -type f -exec sed -i 's/mujoco\.mjx\.third_party\.mujoco_warp/mujoco_warp/g' {} \;
1720
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv pip install mjx/mujoco/mjx/third_party/mujoco_warp
1821
install:
1922
- "true" # skip

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
sys.path.insert(0, os.path.abspath('../'))
2626
sys.path.append(os.path.abspath('ext'))
27-
sys.path.insert(0, os.path.abspath('../mjx/mujoco/mjx/third_party/mujoco_warp'))
27+
sys.path.insert(0, os.path.abspath('../mjx/mujoco/mjx/third_party'))
2828

2929
from sphinxcontrib import katex # pylint: disable=g-import-not-at-top
3030
from sphinxcontrib import youtube # pylint: disable=g-import-not-at-top,unused-import

0 commit comments

Comments
 (0)