diff --git a/src/docs/src/components/ComponentFooter.svelte b/src/docs/src/components/ComponentFooter.svelte index bc5c3596698..f68ffb2c84f 100644 --- a/src/docs/src/components/ComponentFooter.svelte +++ b/src/docs/src/components/ComponentFooter.svelte @@ -9,11 +9,9 @@ let arrayOfPagesInOrder = [] pages.map((items) => { - if (items.name != "excluded") { - items.items.forEach((item) => { - arrayOfPagesInOrder.push(item) - }) - } + items.items.forEach((item) => { + arrayOfPagesInOrder.push(item) + }) }) $: currentPageIndex = arrayOfPagesInOrder.findIndex((item) => item.href == $page.url.pathname.replace(/\/$/, "")) diff --git a/src/docs/src/components/Sidebar.svelte b/src/docs/src/components/Sidebar.svelte index b207378fd50..eefb10dd8cb 100644 --- a/src/docs/src/components/Sidebar.svelte +++ b/src/docs/src/components/Sidebar.svelte @@ -43,22 +43,24 @@ {/if} {#if name != "excluded"} - {#each items as { name, href, icon, badge }} -
  • - - {#if icon != ""} - - {@html icon} + {#each items as { name, href, icon, badge, hidden, highlightAnotherItem }} + {#if !hidden} +
  • + + {#if icon != ""} + + {@html icon} + + {/if} + + {@html $t(name)} - {/if} - - {@html $t(name)} - - {#if badge != ""} - {$t(badge)} - {/if} - -
  • + {#if badge != ""} + {$t(badge)} + {/if} + + + {/if} {/each} {/if} diff --git a/src/docs/src/lib/data.js b/src/docs/src/lib/data.js index c1918ece107..f26d9808734 100644 --- a/src/docs/src/lib/data.js +++ b/src/docs/src/lib/data.js @@ -188,10 +188,19 @@ export let pages = [ items: [ { name: "Install", - tags: "how setup install npm cdn", + tags: "how setup install npm", href: "/docs/install", icon: '', badge: "", + highlightAnotherItem: "/docs/cdn", + }, + { + name: "CDN", + tags: "how cdn", + href: "/docs/cdn", + icon: "", + badge: "", + hidden: true, }, { name: "Use",