pipeio docs_collect: top-level pipelines index should include architecture mermaid with clickable flow links¶
Problem¶
The auto-generated docs/pipelines/index.md is a bare list of flow links. The code/pipelines/architecture.md contains a mermaid cross-flow DAG, flow layer table, data flow summary, and derivative mapping — but it's collected as a separate page that users have to navigate to manually.
The pipelines landing page should show the mermaid DAG with clickable flow nodes so users can visually navigate the ecosystem. Currently this requires manually editing the generated index.md with include-markdown directives, which is fragile (the file is auto-generated).
Proposed fix¶
When docs_collect generates the top-level docs/pipelines/index.md, it should:
- Check if
code/pipelines/architecture.mdexists (it already does this for separate collection) - Extract the mermaid diagram section from it
- Include it in the generated index between the
# Pipelinesheader and the flow list - Add
clickdirectives to mermaid nodes linking to their flow pages (e.g.,click IEEG "preprocess_ieeg/" "preprocess_ieeg") - Keep the flow list below the diagram as a text fallback
Alternatively, support an include-markdown directive in a source template for the index, so projects can customize what appears on the landing page without editing generated output.
Context¶
The architecture.md source already has the mermaid with click directives added. The issue is purely that docs_collect doesn't incorporate it into the index. The manual workaround (editing the generated index.md with include-markdown) breaks because:
- docs_collect only skips regeneration if index.md already exists, but any re-collection that deletes it first would lose the customization
- The include-markdown plugin path resolution is fragile across monorepo sub-sites
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-20260409-135103-976167.md — Both concern pipeio docs_collect failing to collect/surface overview content on the pipelines landing page
- issue-arash-20260408-041909-523276.md — Directly about pipeio docs_collect index generation — same subsystem this note proposes to extend
- issue-arash-20260408-041929-434391.md — pipeio docs_collect missing index issue — predecessor problem to this enhancement
- issue-arash-20260408-041954-573205.md — pipeio docs_collect nav YAML issue — related gap in the same docs_collect output pipeline
- issue-arash-20260408-042020-224344.md — pipeio docs_collect scripts issue — part of the same docs_collect feature area