Genre
A genre is a kind of document, such as a concept, a note or a result. It fixes the document's job, its reader, its voice, its format, where it lives, which metadata it carries, how it may change over time, and which checks it must pass.
An agent writing a document reads its genre's card first, every time. So two documents of one genre read as if one author wrote them, and the gate can check what each genre promises. Voice is never set per document.
A genre gives structure and voice, never form. How an HTML page looks is its author's, on a free canvas: the card fixes what the page is, and the page decides how to show it.
What a card fixes, and what it leaves to the page
Each row below is something a card decides. The last row is the one thing it does not. Pick a genre to read its card down the column.
content/concepts/{slug}/index.html.
journalMarkdown, at content/journal/{yyyy}/{date}-{slug}.md.
resultMarkdown, at content/results/R-{n}.md, from the lab pack.
mapHTML, at content/maps/{slug}.html.
date, required; kind and about, optional.
resultprotocol, number, baseline, bound, evidence, rederive, date; supersedes when it replaces one.
mapNone.
why section; a word cap; every field present; unchanged since its first commit.
mapIts rows are present, and it is itself on a map.
Where a genre comes from
A genre is a folder holding its card and a skeleton. folio looks for it in three places, and the first one found wins. An override in the library holds only what it changes, so the card underneath still applies and folio's upgrades flow in.
- First
The library's own
genres/<name>/: an override, a variant or a genre of its own. - Then
A pack switched on in the charter, which adds genres under names no other genre uses.
- Last
folio's core: concept, note, entry, map, guide, project, journal and paper.
A variant, for a second audience
A genre can extend another. The variant inherits everything and overrides only what it states: usually the voice, the reader and the limits. A paper for a workshop extends the paper. A document changes genre only by promotion, as when a note that grew sections becomes an entry, and promotion keeps its id, links, comments and dates.
Related
The core has eight genres. A pack adds more, and a library can override a genre or add a variant for a second audience.
Where it is checked
The gate runs each card's checks on every document of its genre. Whether a page does its job well is left to the agent and the owner.