pipeio docs_collect does not collect overview.md or top-level architecture docs¶
Problem¶
pipeio docs_collect has two bugs:
-
overview.mdsilently dropped. When a flow hascode/pipelines/{flow}/docs/overview.mdbut noindex.md,docs_collectgenerates a minimal stub index instead of usingoverview.md. When both exist,index.mdwins andoverview.mdis never collected. -
Source-tree mutation.
docs_collectwrites a generated stubindex.mdback intocode/pipelines/{flow}/docs/when one doesn't exist. It should never write to the source tree — only to the outputdocs/pipelines/directory.
Observed in pixecog¶
preprocess_ieeg: has onlyoverview.mdin source docs → collected asindex.md. Works correctly.preprocess_ecephys: had bothindex.md(stub) andoverview.md(detailed) → stub won, detailed overview lost.- After deleting the ecephys
index.md,docs_collectregenerated a new stub rather than falling back tooverview.md.
Expected behavior¶
- If
overview.mdexists andindex.mddoesn't, useoverview.mdas the flow index content. - If both exist, collect
overview.mdas a separate page alongside the index. - Never write generated files to
code/pipelines/{flow}/docs/— only todocs/pipelines/.
Workaround¶
Don't create a separate index.md — put overview content in overview.md and let it serve as the index (works for preprocess_ieeg but fragile).
Source context: pixecog¶
PixEcog (pixecog): Neuropixels and ECoG dataset and analysis
Recent commits:
8dc0d9d Pipeline docs: gitignore docs/pipelines/, relocate hand-authored files
96cd1ec Refactor sharpwaveripple/contracts: extract generic helpers to utils/io, remove pipelines __init__.py
36f9326 Add result note directory and sample note
README:
type: readme
Quick Start for Collaborators¶
Follow this checklist to get started with Pixecog documentation and workflows.
🐀 Pixecog Project — Compact Overview¶
Core principles
- One immutable BIDS raw dataset (
raw/) as the canonical baseline - Each analysis pipeline ha
Related Notes¶
- issue-arash-20260408-041929-434391.md — pipeio docs_collect: no index — directly related, same tool, index fallback behavior
- issue-arash-20260408-041909-523276.md — pipeio docs_collect: index — directly related, same tool, index handling
- issue-arash-20260408-041954-573205.md — pipeio docs_collect: mod docs collected but not included in nav YAML — same tool, doc collection pipeline bugs
- issue-arash-20260408-042020-224344.md — pipeio docs_collect: scripts — same tool, collection coverage gaps
- issue-arash-20260408-041843-212992.md — pipeio registry_scan: has_docs always false — related, flow-local docs/ detection failures affect docs_collect