Skip to content

Commit

Permalink
Fix import errors in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Oct 4, 2023
1 parent fc09a7c commit ffa9d45
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -- Version information

sys.path.insert(0, pathlib.Path(__file__).parents[2].absolute())
sys.path.insert(0, pathlib.Path(__file__).parents[3].absolute())
version_file = (
pathlib.Path(__file__).parents[1].absolute() / "src" / "jaxsim" / "version.txt"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Prerequisites
JAXsim requires Python 3.10 or later.

Basic Installation
------------
------------------

You can install the project with `pypa/pip`, preferably in a `virtual environment`_:

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A scalable physics engine implemented with JAX. With JIT batteries 🔋
Features
--------

- Physics engine in reduced coordinates implemented with `JAX`_ in Python.
- Physics engine in reduced coordinates implemented with `JAX <https://github.com/google/jax>`_ in Python.
- Supported JIT compilation of Python code for increased performance.
- Transparent support to execute the simulation on CPUs, GPUs, and TPUs.
- Possibility to run parallel multi-body simulations on hardware accelerators for significantly increased throughput.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/high_level.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
High Level
==========

.. automodule:: src.jaxsim.high_level
.. automodule:: jaxsim.high_level
:members:
:inherited-members:
2 changes: 1 addition & 1 deletion docs/modules/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Math
====

.. automodule:: src.jaxsim.math
.. automodule:: jaxsim.math
:members:
:inherited-members:
2 changes: 1 addition & 1 deletion docs/modules/parsers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Parsers
=======

.. automodule:: src.jaxsim.parsers
.. automodule:: jaxsim.parsers
:members:
:inherited-members:
2 changes: 1 addition & 1 deletion docs/modules/physics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Physics
=======

.. automodule:: src.jaxsim.physics
.. automodule:: jaxsim.physics
:members:
:inherited-members:
6 changes: 3 additions & 3 deletions docs/modules/simulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
Simulation
==========

.. automodule:: src.jaxsim.simulation
.. automodule:: jaxsim.simulation

.. autoclass:: src.jaxsim.simulation.SimulatorData
.. autoclass:: jaxsim.simulation.SimulatorData
:members:
:inherited-members:

.. autoclass:: src.jaxsim.simulation.JaxSim
.. autoclass:: jaxsim.simulation.JaxSim
:members:
:inherited-members:
4 changes: 2 additions & 2 deletions docs/modules/sixd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@


SixD
==========
====

.. automodule:: src.jaxsim.sixd
.. automodule:: jaxsim.sixd
:members:
:inherited-members:
4 changes: 2 additions & 2 deletions docs/modules/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@


Utils
==========
=====

.. automodule:: src.jaxsim.utils
.. automodule:: jaxsim.utils
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jaxsim
sphinx==7.1.2
sphinx-rtd-theme==1.3.0rc1
sphinx_autodoc_typehints
Expand Down

0 comments on commit ffa9d45

Please sign in to comment.