feat: move api docs to versioned path
This commit is contained in:
parent
2b532080d8
commit
1465ec23be
@ -18,7 +18,9 @@ export type Post = {
|
|||||||
type Posts = Array<Readonly<Post>>;
|
type Posts = Array<Readonly<Post>>;
|
||||||
|
|
||||||
const basePath = "/api/std";
|
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 = {
|
export type Hierarchy = {
|
||||||
posts: Array<Post>;
|
posts: Array<Post>;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
layout: ../../../layouts/ApiLayout.astro
|
layout: "@/layouts/ApiLayout.astro"
|
||||||
---
|
---
|
||||||
|
|
||||||
import TwoColumn from "../../../components/TwoColumn.astro";
|
import TwoColumn from "@/components/TwoColumn.astro";
|
||||||
import Code from "../../../components/Code.astro";
|
import Code from "@/components/Code.astro";
|
||||||
import CodeMin from "../../../components/docs/CodeMin.astro";
|
import CodeMin from "@/components/docs/CodeMin.astro";
|
||||||
import Warning from "../../../components/docs/Warning.astro";
|
import Warning from "@/components/docs/Warning.astro";
|
||||||
|
|
||||||
# Array
|
# Array
|
||||||
|
|
||||||
|
@ -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`
|
# `Array.concat`
|
||||||
|
|
||||||
|
@ -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`
|
# `Array.fold`
|
||||||
|
|
||||||
|
@ -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`
|
# `Array.map`
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
layout: ../../../layouts/ApiLayout.astro
|
layout: "@/layouts/ApiLayout.astro"
|
||||||
---
|
---
|
||||||
|
|
||||||
import TwoColumn from "../../../components/TwoColumn.astro";
|
import TwoColumn from "@/components/TwoColumn.astro";
|
||||||
import Code from "../../../components/Code.astro";
|
import Code from "@/components/Code.astro";
|
||||||
|
|
||||||
# module `std`
|
# module `std`
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
layout: ../../../layouts/ApiLayout.astro
|
layout: "@/layouts/ApiLayout.astro"
|
||||||
---
|
---
|
||||||
|
|
||||||
import TwoColumn from "../../../components/TwoColumn.astro";
|
import TwoColumn from "@/components/TwoColumn.astro";
|
||||||
import Code from "../../../components/Code.astro";
|
import Code from "@/components/Code.astro";
|
||||||
|
|
||||||
# `print`
|
# `print`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user