Available templates
| Template | Typical use |
|---|---|
book | Books, manuals, long-form publications |
legal-contract | Contracts and legal agreements |
charter-party | Maritime charter party contracts |
academic-paper | Research papers and journal-style documents |
Use a template
If you do not specify one
Shelv still structures the document automatically.Choosing a template
- Use
bookwhen chapter and part boundaries are important in downstream processing - Use
legal-contractwhen clause-level navigation and section references matter - Use
charter-partyfor maritime charter parties (voyage, time, bareboat) — separates Part I commercial terms, printed clauses, and rider clauses into distinct directories - Use
academic-paperwhen you need predictable research-section grouping
Output expectations
Templates improve consistency, but exact file names and directory depth can vary by source document shape. Integrations should rely on discovered paths fromtree or your own file selection logic, not hardcoded paths.
For stable integrations, treat templates as organization guidance, then discover concrete paths at runtime before file reads.
This approach prevents brittle assumptions when source documents vary in section naming or depth.