this repo has no description

Draft workflow doc

seth.computer d2aa10da 77c78186

verified
+32
+32
docs/drafts.md
··· 1 + # Draft Workflow 2 + 3 + Drafts are stored in the `pub.sitebase.draft` collection, separate from `site.standard.document`. 4 + 5 + ## Managing drafts from the CLI 6 + 7 + ```bash 8 + # Create a new draft 9 + sitebase draft new 10 + 11 + # List drafts 12 + sitebase draft list 13 + 14 + # Edit a draft 15 + sitebase draft edit <rkey> 16 + 17 + # Publish a draft (creates site.standard.document, deletes draft) 18 + sitebase draft publish <rkey> 19 + 20 + # Delete a draft 21 + sitebase draft delete <rkey> 22 + ``` 23 + 24 + When publishing, the draft content is copied to a new `site.standard.document` record with: 25 + - `publishedAt` set to current time 26 + - Content type preserved 27 + - Draft record deleted 28 + 29 + 30 + ## Managing drafts from the web UI 31 + 32 + TODO