Repository navigation
[Docs] Avoid duplicate images and remove Windows docs CI - #8414
Conversation
|
run-ci |
|
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Scope and over-engineering (1), Style consistency (1). Other reviewed categories look good.
- PR description: The body matches the diff and supplies artifact measurements; explain why losing Windows-specific docs validation is acceptable, rather than only noting that the workflow published nothing.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: Minimal implementation: keep the builder subclass in
docs/_extensions/isaaclab_docs.py; no source modules were added, and the existing extension remains the sole owner of image rewriting. Remove the independent workflow deletion from this change. Suggested PR breakdown: 1) static-image reuse with clean-build and output-audit validation; 2) Windows workflow removal with an explicit platform-coverage rationale. - API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: Document why
env.imagesmust be restored after processing; without the shared-state invariant, a maintainer may remove thefinallyblock and leak rewritten paths into later processing. - Test quality: Test quality looks good.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
| @@ -1,41 +0,0 @@ | |||
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |||
There was a problem hiding this comment.
🟡 Warning · Scope Complexity — Unrelated Windows docs CI removal
Deleting this workflow is independent of the image-reuse change and removes the only Windows validation of the docs build while that build's path handling changes. Ship the removal as its own PR with its coverage…
| try: | ||
| super().post_process_images(doctree) | ||
| finally: | ||
| self.env.images.update(original_images) |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Unexplained env.images restore
The comment covers the rewrite but not the restore, which is the non-obvious part: env.images is shared and persisted across builds and builders. Add a brief note so the finally block is not dropped as…
Description
Sphinx copies images referenced by image directives into
_images, whilehtml_static_pathalso copies those same files into_static. Reuse the static files for HTML image directives and scaled-image links instead of shipping a second copy. Images outside the static directory retain Sphinx's normal handling.This removes 131 duplicate files from the full local documentation output: 20.2 MB uncompressed, approximately 17 MB compressed. Every previously built unique image and video remains present byte-for-byte.
Remove the Windows documentation CI workflow, including its output-verification check. This workflow did not publish artifacts, and no separate Windows-doc-specific tests or artifact definitions remain.
Type of change
Validation
ISAACLAB_CHANGELOG_BASE_REF=ccd96dc6f uv run isaaclab --format.uv run --extra dev isaaclab --docs. This same Sphinx change also passed Linux docs CI before being split from [Docs] Fix environment preview sizing and details wrapping #8413.Checklist
CONTRIBUTORS.md.