From 0d2695e7ab6f2a49b99a24124867ec286c69a64c Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Tue, 20 Jan 2026 17:37:56 -0500 Subject: [PATCH 1/4] wip --- app/app.config.ts | 2 +- app/pages/[...slug].vue | 7 +- content/guides/10.ai/0.index.md | 30 +++++ content/guides/10.ai/1.chat/0.index.md | 27 ++++- content/guides/10.ai/1.chat/1.setup.md | 161 +++++++++++++++++++++++-- content/guides/10.ai/1.chat/2.usage.md | 4 +- 6 files changed, 214 insertions(+), 17 deletions(-) create mode 100644 content/guides/10.ai/0.index.md diff --git a/app/app.config.ts b/app/app.config.ts index 8d22089f..5998593d 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -89,7 +89,7 @@ export default defineAppConfig({ }, { label: 'AI', - to: '/guides/ai/mcp', + to: '/guides/ai/', icon: 'directus-ai', }, { diff --git a/app/pages/[...slug].vue b/app/pages/[...slug].vue index 6589bc4a..69f83c10 100644 --- a/app/pages/[...slug].vue +++ b/app/pages/[...slug].vue @@ -31,12 +31,15 @@ const showComingSoonBadge = computed(() => { return false; }); -const { data: surround } = await useAsyncData(`${route.path}-surround`, () => queryCollectionItemSurroundings('content', +const { data: surroundRaw } = await useAsyncData(`${route.path}-surround`, () => queryCollectionItemSurroundings('content', route.path, { - fields: ['title', 'description', 'navigation', 'path'], + fields: ['title', 'description', 'path'], }, )); + +// Filter out .navigation.yml files from surround results -- not sure why Nuxt Content is including them +const surround = computed(() => surroundRaw.value?.filter(item => !item?.path?.endsWith('.navigation')) ?? []);