Publish the deck
deck_publishBuilds and publishes an MDX slide deck to its Kadal Deck host with a live room, returning the URL and never signing in on its own.
Instructions
Build the deck and publish it to its Kadal Deck host (deck.kadal.cc by default) with a live room; returns the URL. Uses the login saved by kadal-deck login (or KADAL_DECK_TOKEN). If nobody is signed in it returns what the person must run — it never signs in by itself. The deck's editable source goes too (privately), so it can be quick-edited on the web. If the published deck moved since this folder last synced (a web or agent edit, a publish from another copy, a rollback — or the folder never synced), it does NOT publish: it returns {ok:false, reason:"diverged", head, next} — call deck_pull, settle any conflicts, deck_check, then publish again. Use force:true only when the person explicitly says to replace that version. While conflict markers are left it returns {ok:false, reason:"conflicts"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Deck folder (contains deck.mdx). Absolute, or relative to the server's folder. Default: the server's folder. | |
| slug | No | URL slug (default: the folder name). | |
| force | No | Replace edits made on the web since the last sync. Only when the person asks. | |
| title | No | ||
| source | No | false: don't upload the editable source (quick edit off; it sticks). true turns it back on. | |
| showcase | No | List the deck in the public showcase (true) or take it out (false); omit to leave it. | |
| workspace | No | Workspace handle (default: the token's). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |