Skip to content

Phase 7: EEGLAB-style Sphinx documentation and tutorials #164

Closed

Description

@suraj-ranganath

🤖 Phase 7 turns EEGPrep documentation into a coherent EEGLAB-style user manual.

Summary

Build proper Sphinx documentation for EEGPrep as a standalone Python version of EEGLAB. The docs should help EEGLAB users feel oriented while teaching EEGPrep's GUI, console, Python API, extension system, and standalone differences.

Scope

  • Reorganize docs/source/ into a clear EEGLAB-like manual:
    • installation and first launch
    • Concepts Guide: EEG structure, events, epochs, channel locations, ICA, STUDY, history, command replay, GUI/console workspace
    • GUI tutorials: loading data, preprocessing, filtering, cleaning, rejection, ICA, ICLabel, EEGBrowser, STUDY, DIPFIT/source workflows
    • command-line/console tutorials mirroring GUI history
    • scripting/API tutorials with Python examples
    • plugin/extension authoring and curation
    • migration guide for EEGLAB MATLAB users
    • troubleshooting and FAQ
    • generated API reference
  • Ensure every major user-facing pop_*, GUI workflow, and bundled plugin has help/docs coverage.
  • Use screenshots where useful, but do not commit transient visual parity artifacts unless they are intentional docs assets.
  • Make docs build reliable in CI and locally.

Acceptance Criteria

  • uv run --no-sync sphinx-build -b html docs/source docs/_build/html passes.
  • Docs have a coherent TOC and do not read like disconnected API pages.
  • EEGLAB users can follow tutorials to complete real workflows using sample_data.
  • GUI and console workflows are documented together as one user experience.
  • Function/API reference pages are current for the expanded public API.
  • Existing open docs issue Documentation: add MNE examples #22 is addressed if still applicable.

Required References

  • AGENTS.md
  • docs/source/
  • docs/source/user_guide/
  • docs/source/examples/
  • src/eegprep/resources/help/
  • EEGLAB docs/tutorial structure as a reference
  • .agents/skills/eegprep-feature-development/SKILL.md

/goal

/goal Build EEGPrep's Sphinx documentation into a coherent EEGLAB-style standalone user manual. Reorganize docs around concepts, GUI workflows, eegprep-console workflows, scripting/API tutorials, STUDY, EEGBrowser, plugins/extensions, migration notes, troubleshooting, and API reference; document every major user-facing workflow completed by this and prior epics; use sample_data examples; verify docs build, links, generated API pages, ruff/format/ty where relevant, and pre-commit. Keep docs accurate to implemented behavior and do not describe planned features as available.

Activity

  1. added
    phase
    on Jun 7, 2026
  2. claude commented on Jun 7, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    Issue is actionable but explicitly an epic phase, not a self-contained fix. Acceptance criteria require describing implemented behavior from Phases 2-6 (#159-#163), and the parent epic (#157) sets merge order 1 -> 2+3+4+5+6 -> 7 -> 8, so this PR cannot be authored against develop today without either (a) waiting on Phase 1's docs architecture deliverable or (b) describing not-yet-shipped behavior, which #157 forbids. Scope spans every user_guide/ page plus a new Concepts Guide, GUI/console tutorials, migration guide, plugin authoring docs, API reference refresh, and a docs CI gate — well past the 100-line single-PR threshold.

    Relevant code

    Proposed Fix

    Treat this as a design+staging task, not a single PR. The epic ordering and acceptance criteria require it.

    Sequencing. Block Phase 7 implementation on Phase 1 (#158) landing the EEGLAB-modeled docs architecture (Concepts -> GUI tutorials -> console tutorials -> API/scripting -> STUDY -> plugins/extensions -> migration -> API reference). Once Phase 1 sets the IA, do incremental docs PRs per surface as Phases 2-6 merge (clean_rawdata/firfilt with #159, DIPFIT with #160, STUDY with #161, storedisk with #162, ICLabel/viewprops with #163). A final Phase 7 PR before #165 then adds: Concepts Guide, Migration Guide for MATLAB EEGLAB users, troubleshooting/FAQ rewrite, end-to-end sample_data tutorial set covering loading -> cleaning -> ICA -> ICLabel -> epoching -> STUDY -> DIPFIT, and the CI build-docs job using uv run --no-sync sphinx-build -b html docs/source docs/_build/html -W --keep-going.

    Docs IA target (mirrors EEGLAB tutorial site, lands under docs/source/):

    1. getting_started/ — installation, first launch (GUI + console), 5-minute tour
    2. concepts/ — EEG structure (EEGLAB Data_Structures parity), events/urevent, epochs, channel locations, ICA fields, STUDY, history/LASTCOM/ALLCOM, the GUI<->console workspace contract from AGENTS.md
    3. gui_tutorials/ — one page per major menu workflow (load, filter, resample, clean_rawdata, reject, epoch, runica, ICLabel, viewprops, EEGBrowser, STUDY, DIPFIT) with screenshots from tools/visual_parity
    4. console_tutorials/ — same workflows as pop_* console calls, showing the auto-stored (EEG, com) pattern and history replay
    5. scripting/ — Python API tutorials, batching, BIDS pipeline, MNE interop (absorbs Documentation: add MNE examples #22)
    6. extensions/ — authoring + curation (existing extensions.rst + extension_curation.rst reorganized)
    7. migration/ — for EEGLAB MATLAB users: name/dir map, indexing boundaries, GUI differences, options file
    8. troubleshooting/ and faq.rst — actual recovered issues, not boilerplate
    9. api/ — kept; refreshed against final post-Phase-2..6 public API surface

    Out of scope for this comment. Writing the docs themselves; they must follow Phase 1's architecture artifact and describe Phase 2-6 behavior as shipped.

    Open questions for a human before implementation begins:

    1. Should Phase 7 wait for Phase 1: Remaining-work audit expansion, runtime contract, and docs architecture #158's docs-architecture artifact, or is the IA above acceptable to use as the starting point if Phase 1: Remaining-work audit expansion, runtime contract, and docs architecture #158 has not produced one?
    2. Should each Phase 2-6 PR own its own docs pages (recommended), or does Phase 7 own all docs writing in a single late PR?
    3. Confirm: add a build-docs CI job in this phase (acceptance criteria implies yes; test.yml currently has none).
    4. Migration guide depth — index-style cheatsheet only, or full per-function MATLAB->Python map (the latter is large and may belong with Phase 1: Remaining-work audit expansion, runtime contract, and docs architecture #158)?
  3. suraj-ranganath commented on Jun 7, 2026

    @suraj-ranganath
    MemberAuthor

    🤖 Phase 7 PR #172 has merged into feature/eeglab-full-standalone-completion. Docs build, lint/type checks, pre-commit, and split non-slow integration tests are passing on the epic branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions