From 7f1b6c06b6ccec7f61adb8d20d32731da67f644f Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Mon, 12 Sep 2022 21:55:16 +0200
Subject: add toc sidebar to docs site

---
 .../src/lib/components/docs/TocEntry.svelte         | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 web/pw-server/src/lib/components/docs/TocEntry.svelte

(limited to 'web/pw-server/src/lib/components/docs/TocEntry.svelte')

diff --git a/web/pw-server/src/lib/components/docs/TocEntry.svelte b/web/pw-server/src/lib/components/docs/TocEntry.svelte
new file mode 100644
index 0000000..b28e7fd
--- /dev/null
+++ b/web/pw-server/src/lib/components/docs/TocEntry.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+  export let href: string;
+  export let text: string;
+</script>
+
+<div class="toc-entry">
+  <a {href}>{text}</a>
+</div>
+
+<style scoped lang="scss">
+  @use "src/styles/variables";
+
+  .toc-entry {
+    font-size: 16px;
+    padding: 4px;
+  }
+
+  .toc-entry a {
+    color: variables.$blue-primary;
+  }
+</style>
-- 
cgit v1.2.3

