From 204c02f21991a5d469a32a97d5979b63d6a0ae8a Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Mon, 21 Oct 2024 14:40:22 +0200 Subject: [PATCH] url fragment shortcuts --- script/gallery.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/script/gallery.ts b/script/gallery.ts index 6c562cd..9cab749 100644 --- a/script/gallery.ts +++ b/script/gallery.ts @@ -106,14 +106,18 @@ function makeFragment() { } } + type Shortcuts = { [short: string]: Set }; const shortcuts: Shortcuts = { - 'summary': new Set('require_artsummary'), - 'colourexamples': new Set('require_colourexample'), - 'flatexamples': new Set('require_flatexample'), - 'sketchexamples': new Set('require_sketchexample'), - 'iconexamples': new Set('require_iconexample'), - 'curated': new Set('require_curated') + summary: new Set(['require_artsummary']), + colourexamples: new Set(['require_colourexample']), + flatexamples: new Set(['require_flatexample']), + sketchexamples: new Set(['require_sketchexample']), + iconexamples: new Set(['require_iconexample']), + curated: new Set(['require_curated']), + gecs: new Set(['require_niss', 'require_nisse']), + qt: new Set(['require_q_t_']), + kesi: new Set(['require_kesi']), }; function useFragment() {