2. Capture your first units
Decompose a corner of the topic and classify each piece with the decision guide.
After this lesson you can
- Classify a piece of knowledge as concept, entity, fact, or process - Write a unit file with a body and related links - Render the book and find your unit's page
Before you start: Scaffold your first wskill
Content lives in data/ as block instances. Pick one small corner of your topic and split it into atomic units — one idea each. Then classify each piece with the decision guide: an idea the reader must understand is a concept, a concrete named thing (a person, a tool, a file format) is an entity with a kind from schema/kinds.wcl, and a value or lookup table is a fact. Never default to entity.
Every unit gets an id, a headline, and a body { … } of wdoc blocks. Link units to each other with related = [other_id] — the projections turn those into links both ways.
§ 1Exercise: Write a concept and render it
Add a concept to data/reference/reference.wcl, then build the book and open your concept's page.
}
&&
Expected result
The build reports the pages written, and out/book/concept_my_first_idea.html exists with your body text.
Hint
If wcl check fails, the error names the file, line, and field — fix and re-run.
§ 2Exercise: Classify three notes
Take three pieces of your topic — one idea, one named tool, one value table — and file each as the right kind.
Expected result
One concept, one entity (with a kind symbol that isn't a stretch), one fact with a table body — and wcl check stays green.
Hint
If no EntityKind fits without lying, the note isn't an entity — re-run it through the decision guide.