From 3de8d431e5825fa879c2d7a359e783c30f17a280 Mon Sep 17 00:00:00 2001 From: x42en <0x42en@gmail.com> Date: Sat, 11 Apr 2026 13:13:17 +0200 Subject: [PATCH] fix(doc): New deploy try --- docs-site/app/pages/index.vue | 27 --------------------------- docs-site/content.config.ts | 34 ---------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 docs-site/app/pages/index.vue delete mode 100644 docs-site/content.config.ts diff --git a/docs-site/app/pages/index.vue b/docs-site/app/pages/index.vue deleted file mode 100644 index 13b98e5..0000000 --- a/docs-site/app/pages/index.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/docs-site/content.config.ts b/docs-site/content.config.ts deleted file mode 100644 index 315d279..0000000 --- a/docs-site/content.config.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { defineContentConfig, defineCollection } from '@nuxt/content' -import { resolve } from 'path' - -/** - * Local content configuration for uPKI-CA docs. - * - * We only declare the `landing` collection here (content/index.md). - * The `docs` collection (content/docs/**) is handled by the Docus layer. - * - * After Docus PR #1274 (Feb 16 2026), the Docus layer no longer defines the - * `landing` collection when app/pages/index.vue exists in the user project. - * We must define it here with an explicit `cwd` so that @nuxt/content resolves - * index.md from THIS project's content/ directory. - * - * We use `resolve(process.cwd(), 'content')` rather than useNuxt() because - * this file is evaluated by c12/jiti in the same Node.js process as `nuxt build`, - * making process.cwd() a guaranteed, zero-import way to get the project root. - * Importing @nuxt/kit inside jiti can fail silently (c12 catches evaluation - * errors and falls back to defaultConfig: { collections: {} }), which would - * leave the landing collection empty and cause a 404 on the landing page. - */ -const contentDir = resolve(process.cwd(), 'content') - -export default defineContentConfig({ - collections: { - landing: defineCollection({ - type: 'page', - source: { - cwd: contentDir, - include: 'index.md', - }, - }), - }, -})