Skip to content

Canonical Sources

Every copy-paste command block and repeated conceptual warning lives in one canonical place. All other pages link to it — like docs/contributing.md does for the root contributing.md.

This page is the registry for contributors. When you add or move documentation, check here first so commands and warnings are not duplicated across nav pages.

Domain hubs

Canonical content is organized by topic hub, not a single mega commands page:

flowchart TB
    subgraph root [Repo root — GitHub entry]
        README["README.md\ninstall + first query + usage cheat sheet"]
        CONTRIB["contributing.md\ncontributor + mkdocs CI"]
    end
    subgraph getting [Getting Started]
        INSTALL["installation.md\nwhat gets installed — links README"]
        QUICK["quick-start.md\ninternals only — links README"]
        HEALTH["health-check.md\ncheck matrix — links setup-system"]
    end
    subgraph hubs [Docs canonical hubs]
        SETUP["setup-system/index.md\nhealth_check + manager"]
        CLI["user-guide/cli.md\nflags + execution paths"]
        FORMATS["output-formats.md\nrendering pipeline"]
        CLIVS["cli-vs-api.md\nbatch vs full pipeline"]
        TEST["development/testing.md\npytest"]
        API["api/index.md\nuvicorn + fastapi install"]
        PUB["development/publishing.md\nmkdocs build"]
        DEBUG["logging-and-debug.md\nRA_PIPELINE__DEBUG"]
        HEUR["llm/heuristic-vs-llm.md\ndefault quality profile"]
    end
    README --> INSTALL
    README --> QUICK
    README --> CLI
    SETUP --> HEALTH
    CLI --> CLIVS
    CONTRIB --> PUB

Authoritative map

Content Canonical location Everywhere else
Install + first query README.md Link to #quick-start / #usage anchors
Install context (packages, layout) getting-started/installation.md Link to README for bash blocks
First-run internals getting-started/quick-start.md No repeated usage cheat sheet
Setup / health / manager setup-system/index.md One-liner + link
Health check matrix getting-started/health-check.md Link to setup-system for commands
CLI flags and execution paths user-guide/cli.md Flag table + unique examples only; no full README block
Output format rendering user-guide/output-formats.md Link to README for --format commands
CLI vs API / provider divergence user-guide/cli-vs-api.md Admonition + link; no re-explanation
Default heuristic quality llm/heuristic-vs-llm.md Short admonition + link
pytest development/testing.md Link only
API server api/index.md Link only
MkDocs / publish / policy check development/publishing.md + root contributing.md Link only
Debug mode operations/logging-and-debug.md Link from troubleshooting
Contributor entry Root contributing.md docs/contributing.md = pointer only
Setup stub setups/README.md 3 commands + docs links (keep as-is)

Reference pattern

Replace duplicated blocks with links. This pattern is already used in installation.md:

## Commands

Copy-paste steps: [README Quick Start](https://github.com/Ndevu12/Research_Assistant_Model#quick-start).

## [Topic-specific section — unique to this page]

For in-site links (MkDocs):

Setup commands: [Setup system](../setup-system/index.md#quick-start).

Use stable headings (## Quick start, ## Commands) as link anchors on canonical pages.

What not to duplicate

Context-specific one-liners are OK

Cookbooks and troubleshooting may include a single command when it is recipe- or symptom-specific. Remove only full duplicate cheat sheets, not unique examples.

CI enforcement

Pull requests run scripts/check_docs_policy.py alongside mkdocs build --strict. The script rejects forbidden duplicate command signatures outside their allowed files. See Publishing documentation for details.