Skip to content

Restructure README + SPEC#137

Merged
adgad merged 2 commits into
mainfrom
restructure-docs
Jan 19, 2026
Merged

Restructure README + SPEC#137
adgad merged 2 commits into
mainfrom
restructure-docs

Conversation

@adgad
Copy link
Copy Markdown
Collaborator

@adgad adgad commented Jan 12, 2026

Problem

The README for this repository is currently a combination of documentation about the project, instructions for contributors, and the spec itself. This follows from the patterns used in unist specs, from which it was derived.

While it was neat to have the readme be the "one place" to look, it also had the counter effect of making the project less accessible to contributors or people wanting to know about the project. This would be exacerbated when we want to document some schema design principles/guidelines.

Solution

Split the content out into README.md and SPEC.md

The README contains:

  • background on what content-tree is
  • introductions to concepts (e.g. syntax tree, transit/external)
  • how to use in typescript/go/json schemas
  • basic contribution docs

The SPEC contains:

  • all the nodes and types
  • high level design principles (don't exist yet, but i think this is the best place for them, rather than the readme?)

The schemas etc build in the same way, but they build from SPEC.md rather than README.md

What to review

Most of the changes exist in README.md (the SPEC is the same, just slightly re-ordered). It's probably best to read the README as a whole, rather than the diff.

In general, I want feedback on whether the changes make the project more accessible to newcomers, whilst still making the Spec easy to work with. It might not be perfect but hopefully a big step in the right direction!

  1. Does this split (described above) make sense?
  2. Does the flow of the README make sense (in terms of the order of the sections)
  3. Any key information missing?
  4. Have I got something wrong about any of the Go stuff?

@adgad adgad requested review from a team as code owners January 12, 2026 10:35
Copy link
Copy Markdown
Contributor

@epavlova epavlova left a comment

Choose a reason for hiding this comment

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

Nitpicks and ideas only

Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md Outdated
@epavlova epavlova requested a review from a team January 14, 2026 13:22
Split into sections with clear headings, add some more context and
background to project

Fix a few typos here and there.
@adgad adgad merged commit 2e34b57 into main Jan 19, 2026
6 checks passed
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.

2 participants