From 93eaf73fb35b2690ebcbd439373ccdd19c7564a4 Mon Sep 17 00:00:00 2001 From: Porter Zach <76142641+p-zach@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:32:33 -0400 Subject: [PATCH] Add how to generate docstrings --- python/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python/README.md b/python/README.md index 5f7522920..e2f1a1f41 100644 --- a/python/README.md +++ b/python/README.md @@ -38,6 +38,15 @@ For instructions on updating the version of the [wrap library](https://github.co See Windows Installation in INSTALL.md in the root directory. +## Generate Docstrings + +The wrap library provides for building the Python wrapper with docstrings included, sourced from the C++ Doxygen comments. To build the Python wrapper with docstrings, follow these instructions: + +1. Change `GENERATE_XML` in `doc/Doxyfile.in` to `YES`. +2. Build GTSAM. This will compile the `doc/Doxyfile.in` into a `Doxyfile`. +3. From the project root directory, run `doxygen build//doc/Doxyfile`. This will generate the Doxygen XML documentation in `xml/`. +4. Build the Python wrapper with the CMake option `GTWRAP_ADD_DOCSTRINGS` enabled. + ## Unit Tests The Python toolbox also has a small set of unit tests located in the