Skip to content

Limit copying _sphinx_design_static to HTML based builders - #241

Closed
intelkevinputnam wants to merge 3 commits into
executablebooks:mainfrom
intelkevinputnam:kp-copy-js-css-html-builders-only
Closed

intelkevinputnam wants to merge 3 commits into
executablebooks:mainfrom
intelkevinputnam:kp-copy-js-css-html-builders-only

Conversation

@intelkevinputnam

Copy link
Copy Markdown

As noted in #200, the _sphinx_design_static directory gets added to the output of all build targets, whereas it ought to only be added for HTML based targets. This PR adds an if statement to def update_css_js(app: Sphinx): to fix this.

Also includes fix from #237 to make RTD check work.

intelkevinputnam and others added 3 commits June 3, 2025 09:04
Signed-off-by: Putnam, Kevin <kevin.putnam@intel.com>
Signed-off-by: Putnam, Kevin <kevin.putnam@intel.com>

Copy link
Copy Markdown
Member

Thanks @intelkevinputnam for this, and apologies it sat unreviewed for so long. #276 has now landed, which reworks the static-asset handling wholesale to go through Sphinx's standard html_static_path mechanism — including exactly the HTML-only gating you implemented here, so non-HTML builds no longer receive the assets at all (#200) and nothing is written into the output dir outside Sphinx's own copying (#235). Since that supersedes this diff I'll close this PR, but your fix was spot on and appreciated — the fix will go out in the next release.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants