From 9d4907aa255080979694e79717caa905348271e5 Mon Sep 17 00:00:00 2001 From: Endeavorance Date: Sat, 8 Mar 2025 10:14:49 -0500 Subject: [PATCH] Support for glossaries --- bun.lock | 4 ++-- extend-me/terms.yaml | 6 ++++++ package.json | 2 +- src/binding.ts | 4 ++++ 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 extend-me/terms.yaml diff --git a/bun.lock b/bun.lock index 52b808b..ee1e8fd 100644 --- a/bun.lock +++ b/bun.lock @@ -4,7 +4,7 @@ "": { "name": "@proscenium/muse", "dependencies": { - "@proscenium/playbill": "0.0.11", + "@proscenium/playbill": "0.0.14", "chalk": "^5.4.1", "yaml": "^2.7.0", "zod": "^3.24.1", @@ -37,7 +37,7 @@ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="], - "@proscenium/playbill": ["@proscenium/playbill@0.0.11", "https://git.astral.camp/api/packages/proscenium/npm/%40proscenium%2Fplaybill/-/0.0.11/playbill-0.0.11.tgz", { "peerDependencies": { "typescript": "^5" } }, "sha512-pYq8kUvZSqFM9FSZ1DrifTOGR3ahQuCWG/3KkNWmbQHhEh8M+XHLVuQ+g4UwwaKN8U+HMcayXUOB1VFqBqKFXQ=="], + "@proscenium/playbill": ["@proscenium/playbill@0.0.14", "https://git.astral.camp/api/packages/proscenium/npm/%40proscenium%2Fplaybill/-/0.0.14/playbill-0.0.14.tgz", { "peerDependencies": { "typescript": "^5" } }, "sha512-Fbo7IHTeRBDLwh6olETphh2duhMRrUx7dclFGT3VRhbCeCIqp+64N93M3fWlvOUrEyIU75WgpxkOz7FzfecAzg=="], "@types/bun": ["@types/bun@1.2.3", "", { "dependencies": { "bun-types": "1.2.3" } }, "sha512-054h79ipETRfjtsCW9qJK8Ipof67Pw9bodFWmkfkaUaRiIQ1dIV2VTlheshlBx3mpKr0KeK8VqnMMCtgN9rQtw=="], diff --git a/extend-me/terms.yaml b/extend-me/terms.yaml new file mode 100644 index 0000000..743ab95 --- /dev/null +++ b/extend-me/terms.yaml @@ -0,0 +1,6 @@ +$define: glossary +id: glossussy +name: Definitions +terms: + something: Here is a definition + "Something else": here is another diff --git a/package.json b/package.json index 4dc4d6c..baa4e1e 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "chalk": "^5.4.1", "yaml": "^2.7.0", "zod": "^3.24.1", - "@proscenium/playbill": "0.0.11" + "@proscenium/playbill": "0.0.14" }, "scripts": { "fmt": "bunx --bun biome check --fix", diff --git a/src/binding.ts b/src/binding.ts index cd02d92..2a2e8db 100644 --- a/src/binding.ts +++ b/src/binding.ts @@ -120,6 +120,10 @@ export async function loadFromBinding( break; case "guide": playbill.guides.push(resource); + break; + case "glossary": + playbill.glossaries.push(resource); + break; } }