slidetake 0.1.0 → 0.2.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 CHANGED
@@ -6,6 +6,10 @@ Slidetake turns a markdown file into a deck you move through like a map, and, wh
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.
8
8
 
9
+ ## Examples
10
+
11
+ [`examples/`](examples) holds the decks to look at and start from: [`showcase.md`](examples/showcase.md) has everything a card can hold (steps, Graphviz, D2, SVG, ECharts, images, galleries, YouTube, camera) and is what [slidetake.com/examples](https://slidetake.com/examples) shows; the starter templates sit beside it.
12
+
9
13
  ## Run it
10
14
 
11
15
  ```sh
@@ -66,16 +70,25 @@ window.SLIDETAKE = {
66
70
  base: location.href, // where relative images resolve
67
71
  trail: [{label: "My site", url: "/"}, // the header: the site, down to the deck's section
68
72
  {label: "Talks", url: "/talks/"}],
69
- themeKey: "my-site-theme" // optional: the site's light/dark/auto key
73
+ themeKey: "my-site-theme", // optional: the site's light/dark/auto key
74
+ colors: { // optional: the site's colours instead of Slidetake's green
75
+ light: {accent: "#7a5c12", line: "#f5c542", header: "linear-gradient(135deg,#f5c542,#d4af37)", headerText: "#1a1408"},
76
+ dark: {accent: "#e0b024", line: "#966f04"}
77
+ }
70
78
  // recording: true // optional: always show Camera and Record
71
79
  };
72
80
  </script>
73
- <script src="https://cdn.jsdelivr.net/npm/slidetake@0.1.0/dist/slidetake.js"></script>
81
+ <script src="https://cdn.jsdelivr.net/npm/slidetake@0.2.0/dist/slidetake.js"></script>
74
82
  ```
75
83
 
84
+ `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.
85
+
76
86
  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`.
77
87
 
78
- The page then shows that deck, read-only, with the layouts, keys and fullscreen. Camera and Record appear when the address has `?obs=` (or with `recording: true`), so readers get a clean view and you can still record from the page. 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`.
88
+ The page then shows that deck, read-only, in one of two modes:
89
+
90
+ - **Viewer** (the default): no bottom bar. The header carries Slidetake, the layouts, light/dark, Keys and Fullscreen.
91
+ - **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`.
79
92
 
80
93
  ## Develop
81
94