Skip to content

[Docs] Avoid duplicate images and remove Windows docs CI - #8414

Merged
StafaH merged 2 commits into
isaac-sim:developfrom
StafaH:fix/docs-image-deduplication
Oct 9, 2026
Merged

StafaH merged 2 commits into
isaac-sim:developfrom
StafaH:fix/docs-image-deduplication

Conversation

@StafaH

@StafaH StafaH commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Sphinx copies images referenced by image directives into _images, while html_static_path also 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

  • Documentation update

Validation

  • Full formatting and lint checks passed, including the workflow removal: ISAACLAB_CHANGELOG_BASE_REF=ccd96dc6f uv run isaaclab --format.
  • Clean, warning-free build of this isolated branch: 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.
  • Full output audit: zero duplicate image files; 781 local static/image references verified with no newly broken links. Two existing raw marker image links remain unchanged.

Checklist

  • Read the contribution guidelines.
  • Ran the repository's full formatting and lint checks.
  • Updated documentation build behavior.
  • Validated the output and preservation of images.
  • Changelog fragments are not applicable: no source packages changed.
  • My name already exists in CONTRIBUTORS.md.

@StafaH
StafaH requested a review from a team October 9, 2026 05:21
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation labels Oct 9, 2026
@StafaH

StafaH commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 9, 2026
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

The PR adds IsaacLabHTMLBuilder so HTML image references reuse files under _static instead of keeping a second copy under _images.

  • Images outside source/_static keep Sphinx’s normal behavior.
  • The original env.images entries are restored after each call.
  • No actionable issues were found. This review did not run a documentation build.

Reviews (1) · Last reviewed commit: "Avoid duplicate images in documentation ..." · Reviewed by Greptile

@StafaH StafaH changed the title [Docs] Avoid duplicate images in documentation artifacts [Docs] Avoid duplicate images and remove Windows docs CI Oct 9, 2026
@StafaH

StafaH commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 9, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.images must be restored after processing; without the shared-state invariant, a maintainer may remove the finally block 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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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…

@StafaH
StafaH merged commit 07daf44 into isaac-sim:develop Oct 9, 2026
59 checks passed
@StafaH
StafaH deleted the fix/docs-image-deduplication branch October 10, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants