orz-slides 0.3.0 → 0.6.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/README.md +8 -4
- package/assets/app.js +160 -1
- package/dist/lib.d.ts +4 -0
- package/dist/lib.js +25 -13
- package/dist/orz-slides.browser.js +69 -73
- package/dist/template.js +15 -0
- package/orz-slides-skills/SKILL.md +1 -1
- package/package.json +2 -2
package/dist/template.js
CHANGED
|
@@ -161,6 +161,7 @@ const ICON = {
|
|
|
161
161
|
pencil: ic24('<path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"/>'),
|
|
162
162
|
collapseDown: ic24('<path d="M6 9l6 6 6-6"/>'),
|
|
163
163
|
layout: ic24('<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>'),
|
|
164
|
+
ai: ic24('<path d="M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z"/>'),
|
|
164
165
|
};
|
|
165
166
|
/** The orz mark — the "orz" wordmark knocked out of a weathered green seal
|
|
166
167
|
* (rough-edged, stone-textured). From wangyu16/logoes-and-icons (orz.svg);
|
|
@@ -217,6 +218,19 @@ ${themeTag}
|
|
|
217
218
|
<style>${CHROME_CSS}</style>
|
|
218
219
|
</head>
|
|
219
220
|
<body>
|
|
221
|
+
<!-- ═══════════ orz · editing this deck with an AI agent ═══════════
|
|
222
|
+
This is a self-contained, EDITABLE orz-slides deck (.slides.html). The editable
|
|
223
|
+
source of truth is the slide markdown in the embedded deck source island below
|
|
224
|
+
(kind: slides, format: 1) — NOT the rendered HTML.
|
|
225
|
+
|
|
226
|
+
To edit it correctly, load the official orz-slides agent skill first: it defines
|
|
227
|
+
the comment-based layout grammar (slide markers, title bands, region splits,
|
|
228
|
+
speaker notes) and guarantees a byte-identical round-trip.
|
|
229
|
+
- Fetch the skill: https://cdn.jsdelivr.net/npm/orz-slides/orz-slides-skills/SKILL.md
|
|
230
|
+
- Install routes: https://markdown.orz.how/agents.html
|
|
231
|
+
|
|
232
|
+
Rules: edit ONLY the embedded deck source and re-embed it in place.
|
|
233
|
+
═══════════════════════════════════════════════════════════════════ -->
|
|
220
234
|
<div class="reveal"><div class="slides"></div></div>
|
|
221
235
|
|
|
222
236
|
<button id="orz-edit-fab" class="orz-edit-ctrl" title="Edit this deck">${ICON.pencil}</button>
|
|
@@ -240,6 +254,7 @@ ${themeTag}
|
|
|
240
254
|
<button id="orz-up" class="ic" title="Move slide earlier">${ICON.up}</button>
|
|
241
255
|
<button id="orz-down" class="ic" title="Move slide later">${ICON.down}</button>
|
|
242
256
|
<span class="orz-spacer"></span>
|
|
257
|
+
<button id="orz-ai" class="ic" title="AI assistant — improve this slide" aria-label="AI assistant" style="display:none">${ICON.ai}</button>
|
|
243
258
|
<button id="orz-layout-btn" class="ic" title="Slide layout" aria-haspopup="true" aria-expanded="false">${ICON.layout}</button>
|
|
244
259
|
<button id="orz-deck-btn" class="ic" title="Deck settings (theme, footer, ratio, title)">${ICON.deck}</button>
|
|
245
260
|
<select id="orz-theme" title="Theme"></select>
|
|
@@ -26,7 +26,7 @@ You write only the **deck source**. Never hand-write the surrounding HTML
|
|
|
26
26
|
edit the deck source (in a `.md`-ish file fed to the CLI, or in-browser) and let
|
|
27
27
|
the tool re-serialize.
|
|
28
28
|
|
|
29
|
-
> Status: orz-slides is **published to npm** (v0.
|
|
29
|
+
> Status: orz-slides is **published to npm** (v0.4.0) as two lockstep packages —
|
|
30
30
|
> the `orz-slides` CLI and the `orz-slides-browser` engine. Generate decks with
|
|
31
31
|
> the CLI (`npx orz-slides deck.md`, or install it globally). Speaker view
|
|
32
32
|
> (**S**), step-reveal fragments, an on-deck timer (**T**), and slide numbers are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orz-slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Self-contained, editable HTML slide decks (.slides.html) authored in orz-markdown with a layout syntax. Sibling of orz-mdhtml.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "https://github.com/wangyu16/orz-slides"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"orz-markdown": "^1.3.
|
|
47
|
+
"orz-markdown": "^1.3.2",
|
|
48
48
|
"reveal.js": "^5.0.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|