2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

Refactor docs to use Nuxt Content v3 and file-based pages

Migrates documentation from markdown-based content to Nuxt Content v3 with file-based routing. Removes old markdown content files, adds new Vue page components, updates layout and content rendering logic, introduces a Prose wrapper, and updates dependencies for Nuxt Content v3 and related packages.
This commit is contained in:
Jeff Sagal
2025-11-13 11:56:09 -08:00
parent 06d9a373f2
commit 7644929efe
23 changed files with 669 additions and 442 deletions
+5 -4
View File
@@ -1,13 +1,14 @@
<script setup lang="ts">
import { computed, useContent } from '#imports'
import type { MarkdownRoot } from '@nuxt/content'
const { toc, page } = useContent()
const shouldRender = computed(() => page.value?.hideToc !== true)
defineProps<{
toc?: MarkdownRoot['toc']
}>()
</script>
<template>
<div
v-if="shouldRender && toc.links"
v-if="toc"
class="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6"
>
<nav aria-labelledby="on-this-page-title" class="w-56">