Skip to content

docs: restructure into Diátaxis layout#24

Open
simensen wants to merge 2 commits into
mainfrom
docs-restructure-diataxis
Open

docs: restructure into Diátaxis layout#24
simensen wants to merge 2 commits into
mainfrom
docs-restructure-diataxis

Conversation

@simensen
Copy link
Copy Markdown
Contributor

@simensen simensen commented Jun 3, 2026

Summary

Reorganize the flat docs/ tree into four Diátaxis sections (explanation/, getting-started/, guides/, reference/) so the on-ramp is clearer and reference material is easier to find. Modeled loosely on xcind's docs layout.

What moved

  • docs/cli-contract.mddocs/reference/cli.md
  • docs/skill-prompts.mddocs/reference/plugin.md
  • docs/repo-bootstrap.mddocs/reference/repo-bootstrap.md
  • docs/releasing.mddocs/reference/releasing.md
  • examples/workflows/morning-briefing.mddocs/guides/morning-briefing.md
  • docs/overview.md split into explanation/{what-is-clast,architecture,data-model,conventions}.md and deleted

What's new

  • docs/README.md — section index
  • docs/explanation/ — what-is-clast, architecture, data-model, conventions
  • docs/getting-started/ — install, first-snapshot, install-the-plugin
  • docs/guides/ — automate-with-cron, automate-with-systemd, curate-an-entry, use-breadcrumbs, repair-the-journal, query-recipes (+ promoted morning-briefing)
  • docs/reference/ — entry-frontmatter and config extracted as standalone pages

Link rewrites

  • README.md "Documentation" section now points at the new layout.
  • Source-comment doc references in lib/clast/**.bash and test/test-registry.sh updated to the new paths/anchors.
  • docs/steps/* and docs/build-steps.md are intentionally left untouched — per AGENTS.md ("planning docs are stable references that later steps point at"), the step files are historical build artifacts and accurately reference the pre-restructure paths.

Test plan

  • make lint passes
  • make test passes (exit 0)
  • No stale doc refs outside docs/steps/ and docs/build-steps.md (docs/README.md mentions the old paths only in the historical-note section)
  • Manually skim docs/README.md and walk the linked sections to confirm the on-ramp reads cleanly

…uides/reference)

Reorganize the flat docs/ tree into the four-section Diátaxis split so the
on-ramp is clearer and reference material is easier to find.

- Move existing reference docs into docs/reference/ (cli-contract→cli,
  skill-prompts→plugin, repo-bootstrap, releasing).
- Split docs/overview.md into explanation/{what-is-clast,architecture,
  data-model,conventions}.md.
- Extract entry-frontmatter and config into their own reference pages.
- Add getting-started/ (install, first-snapshot, install-the-plugin) and
  guides/ (automate-with-cron/-systemd, curate-an-entry, use-breadcrumbs,
  morning-briefing, repair-the-journal, query-recipes).
- Add docs/README.md as the index.
- Update README.md and source-comment doc references to the new paths.
- Promote examples/workflows/morning-briefing.md to guides/.

docs/steps/* and docs/build-steps.md are left untouched — they are
historical build artifacts that intentionally reference the
pre-restructure paths.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

# Morning Briefing Example

P1 Badge Restore the packaged workflow example

Moving this walkthrough out of examples/ breaks the npm release guard: package.json runs ./contrib/npm-pack-check.sh in prepublishOnly, and that script still requires examples/workflows/morning-briefing.md. With this commit, npm pack --dry-run no longer includes that path, so the check exits with MISSING from tarball: examples/workflows/morning-briefing.md and npm publishes are blocked until the packaged path or the check is updated.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

contrib/npm-pack-check.sh requires examples/workflows/morning-briefing.md
in the published tarball (and docs/ is in its forbidden list, so the file
can't live only under docs/guides/). Restore the file to its packaged
location and link to it from the guides index and README instead of
duplicating it.

Reported by Codex on #24.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70558bdbc5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

## 3. Inspect a single session

```sh
clast sessions --since -7d --json | jq -r '.[0].uuid' # grab a uuid
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Select the emitted session_id field

In this walkthrough, clast sessions --json does not emit a uuid key; the sessions command builds rows with session_id instead. Following this command returns null, so the next clast show <session-uuid>/entries write --session <uuid> steps fail for users copying the guide. Use .[0].session_id here.

Useful? React with 👍 / 👎.


```sh
# Just the curated ratio for the last week
clast stats --since -7d --json | jq '.curated_sessions / .total_sessions'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the actual stats JSON keys

The stats subcommand emits curated and sessions keys, not curated_sessions or total_sessions, so this recipe evaluates missing fields and fails instead of producing the curated ratio. Users following the query guide need this to divide .curated / .sessions (with any desired zero guard).

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant