From 36866011432e069c524d52ea5ddfa592eb4ed8fa Mon Sep 17 00:00:00 2001 From: Valia Fetisov Date: Mon, 17 Apr 2023 10:40:53 +0200 Subject: [PATCH 1/7] fix full width --- frontend/pages/documentation.vue | 2 +- frontend/pages/user/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/documentation.vue b/frontend/pages/documentation.vue index 4920a8bd..2d55cf2c 100644 --- a/frontend/pages/documentation.vue +++ b/frontend/pages/documentation.vue @@ -14,7 +14,7 @@ const tocLinks = computed(() => blogPost.value?.body.toc.links ?? []) -
+
diff --git a/frontend/pages/user/index.vue b/frontend/pages/user/index.vue index 672ffbad..a1fa06f8 100644 --- a/frontend/pages/user/index.vue +++ b/frontend/pages/user/index.vue @@ -12,7 +12,7 @@
- Existing tokens3 + Existing tokens
Date: Mon, 17 Apr 2023 11:14:23 +0200 Subject: [PATCH 2/7] highlight curerntly active id in the sidebar --- frontend/components/doc/TableOfContents.vue | 15 ++++++++-- frontend/pages/documentation.vue | 32 ++++++++++++++++++--- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/frontend/components/doc/TableOfContents.vue b/frontend/components/doc/TableOfContents.vue index a490f2a9..43d93d2b 100644 --- a/frontend/components/doc/TableOfContents.vue +++ b/frontend/components/doc/TableOfContents.vue @@ -5,6 +5,7 @@ const props = defineProps<{ text: string; children: { id: string; text: string }[]; }> | null; + currentlyActiveId: string | null; }>() defineEmits<{(e: 'scrollToId', id: string): void }>() @@ -20,7 +21,12 @@ defineEmits<{(e: 'scrollToId', id: string): void }>() class="text-sm list-none" > diff --git a/frontend/pages/documentation.vue b/frontend/pages/documentation.vue index 2d55cf2c..698e04e5 100644 --- a/frontend/pages/documentation.vue +++ b/frontend/pages/documentation.vue @@ -1,18 +1,42 @@ +