From c4d91d45b92bedfe329e39a65eacfc9691b659e7 Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 12 Apr 2026 15:00:20 +0900 Subject: [PATCH 1/4] fix: base path --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2eb5e7e..d6f5fd0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,8 +11,6 @@ permissions: concurrency: group: "pages" cancel-in-progress: true -env: - BASE_PATH: /${{ github.event.repository.name }} jobs: build-and-commit: From cbb81aaf060cbf0ef55f42c99c3be209582fea74 Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 12 Apr 2026 15:48:17 +0900 Subject: [PATCH 2/4] fix: modlist page --- content/docs/modlist.mdx | 6 +++++- next.config.mjs | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/content/docs/modlist.mdx b/content/docs/modlist.mdx index dddca80..6393a3a 100644 --- a/content/docs/modlist.mdx +++ b/content/docs/modlist.mdx @@ -3,4 +3,8 @@ title: モジュール一覧 description: 現在掲載されているモジュールの一覧です。 --- -- [std::vec](./vec/about.md) +import { source } from "@/lib/source"; + +{source.getPages().filter((page) => /^.*\/.*\/about$/.test(page.url)).map((page) => ( +
  • {page.data.title}
  • +))} diff --git a/next.config.mjs b/next.config.mjs index be206b0..73310c8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,7 +7,6 @@ const withMDX = createMDX(); const config = { serverExternalPackages: ["typescript", "twoslash"], output: "export", - assetPrefix: "./", trailingSlash: true, reactStrictMode: true, basePath, From 1978dfa9c9938502e384a84731206d17a0b03732 Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 12 Apr 2026 15:55:00 +0900 Subject: [PATCH 3/4] fix: base path --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4e6d854..be8b529 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -14,7 +14,7 @@ concurrency: env: PAGE_DIR: pr-preview-${{ github.event.pull_request.number }} - BASE_PATH: /${{ github.event.repository.name }}/preview/pr-preview-${{ github.event.pull_request.number }} + BASE_PATH: /preview/pr-preview-${{ github.event.pull_request.number }} jobs: build-and-commit: From 47ba2caddc4a3219dcd339eca39c8dfd95f769bf Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 12 Apr 2026 15:59:08 +0900 Subject: [PATCH 4/4] fix: url --- content/docs/modlist.mdx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/content/docs/modlist.mdx b/content/docs/modlist.mdx index 6393a3a..7fa6f2c 100644 --- a/content/docs/modlist.mdx +++ b/content/docs/modlist.mdx @@ -5,6 +5,10 @@ description: 現在掲載されているモジュールの一覧です。 import { source } from "@/lib/source"; -{source.getPages().filter((page) => /^.*\/.*\/about$/.test(page.url)).map((page) => ( -
  • {page.data.title}
  • -))} +{source.getPages().filter((page) => /^.*\/.*\/about$/.test(page.url)).map((page) => { + const basePath = process.env.BASE_PATH; + const url = `${basePath ?? ""}${page.url}`; + return ( +
  • {page.data.title}
  • + ) +})}