Skip to content

Fixes doc build erros - #4803

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix/doc_build
Mar 3, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix/doc_build

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Description

Fixes various doc building issues

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Mar 3, 2026
@AntoineRichard
AntoineRichard force-pushed the antoiner/fix/doc_build branch from 2e931c3 to 7981189 Compare March 3, 2026 15:01
@greptile-apps

greptile-apps Bot commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two independent documentation build failures with minimal, targeted changes.

  • docs/conf.py: Adds "plans" to the Sphinx exclude_patterns list, preventing Sphinx from attempting to process any .rst/.md files that may reside in a docs/plans directory and causing unexpected build errors.
  • docs/source/features/hydra.rst: Fixes a broken literalinclude directive in the "Real-World Example" section. The previous :end-before: ## marker had no matching ## comment after the :start-at: @configclass anchor in joint_pos_env_cfg.py (all ## separators appear before the @configclass line), causing Sphinx to fail. The fix replaces it with :end-before: class FrankaReachEnvCfg_PLAY, which correctly matches line 48 of the source file and produces the intended code snippet showing only the FrankaReachEnvCfg class.

Confidence Score: 5/5

  • This PR is safe to merge — both changes are minimal, well-targeted doc build fixes with no runtime impact.
  • Both changes are isolated to documentation configuration. The exclude_patterns addition is a harmless guard preventing future build breakage from a plans directory. The end-before fix is verified against actual source file content at line 48 where the class definition exists. No files require special attention.
  • No files require special attention

Last reviewed commit: 7981189

@greptile-apps greptile-apps 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.

14 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps

greptile-apps Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (1)

source/isaaclab_tasks/isaaclab_tasks/utils/__init__.pyi
Duplicate imports from .hydra

resolve_task_config and hydra_task_config are imported twice from .hydra — once on line 19 and again on line 22. This is redundant in a stub file and can trigger linting warnings.

The first import on line 19 already covers PresetCfg, hydra_task_config, and resolve_task_config. The second import should only add resolve_preset_defaults.

from .hydra import PresetCfg, hydra_task_config, resolve_preset_defaults, resolve_task_config
from .importer import import_packages
from .parse_cfg import get_checkpoint_path, load_cfg_from_registry, parse_env_cfg
from .sim_launcher import add_launcher_args, launch_simulation

@AntoineRichard

Copy link
Copy Markdown
Collaborator Author

@greptile

@greptile-apps greptile-apps 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.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@AntoineRichard AntoineRichard changed the title Antoiner/fix/doc build Fixes doc build erros Mar 3, 2026
@kellyguo11
kellyguo11 merged commit 8bdd551 into isaac-sim:develop Mar 3, 2026
7 of 13 checks passed
kellyguo11 added a commit to kellyguo11/IsaacLab-public that referenced this pull request Mar 4, 2026
…aac-sim#4803)

Conflict in parse_cfg.py: kept HEAD's hydra-import-free PresetCfg
resolution (_is_preset_cfg / _resolve_presets_to_default) to avoid
the circular-import that would arise from importing resolve_preset_defaults
from hydra.py (which itself imports load_cfg_from_registry from parse_cfg).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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 isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants