@lincyaw/skills 1.0.0-rc.2 → 1.0.0-rc.4

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": "@lincyaw/skills",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Presmium's bundled authoring, animation, presentation and plugin-development skills for coding agents",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "jiti": "^2.7.0",
39
- "@lincyaw/kernel": "1.0.0-rc.2"
39
+ "@lincyaw/kernel": "1.0.0-rc.4"
40
40
  },
41
41
  "presmium": {
42
42
  "skills": [
package/skills/index.json CHANGED
@@ -10,8 +10,8 @@
10
10
  "references/publishing.md",
11
11
  "references/writing.md"
12
12
  ],
13
- "version": "1.0.0-rc.2",
14
- "hash": "2e27ca4a0f11c77ec4e66f82b28f3d2b27258f975bf1ab08b9491e1e741aa747"
13
+ "version": "1.0.0-rc.4",
14
+ "hash": "3f841d69e55215c71ce44c08a8d5637ed5b6a94be165f9a75283c7df08dbac0c"
15
15
  },
16
16
  {
17
17
  "name": "presmium-animate",
@@ -535,7 +535,7 @@
535
535
  "references/storyboards.md",
536
536
  "references/timeline.md"
537
537
  ],
538
- "version": "1.0.0-rc.2",
538
+ "version": "1.0.0-rc.4",
539
539
  "hash": "9e3a9ca95da8c619742adbcfee68112d426a48b442fd375b367e5e5fb3cf5a21"
540
540
  },
541
541
  {
@@ -547,7 +547,7 @@
547
547
  "references/delivery.md",
548
548
  "references/lecture.md"
549
549
  ],
550
- "version": "1.0.0-rc.2",
550
+ "version": "1.0.0-rc.4",
551
551
  "hash": "04a41943c1bb3ef1a13bf9847946b27b16535dd78358e606de2d999730217560"
552
552
  },
553
553
  {
@@ -558,7 +558,7 @@
558
558
  "references/plugin.md",
559
559
  "references/testing.md"
560
560
  ],
561
- "version": "1.0.0-rc.2",
561
+ "version": "1.0.0-rc.4",
562
562
  "hash": "9b3cab9683b45f11c631a19f916639ffb4c0f74c054c14baee24aa5655a35de4"
563
563
  }
564
564
  ]
@@ -46,8 +46,27 @@ In the workspace configuration, `site.theme` selects `course`, `docs` or `showca
46
46
  | `contentWidth` | `comfortable`, `wide` |
47
47
  | `logo`, `logoAlt` | The logo location and alternative text |
48
48
 
49
+ For a look of its own, `site.theme` names a theme directory (`./theme`) or an installed theme package instead of a built-in id. The directory holds `theme.json`:
50
+
51
+ ```json
52
+ {
53
+ "schemaVersion": 1,
54
+ "name": "pixel",
55
+ "extends": "docs",
56
+ "params": { "typography": "sans" },
57
+ "tokens": { "font-sans": "'IBM Plex Sans', system-ui, sans-serif", "color-bg": "#f6f6f1", "color-accent": "#2546b8", "radius-control": "0" },
58
+ "dark": { "color-bg": "#121216", "color-accent": "#8ea6ff" },
59
+ "fonts": ["https://fonts.googleapis.com/css2?family=Silkscreen&display=swap"],
60
+ "styles": ["./pixel.css"]
61
+ }
62
+ ```
63
+
64
+ `extends` picks the built-in layouts (default `docs`); `params` are defaults under the site's own `site.params`. `tokens` set design tokens by their name without `--pm-` (the build rejects unknown names); colors and shadows there are the light appearance's, and `dark` sets the dark ones, falling back to the built-in dark values. `fonts` are `https:` stylesheet URLs; `styles` are CSS files in the theme directory, which may use relative `url()`s to the directory's fonts and images. Every page carries `data-pm-site-theme-name="<name>"`, so a stylesheet scopes its rules with `[data-pm-site-theme-name='pixel']`. An HTML template homepage receives the stylesheets in the site data (`site.theme.stylesheets`) to link them itself. A theme package sets `presmium.theme` in its `package.json` to the directory with `theme.json`, or keeps `theme.json` at its root.
65
+
49
66
  Keep each teaching document's page layout in `metadata.renderers.web.layout`: `article` (default), `landing` (all sections combined into one full-width HTML page without sidebars or page navigation), or `wide` (wider content without the right outline). Each translation uses its own layout, defaulting to `article` when omitted; it does not inherit the original's layout. A standalone document can select `theme` and `params` in its own `metadata.renderers.web`; do not use document themes to override the shared shell of a workspace site. A string `site.landing` adds a full-document root page without changing the original document's pagination; a document's own `layout: landing` changes that pagination. Independent site page content stays separate. Templates do not alter authored block/step identities, narration or production settings.
50
67
 
68
+ A workspace build also builds the presentation of every document whose `metadata.renderers` lists `slides` or `lecture`: `<dir>/slides/` and `<dir>/lecture/` beside its pages. A template homepage can play a narrated document in an iframe at `<dir>/slides/?view=present&track=script&autoplay`, starting at a step with `section=<id>&step=<n>`.
69
+
51
70
  After changing website settings in `presmium.workspace.yaml`, restart `pnpm serve` for preview or run `pnpm build` again for the output. Existing serve sessions do not reload the workspace's website configuration.
52
71
 
53
72
  `pnpm build` in the generated site writes `dist/web/`. Its `.github/workflows/pages.yml` reads GitHub Pages' base path, builds and deploys that directory after the repository's Pages source is set to GitHub Actions. Other hosts can serve the same static output. Check the real deployed root and an inner-page direct link, plus search and media; a successful local build does not verify the deployment path.