Skip to content

Fix Read the Docs build configuration#69

Closed
UnravelSports wants to merge 2 commits intomainfrom
feat/docs
Closed

Fix Read the Docs build configuration#69
UnravelSports wants to merge 2 commits intomainfrom
feat/docs

Conversation

@UnravelSports
Copy link
Owner

  • Simplified .readthedocs.yaml to remove redundant install commands
  • Added autodoc_mock_imports to conf.py to mock heavy dependencies (torch, tensorflow, spektral, etc.) during documentation build
  • This allows docs to build without installing ML framework dependencies

UnravelSports [JB] and others added 2 commits January 9, 2026 08:47
- Simplified .readthedocs.yaml to remove redundant install commands
- Added autodoc_mock_imports to conf.py to mock heavy dependencies
  (torch, tensorflow, spektral, etc.) during documentation build
- This allows docs to build without installing ML framework dependencies

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Wrapped PyGLightningCrystalGraphClassifier import in try/except
- This allows the module to be imported when PyTorch isn't installed
- Fixes Read the Docs build error: "no module named unravel.utils"
- The error occurred because the unraveled import was failing at the
  classifiers level, cascading to prevent utils from being imported

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@UnravelSports UnravelSports deleted the feat/docs branch January 9, 2026 09:09
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.

1 participant