Skip to content

Commit

Permalink
docs(sphinx): fixes documentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Sep 13, 2021
1 parent a71c8d6 commit 38f2da0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
"""Contains functions used for creating Pytorch learning rate schedulers.
.. rubric:: Functions
.. autosummary::
:toctree:
calc_linear_decay_rate
get_exponential_decay_rate
get_lr_scheduler
"""

from decimal import Decimal
Expand Down
17 changes: 6 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@
import os.path as osp
import sys

dirname = osp.dirname
top_folder = dirname(dirname(dirname(__file__)))
sys.path.insert(0, osp.join(top_folder, "bayesian_learning_control"))
sys.path.insert(0, osp.join(top_folder, "examples"))
sys.path.insert(0, osp.join(top_folder, "bayesian_learning_control", "control"))
sys.path.insert(0, osp.join(top_folder, "bayesian_learning_control", "hardware"))
sys.path.insert(0, osp.join(top_folder, "bayesian_learning_control", "modeling"))
sys.path.insert(0, osp.join(top_folder, "bayesian_learning_control", "simzoo"))
sys.path.insert(0, osp.abspath("../../bayesian_learning_control"))
sys.path.insert(1, osp.abspath("../../examples"))
sys.path.insert(2, osp.abspath("../../bayesian_learning_control/simzoo"))

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -62,21 +57,21 @@ def __getattr__(cls, name):
extensions = [
"sphinx.ext.todo",
"sphinx.ext.imgmath",
"sphinx.ext.viewcode",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"sphinx.ext.extlinks",
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"recommonmark",
"sphinx.ext.viewcode",
"myst_parser",
]

# Extension settings
autosummary_generate = True
autosummary_generate_overwrite = True
autodoc_member_order = "bysource"
autosummary_imported_members = True
# autosummary_imported_members = True

# imgmath settings
imgmath_image_format = "svg"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/control/eval_robustness.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ For a good example of how this is done, one can look at the ``<ENV_NAME>_disturb
How to find available disturbances
==================================

When using the :ref:`robustness eval CLI <eval_robustness>` you can use the ``--list_disturbance_types`` and ``--list_disturbance_variants`` flags to list the available disturbance types and variants for a given agent trained in a given
When using the :ref:`robustness eval CLI <robustness_eval>` you can use the ``--list_disturbance_types`` and ``--list_disturbance_variants`` flags to list the available disturbance types and variants for a given agent trained in a given
environment. For more details, one should check the check the ``DISTURBANCE_CFG`` constant inside the :class:`~bayesian_learning_control.simzoo.simzoo.common.disturber.Disturber` class file or the environment
``<ENV_NAME>_disturber.py`` file.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ docs =
sphinx
sphinx-autobuild
sphinx-rtd-theme
recommonmark
myst_parser
dev =
%(tf)s
%(tuning)s
Expand Down

0 comments on commit 38f2da0

Please sign in to comment.