Commit 304ac1badc

304ac1badc50b687f166ff3d2fe6538bc536dd76

parent: 7090bc8698

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-05-24 09:30 UTC

Odyssey

Layout: unified · split

docs/.vitepress/theme/components/Collapsible.vue +2 −31
@@ -1,19 +1,11 @@
11<script setup lang="ts">
2import { computed, ref } from 'vue'
2import { ref } from 'vue'
33
44const props = defineProps<{
55 title?: string
66}>()
77
88const open = ref(false)
9
10const slug = computed(() => {
11 const text = props.title || 'Details'
12 return text
13 .toLowerCase()
14 .replace(/\s+/g, '-')
15 .replace(/[^\w-]/g, '')
16})
179</script>
1810
1911<template>
@@ -21,10 +13,7 @@ const slug = computed(() => {
2113 <summary>
2214 <span v-if="open" class="i-iconoir-nav-arrow-down collapsible-icon" />
2315 <span v-else class="i-iconoir-nav-arrow-right collapsible-icon" />
24 <h3 :id="slug" class="collapsible-title">
25 <a :href="`#${slug}`" class="header-anchor" aria-hidden="true"></a>
26 {{ title || 'Details' }}
27 </h3>
16 {{ title || 'Details' }}
2817 </summary>
2918 <slot />
3019 </details>
@@ -48,22 +37,4 @@ summary::-webkit-details-marker {
4837 height: 1em;
4938 flex-shrink: 0;
5039}
51
52.collapsible-title {
53 margin: 0;
54 padding: 0;
55 font-size: inherit;
56 font-weight: inherit;
57 line-height: inherit;
58 color: inherit;
59 letter-spacing: inherit;
60 border: none;
61 text-decoration: none;
62 display: inline;
63}
64
65/* Hide the anchor icon VitePress would normally show on hover */
66.collapsible-title .header-anchor {
67 display: none;
68}
6940</style>
\ No newline at end of file
docs/websites.md +1 −1
@@ -79,7 +79,7 @@ outline: 1
7979
8080<Collapsible title="Misc">
8181
82### Misc
82<h3 style="display:none" id="more">More</h3>
8383
8484| Category | Websites |
8585| :--- | :--- |