gh pages deployment

This commit is contained in:
2023-07-05 16:06:36 +02:00
parent 9c875748f7
commit 1f99835a4e
2 changed files with 14 additions and 8 deletions

View File

@@ -1,18 +1,19 @@
<script> <script>
import {serialPort} from "$lib/serial/connection.js" import {serialPort} from "$lib/serial/connection.js"
import {browser} from "$app/environment" import {browser} from "$app/environment"
import {base} from "$app/paths"
</script> </script>
<nav> <nav>
<h1>dot i/o</h1> <h1>dot i/o</h1>
<div class="steps"> <div class="steps">
<a href="/" title="CPM - characters per minute" class="icon train cpm">music_note</a> <a href={base} title="CPM - characters per minute" class="icon train cpm">music_note</a>
<a href="/" title="ChM - chords mastered" class="icon train chords">piano</a> <a href={base} title="ChM - chords mastered" class="icon train chords">piano</a>
<a href="/" title="aWPM - average words per minute" class="icon test avg">avg_pace</a> <a href={base} title="aWPM - average words per minute" class="icon test avg">avg_pace</a>
<a href="/" title="StM - sentences mastered" class="icon train sentences">lyrics</a> <a href={base} title="StM - sentences mastered" class="icon train sentences">lyrics</a>
<a href="/" title="tWPM - top words per minute" class="icon test top">speed</a> <a href={base} title="tWPM - top words per minute" class="icon test top">speed</a>
<a href="/" title="CM - concepts mastered" class="icon train concepts">cognition</a> <a href={base} title="CM - concepts mastered" class="icon train concepts">cognition</a>
</div> </div>
<div class="actions"> <div class="actions">
@@ -25,12 +26,12 @@
</abbr> </abbr>
{/if} {/if}
<a <a
href="/device-manager" href="{base}/device-manager"
title="Device Manager" title="Device Manager"
class="icon connect" class="icon connect"
class:error={$serialPort === undefined}>cable</a class:error={$serialPort === undefined}>cable</a
> >
<a href="/" title="Statistics" class="icon account">person</a> <a href={base} title="Statistics" class="icon account">person</a>
</div> </div>
</nav> </nav>

View File

@@ -1,10 +1,15 @@
import adapter from "@sveltejs/adapter-static" import adapter from "@sveltejs/adapter-static"
import preprocess from "svelte-preprocess" import preprocess from "svelte-preprocess"
const dev = process.argv.includes("dev")
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
preprocess: [preprocess()], preprocess: [preprocess()],
kit: { kit: {
paths: {
base: dev ? "" : "/dotio",
},
adapter: adapter(), adapter: adapter(),
}, },
} }