-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for python-only projects (#28)
* Add support for python-only projects This commit: * Allows `rosdoc2` to exhibit different behavior conditional on the currently processed package's build type. Essentially: * `ament_cmake`: +`doxygen`/`exhale`/`breathe, -`sphinx-apidoc` * `ament_python`: -`doxygen`/`exhale`/`breathe, +`sphinx-apidoc` * Introduces settings that let users manually configure if they want to always run `sphinx-apidoc` or `doxygen` regardless of the package's build type (helpful for "mixed" packages). * Produces toctree entries appropriate for each package, again conditional on the build type and the tools invoked by `rosdoc2`. Signed-off-by: Abrar Rahman Protyasha <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> Co-authored-by: William Woodall <[email protected]> Co-authored-by: R Kent James <[email protected]> * Address flake8 linter warnings Signed-off-by: Abrar Rahman Protyasha <[email protected]> * Generate different index entry based on build type Signed-off-by: Abrar Rahman Protyasha <[email protected]> * Log at debug level rather than info level Signed-off-by: Abrar Rahman Protyasha <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> * Make whitespace adjustments in messages Signed-off-by: Abrar Rahman Protyasha <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> * Add the module path to sys.path (not its parent) Without a trailing slash, `os.path.dirname` returns a path to the the parent directory of the path provided, which defeats the point of adding the module path to sys.path. Signed-off-by: Abrar Rahman Protyasha <[email protected]> * Only mock dependencies that cannot be imported Signed-off-by: Abrar Rahman Protyasha <[email protected]> * Expose enable_autodoc setting to users Signed-off-by: Abrar Rahman Protyasha <[email protected]> * Specify expected exception type to satisfy linter Signed-off-by: Abrar Rahman Protyasha <[email protected]> --------- Signed-off-by: Abrar Rahman Protyasha <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> Co-authored-by: William Woodall <[email protected]> Co-authored-by: R Kent James <[email protected]> Co-authored-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
489e3a3
commit ed6e755
Showing
5 changed files
with
162 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters