Skip to content

Commit 9a9b23e

Browse files
committed
feat: Scramjet TypeDoc Mirror
1 parent 3475544 commit 9a9b23e

10 files changed

Lines changed: 5472 additions & 12 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ pnpm-debug.log*
1919

2020
# macOS-specific files
2121
.DS_Store
22+
23+
# Starlight-TypeDoc generated
24+
src/content/docs/api

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "typedoc-repos/scramjet"]
2+
path = typedoc-repos/scramjet
3+
url = https://github.com/MercuryWorkshop/scramjet.git

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This composes from advanced URL rewriting proxies, webOS projects, web-based emu
1010
Requirements are Node.js (v20+).
1111

1212
```
13-
git clone https://github.com/titaniumnetwork-dev/Oxide-Docs.git
13+
git clone https://github.com/titaniumnetwork-dev/Oxide-Docs.git --recursive
1414
cd Oxide-Docs
1515
npm i
1616

‎astro.config.mjs‎

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
// @ts-check
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
4+
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc";
45

56
// https://astro.build/config
67
export default defineConfig({
78
integrations: [
89
starlight({
910
title: "Titanium Network",
1011
favicon: "/favicon.png",
11-
social: {
12-
github: "https://github.com/titaniumnetwork-dev/Oxide-Docs",
13-
discord: "https://discord.gg/unblock",
14-
},
12+
social: [
13+
{
14+
icon: "github",
15+
label: "GitHub",
16+
href: "https://github.com/titaniumnetwork-dev/Oxide-Docs",
17+
},
18+
{
19+
icon: "discord",
20+
label: "Discord",
21+
href: "https://discord.gg/unblock",
22+
},
23+
],
24+
plugins: [
25+
starlightTypeDoc({
26+
entryPoints: ["./typedoc-repos/scramjet/src/entry.ts"],
27+
tsconfig: "./tsconfig-scramjet.json",
28+
sidebar: {
29+
label: "Scramjet API",
30+
},
31+
typeDoc: {
32+
skipErrorChecking: true,
33+
excludeNotDocumented: false,
34+
treatWarningsAsErrors: false,
35+
},
36+
})
37+
],
1538
sidebar: [
1639
{
1740
label: "Guides",
@@ -23,7 +46,11 @@ export default defineConfig({
2346
},
2447
{
2548
label: "Proxies",
26-
autogenerate: { directory: "proxies" },
49+
items: [
50+
"proxies/rammerhead",
51+
"proxies/ultraviolet",
52+
typeDocSidebarGroup,
53+
],
2754
},
2855
{
2956
label: "Technologies",
@@ -39,7 +66,6 @@ export default defineConfig({
3966
},
4067
],
4168
customCss: [
42-
// Relative path to your custom CSS file
4369
"./src/styles/custom.css",
4470
"@fontsource/raleway/400.css",
4571
"@fontsource/raleway/600.css",

‎package.json‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
},
1616
"dependencies": {
1717
"@astrojs/check": "^0.9.4",
18-
"@astrojs/starlight": "^0.29.0",
19-
"@fontsource/raleway": "^5.1.0",
20-
"astro": "^4.16.10",
21-
"sharp": "^0.32.5",
22-
"typescript": "^5.6.3"
18+
"@astrojs/starlight": "^0.35.2",
19+
"@fontsource/raleway": "^5.2.6",
20+
"astro": "^5.13.5",
21+
"sharp": "^0.32.6",
22+
"starlight-typedoc": "^0.21.3",
23+
"typedoc": "^0.28.11",
24+
"typescript": "^5.9.2"
2325
}
2426
}

0 commit comments

Comments
 (0)