Skip to content

docs: convert repository to the standard layout - #450

Merged
retr0h merged 2 commits into
mainfrom
docs/convert-repository-layout
Aug 16, 2026
Merged

docs: convert repository to the standard layout#450
retr0h merged 2 commits into
mainfrom
docs/convert-repository-layout

Conversation

@retr0h

@retr0h retr0h commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Implements standardize-repository-layout task 4.5 and specify-documentation-homes task 3.6 from osapi-io/specs.

osapi was the only repository with neither a root CONTRIBUTING.md nor an AGENTS.md, a 917-line CLAUDE.md, and three competing contributing documents.

What moved

From To
CLAUDE.md — dev reference, code style, branching, commits CONTRIBUTING.md
CLAUDE.md — "Adding a New API Domain" (steps 0–8) docs/docs/sidebar/development/adding-an-api-domain.md
CLAUDE.md — UI conventions, block/stack vocabulary docs/docs/sidebar/development/ui-development.md
CLAUDE.md — tool invocation, commit trailer, task tracking AGENTS.md
docs/docs/sidebar/development/{development,testing,contributing}.md reduced to pointers
docs/docs/sidebar/development/contributing.md — block/component procedures ui-development.md

CLAUDE.md is now a pointer to AGENTS.md, matching every other repository.

Code standards

CONTRIBUTING.md points at the go-code-standards capability rather than restating it, which is what specify-go-code-standards task 2.5 asks for and what keeps 3.6 ("no shared convention stated in two places") satisfiable. Only conventions specific to osapi — logging, lifecycle, filesystem access — are stated here.

Removals

  • docs/CONTRIBUTING.md — a generic fork-and-PR primer referenced by nothing.
  • ui/docs/contributing.md, ui/docs/development.md — stale osapi-ui leftovers naming a repository that no longer exists and recipes that no longer exist (just dev).

ui/docs/architecture.md is kept: it holds a UI-primitives table, Text variant reference, and hooks table that the site's ui.md does not. Folding it in is specify-documentation-homes work, not layout work.

Verification

  • just md-fmt-check — passes
  • just docusaurus-fmt-check — passes
  • just docusaurus-build — passes (no broken links)

Docs-only; no Go code touched.

🤖 Generated with Claude Code

osapi was the only repository with neither a root CONTRIBUTING.md nor
an AGENTS.md, a 917-line CLAUDE.md, and three competing contributing
documents.

Contributing content now has one home at the root. The 917 lines of
CLAUDE.md split by audience: contributor conventions to CONTRIBUTING.md,
agent-specific guidance to AGENTS.md, and the nine-step domain
walkthrough to the docs site as its own page. CLAUDE.md is a pointer.

Code standards point at the go-code-standards capability rather than
restating it. Only the conventions specific to osapi -- logging,
lifecycle, filesystem access -- are stated here.

docs/CONTRIBUTING.md and the two stale osapi-ui leftovers under ui/docs/
are removed; ui/docs/architecture.md stays because it holds a component
reference the site does not.

Implements standardize-repository-layout task 4.5 and
specify-documentation-homes task 3.6.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Every other repository importing the md justfile module declares uv;
osapi did not, so `just md-fmt` resolved uvx from whatever the developer
happened to have installed. The markdown-lint workflow provisions it
through astral-sh/setup-uv, so both paths now float the latest release
and agree.

Satisfies the repo-standards requirement that a tool a repository
invokes is declared in .mise.toml.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #450   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files         484      484           
  Lines       24935    24935           
=======================================
  Hits        24921    24921           
  Misses         14       14           

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 443440a...a4622e4. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

retr0h added a commit to osapi-io/specs that referenced this pull request Aug 16, 2026
osapi's conversion (osapi-io/osapi#450) closes the task that blocked
three other changes: it was the only repository with neither a root
CONTRIBUTING.md nor an AGENTS.md.

Verification found five things the task lists asserted but nobody had
checked. Four now pass: the required files, the absent docs/contributing
and docs/development, the archived deprecated repositories, and the
react module already taking its directory as configuration. One did
not -- specs/LICENSE carried a differently titled and wrapped variant,
replaced here with the canonical copy.

Four remain open with the reason recorded rather than the box ticked:
redocly is invoked but undeclared, three mocks are hand-written, go is
pinned locally and floating in CI, and the export_test.go audit has not
been done.

Task 6.1 is dropped: osapi-io-taskfiles is archived and cannot be
pushed to, and the archived state is accepted as the deprecation signal.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@retr0h
retr0h merged commit ada8ca1 into main Aug 16, 2026
12 checks passed
@retr0h
retr0h deleted the docs/convert-repository-layout branch August 16, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant