aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/docs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-12 21:55:16 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-12 21:55:16 +0200
commit7f1b6c06b6ccec7f61adb8d20d32731da67f644f (patch)
tree48d37bf7e8e55dc75b70af6cf92e28ae11de5aed /web/pw-server/src/lib/components/docs
parent66162ea43c40ad4f404a9e1b936fbb157e876b97 (diff)
downloadplanetwars.dev-7f1b6c06b6ccec7f61adb8d20d32731da67f644f.tar.xz
planetwars.dev-7f1b6c06b6ccec7f61adb8d20d32731da67f644f.zip
add toc sidebar to docs site
Diffstat (limited to 'web/pw-server/src/lib/components/docs')
-rw-r--r--web/pw-server/src/lib/components/docs/TocEntry.svelte21
1 files changed, 21 insertions, 0 deletions
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>