Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs-next/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.astro/
api/
dist/
node_modules/
src/content/data/supporters.json
13 changes: 12 additions & 1 deletion docs-next/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import { visit } from "unist-util-visit";
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc";

const base = "/next";

Expand Down Expand Up @@ -29,6 +30,15 @@ export default defineConfig({
dark: "./src/components/icon-dark.svg",
light: "./src/components/icon-light.svg",
},
plugins: [
starlightTypeDoc({
entryPoints: ["../lib/mocha.js"],
sidebar: {
collapsed: true,
},
tsconfig: "../tsconfig.json",
}),
],
sidebar: [
{ label: "Getting Started", slug: "getting-started" },
{
Expand Down Expand Up @@ -176,8 +186,9 @@ export default defineConfig({
],
label: "Explainers",
},
typeDocSidebarGroup,
{
label: "API",
label: "API (legacy)",
link: "https://mochajs.org/api",
},
],
Expand Down
190 changes: 190 additions & 0 deletions docs-next/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"needle": "^3.3.1",
"sharp": "^0.34.5",
"starlight-package-managers": "^0.11.1",
"starlight-typedoc": "^0.21.5",
"typescript": "^5.9.3",
"unist-util-visit": "^5.0.0"
}
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"compilerOptions": {
"allowJs": true,
"module": "Node16",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noEmit": true,
"resolveJsonModule": true,
"target": "ES2022",
"noEmit": true
"skipLibCheck": true,
"target": "ESNext"
},
"exclude": ["lib/browser"],
"include": ["lib"]
Expand Down
5 changes: 5 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": ["./lib/mocha.js", "./lib/cli/cli.js"],
"out": "docs-next/api"
}