Skip to content

Split the README into integration, API and design docs #6

Closed

Description

@aajll

The README is about 250 lines and holds the installation guide, the configuration reference, the API, use cases and a notes table, with prose hard-wrapped at 80 columns. There is no design record: the protocol, the memory ordering, the backend ladder and the progress guarantees are spread across the README notes, header comments and CONTRIBUTING.md, and CI comments refer to a design section that does not exist in the repository. No test compiles the documented examples. CONTRIBUTING.md describes a MISRA C:2012 process and a clang-format -i step that CI no longer uses.

Scope

  • Reduce the README to a landing page: compiled quick start, description, validated toolchains, links.
  • Add docs/integration.md (requirements, subproject, installed package, configuration overrides, build and test, cross builds), docs/api.md (cell, typed and core API, configuration macros, recipes) and docs/design.md (protocol, memory ordering, backends, progress, payload copy, counter wrap, MISRA position, verification).
  • Add a seqlock docs examples test that compiles every C block in the documentation.
  • Rewrite CONTRIBUTING.md and AGENTS.md in the shared primitives structure, with misch, scripts/format.sh and the concurrency rules.
  • Point the CI comments at docs/design.md, and update CHANGELOG.md.

Acceptance criteria

  • README is a landing page of about 100 lines or fewer, with no hard-wrapped prose.
  • Every README section is routed to a docs file or dropped with a stated reason.
  • The docs example test passes, and fails when a documented call is broken.
  • Every relative link resolves.
  • Every value an example states is checked against a build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions