From 685313d23d1a8a585402039bdd94aeb4ac5b26b9 Mon Sep 17 00:00:00 2001 From: tree Date: Thu, 28 Apr 2022 23:43:28 +0200 Subject: [PATCH] Update faqs --- Makefile | 3 +++ spec/22/faqs.yaml | 2 +- utils/speakers-list.js | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 utils/speakers-list.js diff --git a/Makefile b/Makefile index cd84326..64906cc 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ build: docs-update: deno run --unstable --allow-read --allow-write utils/update-docs.js +speakers-list: + deno run --unstable --allow-read utils/speakers-list.js + speakers-table: deno run --unstable --allow-read utils/update-docs.js speakersTableGen diff --git a/spec/22/faqs.yaml b/spec/22/faqs.yaml index 583e503..133ac0d 100644 --- a/spec/22/faqs.yaml +++ b/spec/22/faqs.yaml @@ -1,6 +1,6 @@ - question: Jak získám vstupenku? answer: | - První vlna vstupenek bude k dispozici **od středy 13. dubna 13:00 za 500 Kč**. Druhá vlna od 27. dubna 13:00 za 650 Kč a třetí vlna od 11. května za 750 Kč. + První vlna vstupenek bude k dispozici od středy 13. dubna 13:00 za 500 Kč. Druhá vlna **od 27. dubna 13:00 za 650 Kč** a třetí vlna od 11. května za 750 Kč. - question: Pro koho je konference určena? answer: | diff --git a/utils/speakers-list.js b/utils/speakers-list.js new file mode 100644 index 0000000..4146376 --- /dev/null +++ b/utils/speakers-list.js @@ -0,0 +1,12 @@ +import { UTXOEngine } from "./engine.js"; + +const utxo = new UTXOEngine({ silent: true }); +await utxo.init(); +const specs = utxo.entries["22"].specs; + +for (const sp of specs.speakers) { + if (sp.lead) { + continue; + } + console.log(sp.name + (sp.nickname ? ` (${sp.nickname})` : "")); +}