Skip to content

Commit

Permalink
[build] Hotfix docs build for bzlmod (RobotLocomotion#22336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Dec 19, 2024
1 parent 127042c commit 5fa0e3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def symlink_input(filegroup_resource_path, temp_dir, strip_prefix=None,
with open(manifest.Rlocation(filegroup_resource_path)) as f:
input_filenames = f.read().splitlines()
for name in input_filenames:
if name.startswith("_main/"):
name = f"drake/{name[6:]}"
orig_name = manifest.Rlocation(name)
assert os.path.exists(orig_name), name
dest_name = name
Expand Down
2 changes: 1 addition & 1 deletion doc/doxygen_cxx/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _symlink_headers(*, drake_workspace, temp_dir, modules):
subdir = relpath(dirpath, drake_workspace)
os.makedirs(join(temp_dir, "drake", subdir))
for item in files:
if any([module.startswith("drake.doc"),
if any([module.startswith("doc"),
"images" in subdir,
item.endswith(".h")]):
dest = join(temp_dir, "drake", subdir, item)
Expand Down
2 changes: 1 addition & 1 deletion doc/pydrake/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
# Precede napoleon, since it's greedy on `autodoc-skip-member`
'drake.doc.pydrake.pydrake_sphinx_extension',
'doc.pydrake.pydrake_sphinx_extension',
'sphinx.ext.napoleon',
]

Expand Down

0 comments on commit 5fa0e3a

Please sign in to comment.