Commit 89d00af
fix: prevent a 404 error when serving Sphinx docs and Bazel is configured with a --symlink_prefix option (#3492)
When Bazel is configured with the
[`--symlink_prefix`](https://bazel.build/reference/command-line-reference#build-flag--symlink_prefix)
option, the sphinxdocs `.serve` target fails to serve files from the
correct directory. This happens because the directory layout under
`execroot` and the workspace no longer match, causing the target to miss
the generated HTML files.
This change updates the logic to use rpathlocation instead, ensuring the
correct path is resolved regardless of symlink configuration.
Fixes #3410
---------
Co-authored-by: Laurens Hobert <[email protected]>1 parent 352f405 commit 89d00af
3 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments