slidetake 0.0.0-stage → 0.1.1
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/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +113 -2
- package/dist/index.html +4176 -0
- package/dist/slidetake.js +1456 -0
- package/examples/embed.html +30 -0
- package/package.json +48 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Embed example</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<!--
|
|
10
|
+
How a site hosts a deck with Slidetake: describe the deck in window.SLIDETAKE, then load slidetake.js.
|
|
11
|
+
The hugo-continuum theme writes exactly this for slide pages with `engine: slidetake`.
|
|
12
|
+
|
|
13
|
+
markdown the deck, without its frontmatter
|
|
14
|
+
settings the frontmatter as data (title, brand, duration, pip, camera, …)
|
|
15
|
+
base where relative images resolve, usually the page's own address
|
|
16
|
+
trail [{label, url}, …]: the header, from the site down to the deck's section
|
|
17
|
+
themeKey the localStorage key the site keeps light / dark / auto under (optional)
|
|
18
|
+
-->
|
|
19
|
+
<script>
|
|
20
|
+
window.SLIDETAKE = {
|
|
21
|
+
markdown: "# Embedded deck\n\nThis page hosts a Slidetake deck.\n\n## A section\n\nWith a detail below it.\n\n### A detail\n\nPress ↑ to go back up.\n\n## Another section\n\n- one\n- two\n",
|
|
22
|
+
settings: {title: "Embedded deck", brand: "example.com", duration: "5m", tags: ["demo"]},
|
|
23
|
+
base: location.href,
|
|
24
|
+
trail: [{label: "Example site", url: "../"}, {label: "Talks", url: "../"}],
|
|
25
|
+
themeKey: "example-theme"
|
|
26
|
+
};
|
|
27
|
+
</script>
|
|
28
|
+
<script src="../dist/slidetake.js"></script>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slidetake",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Markdown to finished video: a spatial deck that records itself, take by take",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"slides",
|
|
7
|
+
"presentation",
|
|
8
|
+
"markdown",
|
|
9
|
+
"reveal.js",
|
|
10
|
+
"obs",
|
|
11
|
+
"video",
|
|
12
|
+
"recording",
|
|
13
|
+
"deck"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://slidetake.com",
|
|
16
|
+
"bugs": "https://github.com/slidetake/slidetake/issues",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "Sakthi Priyan H",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/slidetake/slidetake.git"
|
|
22
|
+
},
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "dist/slidetake.js",
|
|
25
|
+
"browser": "dist/slidetake.js",
|
|
26
|
+
"unpkg": "dist/slidetake.js",
|
|
27
|
+
"jsdelivr": "dist/slidetake.js",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/slidetake.js",
|
|
30
|
+
"dist/index.html",
|
|
31
|
+
"examples/embed.html",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"NOTICE",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "node build.mjs",
|
|
38
|
+
"dev": "node build.mjs && (node build.mjs --watch & wrangler dev --port 8787 --ip 127.0.0.1)",
|
|
39
|
+
"watch": "node build.mjs --watch",
|
|
40
|
+
"test": "node --test \"test/*.test.js\"",
|
|
41
|
+
"typecheck": "tsc -p jsconfig.json",
|
|
42
|
+
"check": "npm run typecheck && npm test && npm run build",
|
|
43
|
+
"prepublishOnly": "npm run check"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"esbuild": "0.25.10",
|
|
47
|
+
"typescript": "5.9.3",
|
|
48
|
+
"wrangler": "^4.152.0"
|
|
49
|
+
}
|
|
50
|
+
}
|