Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.51 KB

documentation_instructions.rst

File metadata and controls

46 lines (32 loc) · 1.51 KB

Documentation Generation Instructions

Note: Before proceeding, please :ref:`build Drake from source <build_from_source>`. This is necessary because otherwise the various build targets mentioned below will not exist.

This section contains instructions on how to generate Drake's documentation, which uses a combination of Sphinx and Doxygen. This includes API documentation (C++ and Python) and Drake's website.

When using Bazel

To generate the website and serve it locally with webbrowser:

$ bazel run //doc:serve_sphinx [-- --browser=false]

The contents of the website are also available via bazel build //doc:sphinx.zip.

To generate the C++ API documentation:

$ cd drake
$ bazel build //doc:doxygen
$ bazel-bin/doc/doxygen [options]

$ bazel-bin/doc/doxygen --help  # To learn about the possible options.

To generate the Python API documentation:

$ bazel run //bindings/pydrake/doc:serve_sphinx [-- --browser=false]

The contents of the Python API documentation are also available via bazel build //bindings/pydrake/doc:sphinx.zip).