Skip to content

WARNING: html_static_path entry 'source/_static' is placed inside out…#6345

Merged
ahcorde merged 1 commit intorollingfrom
fujitatomoya/issues/6071
Apr 7, 2026
Merged

WARNING: html_static_path entry 'source/_static' is placed inside out…#6345
ahcorde merged 1 commit intorollingfrom
fujitatomoya/issues/6071

Conversation

@fujitatomoya
Copy link
Copy Markdown
Collaborator

…dir.

Description

the root cause was never about html_static_path resolution, it was the devcontainer workspace mount point.
with the workspace mounted at /tmp/doc_repository, the sphinx outdir (which defaults to something like /tmp/...) would end up encompassing the source tree. sphinx saw that /tmp/doc_repository/source/_static was inside its output directory and warned about it. by moving the workspace mount to /workspaces/doc_repository (the standard devcontainer convention), the source tree is no longer under /tmp/, so there's no path overlap with sphinx's outdir. and reverting html_static_path back to the simple relative 'source/_static' is the right cleanup since the os.path.abspath() wrapper was never helping.

i confirmed and verified this PR with devcontainer and venv, and there was no warning came up.

fixes #6071
replaces #6341 and #6178

Did you use Generative AI?

No

Additional Information

This problem only appears on dev container environment.
#6341 and #6178 tries to close it, but never worked AFAIK.

…dir.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
@fujitatomoya fujitatomoya requested a review from ahcorde April 7, 2026 06:03
@fujitatomoya fujitatomoya self-assigned this Apr 7, 2026
@fujitatomoya fujitatomoya added the backport-all backport at reviewers discretion; from rolling to all versions label Apr 7, 2026
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = [os.path.abspath('source/_static')]
html_static_path = ['source/_static']
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be rolled back to simple path declaration to source/_static, the previous PRs tried to address the issue is not against the root cause. and probably not verified on the devcontainer environment.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/24066919418/artifacts/6299849829.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-6345/index.html in your favorite browser

@ahcorde ahcorde merged commit f1cf5d3 into rolling Apr 7, 2026
7 checks passed
@ahcorde ahcorde deleted the fujitatomoya/issues/6071 branch April 7, 2026 08:01
mergify bot pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
(cherry picked from commit f1cf5d3)
mergify bot pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
(cherry picked from commit f1cf5d3)
mergify bot pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
(cherry picked from commit f1cf5d3)
ahcorde pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345) (#6347)

(cherry picked from commit f1cf5d3)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
ahcorde pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345) (#6348)

(cherry picked from commit f1cf5d3)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
ahcorde pushed a commit that referenced this pull request Apr 7, 2026
…dir. (#6345) (#6349)

(cherry picked from commit f1cf5d3)

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-all backport at reviewers discretion; from rolling to all versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📝 WARNING: html_static_path entry 'source/_static' is placed inside outdir

2 participants