Skip to content

Conversation

@KedoKudo
Copy link
Collaborator

@KedoKudo KedoKudo commented Jan 9, 2026

Summary

Complete documentation overhaul for PLEIADES, establishing Sphinx/ReadTheDocs infrastructure and comprehensive user guides.

Phase 1: Sphinx Infrastructure (9e1cb75)

  • Deleted legacy/docs/ containing outdated API references
  • Created docs/conf.py with autodoc, napoleon, viewcode, intersphinx extensions
  • Created docs/index.rst landing page with toctree structure
  • Added docs/requirements.txt for ReadTheDocs build dependencies

Phase 2: API Reference (121504f, a0aa86f, fa82438)

  • Generated comprehensive API documentation with sphinx-apidoc (101 .rst files)
  • Added missing __init__.py files to 8 subpackages for proper autodoc discovery
  • Enabled package installation in .readthedocs.yaml for autodoc to work
  • Added autodoc-pydantic extension for improved Pydantic model documentation

Phase 3: User Guides (50cdd44, d68fa9f)

Created 10 user-facing documentation files:

  • installation.rst - User/developer setup, prerequisites, troubleshooting
  • quickstart.rst - Minimal working example with SammyFactory
  • guides/sammy_workflow.rst - Complete execution pipeline, error handling
  • guides/backends.rst - Local/Docker/NOVA comparison and configuration
  • guides/input_preparation.rst - Data format conversion, INP/PAR file generation
  • guides/endf_data.rst - NuclearDataManager, ENDF retrieval, caching
  • guides/results_analysis.rst - ResultsManager, LPT/LST parsing, plotting
  • guides/ornl_processing.rst - ORNL VENUS data processing workflow

Phase 4: NOVA Backend Status (bda4848)

Marked NOVA backend as paused (API under development):

  • Added warning docstring to nova_ornl.py
  • Added warning to NovaSammyConfig class docstring
  • Added runtime UserWarning when NOVA backend is selected
  • Added warning boxes in user guides

Phase 5: Cleanup (5037ca3)

Test Plan

  • Local pixi run build-docs succeeds
  • All 8 commits pass pre-commit hooks
  • Unit tests pass (1029 passed, 14 skipped)
  • ReadTheDocs build succeeds
  • Cross-references to API docs resolve correctly

Files Changed

  • Deleted: 10 legacy files, 2 placeholder files
  • Generated: 101 API .rst files
  • Created: 10 user guide .rst files, 8 __init__.py files
  • Modified: 3 source files (NOVA warnings), conf.py, requirements.txt, .readthedocs.yaml

Related


🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 [email protected]

- Delete legacy/docs/ (outdated API references)
- Create docs/conf.py with autodoc, napoleon, intersphinx
- Create docs/index.rst landing page with toctree
- Add docs/requirements.txt for RTD build
- Add placeholder index files for api/, tutorials/, examples/

Fixes broken ReadTheDocs build by providing missing conf.py.
Legacy documentation referenced non-existent modules and was
actively misleading users.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@KedoKudo KedoKudo self-assigned this Jan 9, 2026
KedoKudo and others added 4 commits January 9, 2026 13:35
- Generate API docs for 101 modules using sphinx-apidoc
- Add missing __init__.py to 8 subpackages:
  - nuclear/isotopes/, sammy/io/, sammy/io/card_formats/
  - sammy/fitting/, sammy/data/, sammy/results/
  - experimental/, results/
- Organize docs/api/index.rst with logical module grouping
- Document all major classes: SammyFactory, SammyRunner,
  IsotopeParameters, SpinGroups, file managers, etc.

Build succeeds with 75 warnings (down from 198).
Remaining warnings are Pydantic docstring style issues
to be addressed in future cleanup.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Enable `pip install .` in RTD build so autodoc can import
pleiades modules. Without this, RTD builds produce empty
module pages because the package is not installed.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add autodoc-pydantic>=2.2.0 to docs/requirements.txt
- Configure sphinxcontrib.autodoc_pydantic extension in conf.py
- Enable field summaries, validators, and constraints display

Pydantic models now show:
- Field descriptions from Field(description="...")
- Validator references and cross-links
- Field type annotations with proper formatting

Build succeeds with 275 warnings (up from 75 due to more
comprehensive documentation of Pydantic internals).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add narrative documentation to complement API reference:
- Installation guide with user/developer setup instructions
- Quick start guide with minimal working example
- SammyFactory workflow guide with complete execution pipeline
- Backend selection guide with comparison and configuration

Restructure main index with Getting Started, User Guides, and Reference sections.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@KedoKudo KedoKudo changed the title docs: establish Sphinx infrastructure for ReadTheDocs (#98) docs: comprehensive documentation overhaul (#98) Jan 9, 2026
KedoKudo and others added 3 commits January 9, 2026 17:05
- Add warning docstring to nova_ornl.py module
- Add warning to NovaSammyConfig class docstring
- Add runtime UserWarning when NOVA backend is selected
- Update backends.rst with warning box
- Update quickstart.rst to note NOVA is paused
- Update installation.rst NOVA section

NOVA backend integration is paused while NOVA API stabilizes.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add 4 new user guides covering the complete analysis pipeline:

- Input Preparation: data conversion, INP/PAR file generation,
  JsonManager configuration, SammyFilesMultiMode setup
- ENDF Data: NuclearDataManager, automatic download, caching,
  supported libraries, IsotopeManager
- Results Analysis: ResultsManager, LPT/LST parsing, plotting,
  chi-squared metrics, fitted parameter extraction
- ORNL Data Processing: VENUS imaging data, normalization workflow,
  TOF-to-energy conversion, Transmission model

Total: ~1,400 lines of documentation with 33 verified code examples.

Also removes empty tutorials/examples placeholder sections.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Delete auto-generated pleiades.rst which duplicated toctree
entries already present in api/index.rst, causing 7 warnings.

Also moves pleiades.post_install to Supporting Modules section.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@KedoKudo KedoKudo marked this pull request as ready for review January 12, 2026 22:02
Copilot AI review requested due to automatic review settings January 12, 2026 22:02
@KedoKudo
Copy link
Collaborator Author

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Documentation Foundations

2 participants