diff --git a/src/layouts/ApiLayout.astro b/src/layouts/ApiLayout.astro index 24adde1..7fff50a 100644 --- a/src/layouts/ApiLayout.astro +++ b/src/layouts/ApiLayout.astro @@ -18,7 +18,9 @@ export type Post = { type Posts = Array>; const basePath = "/api/std"; -const posts: Posts = await Astro.glob("../pages/api/std/**/*.{md,mdx}"); +const posts: Posts = await Astro.glob( + "../pages/en/latest/api/std/**/*.{md,mdx}", +); export type Hierarchy = { posts: Array; diff --git a/src/pages/en/latest/api/std/Array.mdx b/src/pages/en/latest/api/std/Array.mdx index e55a9f3..e73bf8b 100644 --- a/src/pages/en/latest/api/std/Array.mdx +++ b/src/pages/en/latest/api/std/Array.mdx @@ -1,11 +1,11 @@ --- -layout: ../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import TwoColumn from "../../../components/TwoColumn.astro"; -import Code from "../../../components/Code.astro"; -import CodeMin from "../../../components/docs/CodeMin.astro"; -import Warning from "../../../components/docs/Warning.astro"; +import TwoColumn from "@/components/TwoColumn.astro"; +import Code from "@/components/Code.astro"; +import CodeMin from "@/components/docs/CodeMin.astro"; +import Warning from "@/components/docs/Warning.astro"; # Array diff --git a/src/pages/en/latest/api/std/Array/concat.mdx b/src/pages/en/latest/api/std/Array/concat.mdx index 799e590..882c944 100644 --- a/src/pages/en/latest/api/std/Array/concat.mdx +++ b/src/pages/en/latest/api/std/Array/concat.mdx @@ -1,8 +1,8 @@ --- -layout: ../../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import Code from "../../../../components/Code.astro"; +import Code from "@/components/Code.astro"; # `Array.concat` diff --git a/src/pages/en/latest/api/std/Array/fold.mdx b/src/pages/en/latest/api/std/Array/fold.mdx index 72c900c..5f6b461 100644 --- a/src/pages/en/latest/api/std/Array/fold.mdx +++ b/src/pages/en/latest/api/std/Array/fold.mdx @@ -1,8 +1,8 @@ --- -layout: ../../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import Code from "../../../../components/Code.astro"; +import Code from "@/components/Code.astro"; # `Array.fold` diff --git a/src/pages/en/latest/api/std/Array/map.mdx b/src/pages/en/latest/api/std/Array/map.mdx index 7af3023..21c5608 100644 --- a/src/pages/en/latest/api/std/Array/map.mdx +++ b/src/pages/en/latest/api/std/Array/map.mdx @@ -1,8 +1,8 @@ --- -layout: ../../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import Code from "../../../../components/Code.astro"; +import Code from "@/components/Code.astro"; # `Array.map` diff --git a/src/pages/en/latest/api/std/index.mdx b/src/pages/en/latest/api/std/index.mdx index d820e85..cfbedff 100644 --- a/src/pages/en/latest/api/std/index.mdx +++ b/src/pages/en/latest/api/std/index.mdx @@ -1,9 +1,9 @@ --- -layout: ../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import TwoColumn from "../../../components/TwoColumn.astro"; -import Code from "../../../components/Code.astro"; +import TwoColumn from "@/components/TwoColumn.astro"; +import Code from "@/components/Code.astro"; # module `std` diff --git a/src/pages/en/latest/api/std/print.mdx b/src/pages/en/latest/api/std/print.mdx index c1fecfc..6830fbb 100644 --- a/src/pages/en/latest/api/std/print.mdx +++ b/src/pages/en/latest/api/std/print.mdx @@ -1,9 +1,9 @@ --- -layout: ../../../layouts/ApiLayout.astro +layout: "@/layouts/ApiLayout.astro" --- -import TwoColumn from "../../../components/TwoColumn.astro"; -import Code from "../../../components/Code.astro"; +import TwoColumn from "@/components/TwoColumn.astro"; +import Code from "@/components/Code.astro"; # `print`