From 1b78f0568ed2d52ba7d135f61be2bb546eed56bc Mon Sep 17 00:00:00 2001 From: tree Date: Sat, 1 Jan 2022 10:36:10 +0100 Subject: [PATCH] Add /22 prefix --- .github/workflows/{spec-deploy.yml => deploy.yml} | 0 index.json | 6 ++++++ spec/index.yaml | 7 ++++--- utils/build.js | 4 +++- 4 files changed, 13 insertions(+), 4 deletions(-) rename .github/workflows/{spec-deploy.yml => deploy.yml} (100%) create mode 100644 index.json diff --git a/.github/workflows/spec-deploy.yml b/.github/workflows/deploy.yml similarity index 100% rename from .github/workflows/spec-deploy.yml rename to .github/workflows/deploy.yml diff --git a/index.json b/index.json new file mode 100644 index 0000000..ce70760 --- /dev/null +++ b/index.json @@ -0,0 +1,6 @@ +[ + { + "id": "utxo22", + "url": "https://spec.utxo.cz/22" + } +] diff --git a/spec/index.yaml b/spec/index.yaml index 5a3baf3..db293c7 100644 --- a/spec/index.yaml +++ b/spec/index.yaml @@ -12,6 +12,7 @@ links: telegram: https://t.me/utxocz discord: https://discord.gg/5k9dEtVhnv api: - speakers: https://spec.utxo.cz/speakers.json - tracks: https://spec.utxo.cz/tracks.json - events: https://spec.utxo.cz/events.json + index: https://spec.utxo.cz/22/index.json + speakers: https://spec.utxo.cz/22/speakers.json + tracks: https://spec.utxo.cz/22/tracks.json + events: https://spec.utxo.cz/22/events.json diff --git a/utils/build.js b/utils/build.js index e33c7fb..752f9f8 100644 --- a/utils/build.js +++ b/utils/build.js @@ -3,7 +3,8 @@ import { copy } from "https://deno.land/std@0.119.0/fs/copy.ts"; import { load } from 'https://deno.land/x/js_yaml_port/js-yaml.js' const srcDir = './spec' -const outputDir = './dist' +const outputDirBase = './dist' +const outputDir = outputDirBase + '/22' await ensureDir(outputDir) @@ -20,5 +21,6 @@ for await (const f of Deno.readDir(srcDir)) { console.log('Copying photos..') copy(srcDir + '/photos', outputDir + '/photos', { overwrite: true }) +copy('./index.json', outputDirBase + '/index.json', { overwrite: true }) console.log('done')