@treasure-ai/treasure-deck 2026.10.18 → 2026.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasure-ai/treasure-deck",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.0",
|
|
4
4
|
"description": "Markdown presentations without <div> markup: four layouts, themes, and a single-file HTML output that publishes to Apps Script",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@treasure-ai/treasure-deck",
|
|
@@ -325,10 +325,22 @@ A built page carries the deck's source, so whoever can open it can get the deck
|
|
|
325
325
|
|
|
326
326
|
To start from a deck someone shared, run `deck import <page.html | url> [dir]` and edit the folder it writes. For an Apps Script deck that isn't public, it needs the user's Google sign-in (`gcloud auth login --enable-gdrive-access`); otherwise have the user download the `.zip` from the deck's share panel.
|
|
327
327
|
|
|
328
|
-
To list several published decks on one page, run `deck index` from the workspace root: it keeps `deck/index.json` (one entry per deck under `deck/`, with a thumbnail in `deck/thumbnails/`) and writes `deck/index.html`. After publishing a deck, set its entry's `url` in `deck/index.json` to the published URL (or add `url:` to its frontmatter), then run `deck index` again. When the user asks to feature or retire a deck, run `deck index --star <deck>` or `--archive <deck>` (`--unstar`, `--unarchive` undo them). Publish `deck/index.html` like a deck, with its own `artifact_id` for updates. An index shows every deck's title and first slide, so give it an audience no wider than the narrowest deck it lists, or remove the entries that audience shouldn't see.
|
|
329
|
-
|
|
330
328
|
Don't publish the deck `.md` as a `note`: it would appear as a plain document, not slides. Don't use `mechanism: "drive"` for a deck either, since Drive doesn't serve the HTML as a page. A published page is a snapshot, so rebuild and republish after each edit.
|
|
331
329
|
|
|
330
|
+
## An index of decks
|
|
331
|
+
|
|
332
|
+
To list several decks on one page, run `deck index` from the workspace root. It needs Chrome for the thumbnails.
|
|
333
|
+
|
|
334
|
+
- **Where:** it works on `deck/` when that folder exists, else the current folder. Pass a folder to index another one; `-o <file>` writes the page elsewhere.
|
|
335
|
+
- **What it writes:** `deck/index.json`, one entry per deck keyed by its `.md` path, and `deck/index.html`, a single self-contained page. Each run adds every `deck: true` file under the folder and refreshes its title, `date`, `author`, slide count, and thumbnail. It captures a thumbnail again only when the deck's built page changes.
|
|
336
|
+
- **What it keeps:** entries without a `source` (added by hand), the `url`, `description`, and `tags` of a deck whose frontmatter doesn't set them, and the `starred` and `archived` marks. An entry whose deck is gone is dropped. A deck that doesn't build keeps its entry as it was, with a warning.
|
|
337
|
+
- **Link:** the deck's `url:` frontmatter, else the entry's `url`, else the deck's built page beside it. A deck with neither needs `deck build` first, or its card links to a missing page. After publishing a deck, set its entry's `url` in `deck/index.json` (or add `url:` to its frontmatter), then run `deck index` again.
|
|
338
|
+
- **Card:** `thumbnail: 3` shows slide 3 instead of the first; `description:` and `tags:` appear on the card, and each tag gets a filter button. Cards open in a new tab. The page title is the manifest's `title` (default "Decks").
|
|
339
|
+
- **Feature or retire:** `deck index --star <deck>` lists it under ★ Starred at the top; `--archive <deck>` moves it under an Archived button at the end, out of the count. `--unstar` and `--unarchive` undo them. The flags take the deck's `.md` or its folder, can repeat, and rebuild the page in the same run. A deck is starred or archived, never both.
|
|
340
|
+
- **Publish:** publish `deck/index.html` like a deck, with its own `artifact_id` for updates. To publish only some decks, write a manifest that lists just those and run `deck index <manifest.json>`: it builds the page from the manifest without rescanning, inlines the thumbnails, and writes `index.html` beside the manifest (or to `-o`).
|
|
341
|
+
- **Audience:** the index shows every listed deck's title and thumbnail, so give it an audience no wider than the narrowest deck it lists, or remove the entries that audience shouldn't see.
|
|
342
|
+
- **In the editor:** **All decks** shows the index of the deck being edited, and opens its other decks.
|
|
343
|
+
|
|
332
344
|
## When the user wants a different look
|
|
333
345
|
|
|
334
346
|
Switching `theme:` restyles everything without edits. For small changes (a brand color, a custom class), add a `theme.css` next to the deck; it loads after the theme. For a whole new look, `deck theme init my-theme` (or `--from gold`) scaffolds a theme folder, used with `theme: ./my-theme`; it sets a few seed colors (`--deck-bg`, `--deck-fg`, `--deck-accent`) and the rest is derived. Run `deck theme check ./my-theme` after editing it.
|