Skip to content

Commit b8e16f7

Browse files
committed
[mdbook,doxygen] Fix links to DIF
The `difgen` library was previously called with absolute paths to the DIF headers. Now that doxygen runs in bazel, all the paths have been made relative to the root so that the build is deterministic. However, this means that the difgen also needs to search to DIF header using relative paths now. Signed-off-by: Amaury Pouly <[email protected]>
1 parent 8efc6b3 commit b8e16f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

util/mdbook_doxygen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def main() -> None:
5656

5757
buffer = io.StringIO()
5858
buffer.write(f"# {file_name}\n")
59-
difgen.gen_listing_html(html_out_dir, combined_xml, str(book_root / src_path),
60-
buffer)
59+
difgen.gen_listing_html(html_out_dir, combined_xml, src_path, buffer)
6160
buffer.write(
6261
"\n<details><summary>\nGenerated from <a href=\"{}\">{}</a></summary>\n"
6362
.format(

0 commit comments

Comments
 (0)