slidetake 0.3.4 → 0.4.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 +11 -11
- package/dist/index.html +1915 -311
- package/dist/slidetake.js +548 -330
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Markdown in, a spatial deck and a finished video out.
|
|
4
4
|
|
|
5
|
-
Slidetake turns a markdown file into a deck you move through like a map, and, when you are recording, drives the camera and OBS from the deck itself: every slide is a take, a slide spoken badly is retaken on the spot, and at the end you get a frame-exact ffmpeg cut
|
|
5
|
+
Slidetake turns a markdown file into a deck you move through like a map, and, when you are recording, drives the camera and OBS from the deck itself: every slide is a take, a slide spoken badly is retaken on the spot, and at the end you get a frame-exact ffmpeg cut and the YouTube chapters.
|
|
6
6
|
|
|
7
7
|
The built app is a single HTML file, [`dist/index.html`](dist/index.html): open it, copy it or host it anywhere. Every feature: [slidetake.com/features](https://slidetake.com/features); step by step: [slidetake.com/docs](https://slidetake.com/docs).
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ The built app is a single HTML file, [`dist/index.html`](dist/index.html): open
|
|
|
12
12
|
|---|---|
|
|
13
13
|
| **slidetake.com** | write in the editor, view a deck from a GitHub file, gist or URL, and share a link with the deck inside it |
|
|
14
14
|
| **Your computer** | the same with `npx slidetake deck.md`: your files and the images beside them, offline, reloading as you save, so an AI agent can write `deck.md` while you watch ([llms.txt](https://slidetake.com/llms.txt) tells it how) |
|
|
15
|
-
| **Your website** | `slidetake.js` on your pages ([below](#embed-in-a-site)):
|
|
15
|
+
| **Your website** | `slidetake.js` on your pages ([below](#embed-in-a-site)): a viewer for your readers, in your site's colours; the hugo-continuum theme does it for `engine: slidetake` |
|
|
16
16
|
|
|
17
17
|
### On your computer
|
|
18
18
|
|
|
@@ -59,16 +59,18 @@ For AI tools: the guide is plain markdown at [slidetake.com/docs.md](https://sli
|
|
|
59
59
|
|
|
60
60
|
## Recording
|
|
61
61
|
|
|
62
|
-
The bottom bar
|
|
62
|
+
**● Studio** (R), beside ✎ Editor in the header, opens Slidetake Studio: record in the browser or with OBS, review the takes, download the video. The bottom bar has **Keys** (K), **Camera** (C) and **Fullscreen** (F), each lit while it's on. The camera is off until someone turns it on, and until then the deck's camera settings are ignored, so the same deck works for readers.
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
For OBS, Studio's ⚙ Setup asks where OBS is, or fill it in from the address (the same format the reveal.js slides use):
|
|
65
65
|
|
|
66
66
|
```
|
|
67
67
|
?obs=localhost:4455
|
|
68
68
|
?obs=192.168.1.10:4455:password
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
In Chrome, Edge and other Chromium browsers the deck records itself, nothing to install: slides and camera in a 16:9 frame, one file per take, and ↓ Download joins the picked takes into an MP4. In any browser, [OBS Studio](https://obsproject.com) (free, with its WebSocket server on) can record while Slidetake drives it; Setup checks the screen is 16:9, so the video fits YouTube without bars.
|
|
72
|
+
|
|
73
|
+
Recording is on slidetake.com and `npx slidetake`; decks embedded with `slidetake.js` are view-only.
|
|
72
74
|
|
|
73
75
|
From https://slidetake.com, OBS must run on the same computer (`localhost`): browsers block secure pages from plain `ws://` connections to other machines. To record with OBS on another machine, use `npx slidetake`, which serves over http.
|
|
74
76
|
|
|
@@ -93,20 +95,18 @@ window.SLIDETAKE = {
|
|
|
93
95
|
light: {accent: "#7a5c12", line: "#f5c542", header: "linear-gradient(135deg,#f5c542,#d4af37)", headerText: "#1a1408"},
|
|
94
96
|
dark: {accent: "#e0b024", line: "#966f04"}
|
|
95
97
|
}
|
|
96
|
-
// recording: true // optional: always show Camera and Record
|
|
97
98
|
};
|
|
98
99
|
</script>
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/slidetake@0.
|
|
100
|
+
<script src="https://cdn.jsdelivr.net/npm/slidetake@0.4.0/dist/slidetake.js"></script>
|
|
100
101
|
```
|
|
101
102
|
|
|
102
103
|
`colors` takes any CSS colour per token, for both modes or under `light` / `dark`: `accent` (text and the current slide), `accentSoft` (smaller headings), `line` (borders and the active path), `ring` (the current slide's outline), `header` and `headerText` (a band of colour behind the header). A deck can also set its own with `accent:` in its top block.
|
|
103
104
|
|
|
104
105
|
Load it from npm through a CDN (pin the version, as above), or copy `dist/slidetake.js` into your site, or `npm install slidetake` and serve `node_modules/slidetake/dist/slidetake.js`.
|
|
105
106
|
|
|
106
|
-
The page then shows that deck
|
|
107
|
+
The page then shows that deck as a viewer: read-only, with no editor, camera or Studio, and no bottom bar. The header carries Slidetake, the layouts, light/dark, Keys and Fullscreen. See [examples/embed.html](examples/embed.html); the [hugo-continuum](https://github.com/sakthipriyan/hugo-continuum) theme uses it for slide pages with `engine: slidetake`.
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
- **Record** (`?obs=` in the address, or `recording: true`): the bottom bar as on slidetake.com, with Keys, Camera, Record and Fullscreen. See [examples/embed.html](examples/embed.html). The [hugo-continuum](https://github.com/sakthipriyan/hugo-continuum) theme uses it for slide pages with `engine: slidetake`.
|
|
109
|
+
To record a video of an embedded deck, open its markdown on slidetake.com or with `npx slidetake`. `accent:`, `brand:` and `logo:` in its top block give the video your site's look.
|
|
110
110
|
|
|
111
111
|
## Develop
|
|
112
112
|
|
|
@@ -127,7 +127,7 @@ npm run check # type check, tests, build
|
|
|
127
127
|
|
|
128
128
|
`dist/index.html` is committed so the app works straight from the repo; rebuild it with `npm run build` before committing.
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
Two workflows. **Check PR** runs on every pull request: the changelog check, `npm run check` and `wrangler deploy --dry-run`. **Publish** runs on a version tag on `main` (`v0.4.0`, matching `package.json`, with a `## [0.4.0]` changelog section): it publishes the package to npm, waits until npm serves it, then deploys [slidetake.com](https://slidetake.com) as an assets-only Cloudflare Worker (`wrangler.jsonc`) with the app taken from that npm release, and creates the GitHub release. Merging to `main` deploys nothing, so the site and the package are always the same release. Run **Publish** by hand (Actions → Publish → Run workflow) to only redeploy the site for a released version, the latest on npm unless you give one: to retry a deploy or roll back. Nothing is published then.
|
|
131
131
|
|
|
132
132
|
## Status
|
|
133
133
|
|