Skip to content

Commit 7490d2b

Browse files
committed
Rewrite to be schema explorer
1 parent 9a13b9a commit 7490d2b

80 files changed

Lines changed: 3550 additions & 5253 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v6
29+
with:
30+
node-version: current
31+
cache: npm
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v4
41+
with:
42+
path: dist
43+
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
/node_modules/
2+
/dist/

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Source 2 Schema Explorer
2+
3+
A schema explorer for Source 2 engine games (Counter-Strike 2, Dota 2, Deadlock). Browse classes, enums, fields, and their metadata across game schema modules.
4+
5+
Based on [ModDota API explorer](https://github.com/ModDota/moddota.github.io/tree/source/api).
6+
7+
## Schema Data
8+
9+
The app expects gzipped JSON schema files in the `schemas/` directory, one per game:
10+
11+
- `cs2.json.gz`
12+
- `dota2.json.gz`
13+
- `deadlock.json.gz`
14+
15+
The schemas are generated by [DumpSource2](https://github.com/ValveResourceFormat/DumpSource2) and automatically updated by [GameTracking](https://github.com/SteamTracking/GameTracking).
16+
17+
## Development
18+
19+
```bash
20+
npm install
21+
npm run dev
22+
```
23+
24+
## License
25+
26+
[Apache-2.0](LICENSE)

eslint.config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

index.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
6-
<title>API | ModDota</title>
7-
8-
<link rel="manifest" href="manifest.webmanifest" />
9-
10-
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png" />
11-
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png" />
12-
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" />
13-
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#5bbad5" />
14-
<link rel="shortcut icon" href="images/favicon.ico" />
15-
<link rel="icon" href="images/logo.svg" />
16-
<meta name="theme-color" content="#ffffff" />
6+
<title>Source 2 Schema Explorer</title>
7+
<meta name="description" content="Browse and explore Valve Source 2 engine schemas, classes, enums, and types for Counter-Strike 2, Dota 2, and Deadlock." />
8+
<meta property="og:title" content="Source 2 Schema Explorer" />
9+
<meta property="og:description" content="Browse and explore Valve Source 2 engine schemas, classes, enums, and types for Counter-Strike 2, Dota 2, and Deadlock." />
10+
<meta property="og:type" content="website" />
1711
</head>
1812

1913
<body>

0 commit comments

Comments
 (0)