From b9d1aef4fad0bf4bb4c1f66376f7cea133f5bd8e Mon Sep 17 00:00:00 2001 From: Mistry Date: Wed, 13 Mar 2024 16:07:41 -0400 Subject: [PATCH] Horizontal table of contents implementation --- src/components/story/horizontal-menu.vue | 191 +++++++++++++++++++++++ src/components/story/introduction.vue | 1 - src/components/story/story-content.vue | 29 +++- src/components/story/story.vue | 13 +- src/definitions.ts | 1 + 5 files changed, 228 insertions(+), 7 deletions(-) create mode 100644 src/components/story/horizontal-menu.vue diff --git a/src/components/story/horizontal-menu.vue b/src/components/story/horizontal-menu.vue new file mode 100644 index 0000000..df28e28 --- /dev/null +++ b/src/components/story/horizontal-menu.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/src/components/story/introduction.vue b/src/components/story/introduction.vue index bbdac9c..1035f6b 100644 --- a/src/components/story/introduction.vue +++ b/src/components/story/introduction.vue @@ -96,7 +96,6 @@ onMounted(() => { // obtain logo from ZIP file if it exists if (props.configFileStructure) { const logo = props.config.logo?.src; - if (logo) { const logoSrc = `${logo.substring(logo.indexOf('/') + 1)}`; const logoFile = props.configFileStructure.zip.file(logoSrc); diff --git a/src/components/story/story-content.vue b/src/components/story/story-content.vue index 600a257..94c1d53 100644 --- a/src/components/story/story-content.vue +++ b/src/components/story/story-content.vue @@ -1,12 +1,23 @@