From f33f1e80be3113e120374acb9244c76568d28c99 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Sat, 8 Aug 2026 08:28:05 +0300 Subject: [PATCH] fix(docs): point "Edit this page" at apps/docs via github.rootDir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The layer builds the edit href as `{url}/edit/{branch}/{rootDir}/content/{stem}.{extension}` and drops the segment when `rootDir` is unset, so every "Edit this page" link resolved to `/edit/main/content/...` and 404'd — the content lives at `apps/docs/content/`. Relates to UXF-169. --- apps/docs/app/app.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/docs/app/app.config.ts b/apps/docs/app/app.config.ts index a5b60215..b330ab8b 100644 --- a/apps/docs/app/app.config.ts +++ b/apps/docs/app/app.config.ts @@ -67,6 +67,12 @@ export default defineAppConfig({ github: { url: "https://github.com/styleframe-dev/styleframe", branch: "main", + // Path from the repository root to this Nuxt app. The layer builds the + // "Edit this page" href as + // `{url}/edit/{branch}/{rootDir}/content/{stem}.{extension}`; with + // `rootDir` unset the segment is dropped and every link 404s, because the + // content lives at `apps/docs/content/`, not `content/`. + rootDir: "apps/docs", }, footer: { credits: `Copyright © ${new Date().getFullYear()} styleframe`,