Skip to content

Commit 65a2010

Browse files
authored
[rosdoc2] Fix document generation on buildfarm (#701)
* Update system path and fix dep Signed-off-by: Yadunund <yadunund@gmail.com> * Add lark to doc_depend Signed-off-by: Yadunund <yadunund@gmail.com> --------- Signed-off-by: Yadunund <yadunund@gmail.com>
1 parent 3ff8fcf commit 65a2010

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

launch/doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# with the same name of this package within the docs_build directory.
3636
# Hence we add the parent folder to the system path so that the modules from
3737
# this package can be imported.
38-
sys.path.insert(0, os.path.abspath('..'))
38+
sys.path.insert(0, os.path.abspath('.'))
3939

4040

4141
# -- Project information -----------------------------------------------------

launch/package.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
<depend>osrf_pycommon</depend>
1919

20+
<!-- The rosdep key for python3 lark module is python3-lark-parser.
21+
rosdoc2 will mock "lark-parser" however the module is imported as "lark".
22+
Hence, to mock the import of the lark module, we add this doc depend. -->
23+
<doc_depend>lark</doc_depend>
24+
2025
<exec_depend>ament_index_python</exec_depend>
2126
<exec_depend>python3-importlib-metadata</exec_depend>
2227
<exec_depend>python3-lark-parser</exec_depend>

0 commit comments

Comments
 (0)