Skip to content

Commit 8ee7315

Browse files
authored
Merge pull request #74 from missing-elements/deps/h5p-author-0.13.0
Pin h5p-author 0.13.0, and say what the chat asks now
2 parents d8e10b1 + 2ea8da5 commit 8ee7315

4 files changed

Lines changed: 21 additions & 13 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@codemirror/state": "6.7.6",
2929
"@codemirror/view": "6.43.15",
3030
"@lezer/highlight": "1.2.5",
31-
"@missing-elements/h5p-author": "0.12.0",
31+
"@missing-elements/h5p-author": "0.13.0",
3232
"@missing-elements/h5p-libraries": "1.1.0",
3333
"@missing-elements/h5p-offline-player": "1.6.0",
3434
"@missing-elements/h5p-runtime": "1.0.1",

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/h5p/build/index.njk‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da
120120
</section>
121121

122122
{#- The prompt is a code block, which site.js gives a Copy button. It names the skill, which the
123-
chat has once the first step is done, and the content type, so the chat asks only for the
124-
author and licence: the sample is what Haiku wrote for this request, with the site's name and
123+
chat has once the first step is done, and the content type, so the chat asks nothing (since
124+
2026-11-14 the skill asks for the type at most, and writes the author and licence the prompt
125+
gives, or defaults): the sample is what Haiku wrote for this request, with the site's name and
125126
licence put on it. Until 2026-11-13 the prompt sent the chat to read the skill at /h5p/skill/
126127
instead, which worked only in chats that now take the skill as a zip. -#}
127128
<section class="band band-tint make when-unlinked" id="make" aria-labelledby="make-heading">
@@ -137,7 +138,7 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da
137138
</li>
138139
<li>
139140
<h3>Ask your chat</h3>
140-
<p>Paste the prompt below into a new chat, with a subject of your own. The chat asks whose name and which licence go on the activity, which you may skip, and writes it.</p>
141+
<p>Paste the prompt below into a new chat, with a subject of your own. It names the type, so the chat asks nothing and writes the activity.</p>
141142
</li>
142143
<li>
143144
<h3>Play it, then download it</h3>

‎src/h5p/create-with-ai/index.njk‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,21 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o
109109
another language, say so, such as "in French": the activity's buttons come in it too, where
110110
H5P has a translation.
111111
</p>
112+
<p>
113+
To change an activity you already have, attach its <code>.h5p</code> and say what to change,
114+
such as "add two harder questions". A chat that builds the file itself, as in step 4, reads
115+
the activity back, changes it and builds it again, if it was made with the versions of H5P's
116+
libraries the build tool has. Otherwise the chat says so and offers to make the activity anew.
117+
</p>
112118
</section>
113119

114120
<section class="step" aria-labelledby="answer-heading">
115-
<h2 id="answer-heading"><span class="step-marker"><span class="step-number">3</span></span> Answer its questions</h2>
121+
<h2 id="answer-heading"><span class="step-marker"><span class="step-number">3</span></span> Answer its question</h2>
116122
<p>
117123
If the prompt names no type, the chat proposes one or two that fit your material, and you
118-
choose. Then it asks whose name and which licence go on the activity, which you may skip, and
119-
writes it.
124+
choose. It asks nothing else, and writes the activity. To put your name and a licence on it,
125+
say them in the prompt, such as "by Ann Lee, CC BY 4.0"; otherwise it carries the name the
126+
chat knows you by, or "Unknown", and an undisclosed licence.
120127
</p>
121128
</section>
122129

@@ -168,7 +175,7 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o
168175
<section aria-labelledby="prompts">
169176
<h2 id="prompts">Prompts to start from</h2>
170177
<p>
171-
Each names its type, so the chat asks only whose name and licence go on it. Change the subject
178+
Each names its type, so the chat asks nothing. Change the subject
172179
and the numbers to yours.
173180
</p>
174181

0 commit comments

Comments
 (0)