Skip to content

Commit 9d7b3b8

Browse files
committed
Add homepage
1 parent af7902b commit 9d7b3b8

4 files changed

Lines changed: 61 additions & 19 deletions

File tree

.vitepress/config.mts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ import { defineConfig } from "vitepress";
22

33
export default defineConfig({
44
title: "ModDota",
5+
description: "Community-driven Dota 2 modding resource",
6+
lang: "en-US",
57
head: [["link", { rel: "icon", href: "/images/favicon.ico" }]],
68
srcDir: "_articles",
79
outDir: "build",
810
cleanUrls: true,
911
ignoreDeadLinks: [/\.fbx$/],
1012

13+
markdown: {
14+
lineNumbers: true,
15+
},
16+
1117
themeConfig: {
1218
logo: "/images/logo.svg",
1319

@@ -25,7 +31,6 @@ export default defineConfig({
2531
socialLinks: [{ icon: "discord", link: "https://discord.gg/gRmZgvz" }],
2632

2733
sidebar: [
28-
{ text: "Introduction", link: "/" },
2934
{ text: "Getting Started", link: "/getting-started" },
3035
{ text: "Scripting Introduction", link: "/scripting-introduction" },
3136
{
@@ -265,6 +270,9 @@ export default defineConfig({
265270
{ text: "Contribute", link: "/contribute" },
266271
],
267272

273+
externalLinkIcon: true,
274+
outline: [2, 3],
275+
268276
editLink: {
269277
pattern: "https://github.com/ModDota/moddota.github.io/edit/source/_articles/:path",
270278
},
@@ -283,7 +291,7 @@ export default defineConfig({
283291
publicDir: "../static",
284292
},
285293

286-
markdown: {
287-
languages: ["lua"],
294+
sitemap: {
295+
hostname: "https://moddota.com/",
288296
},
289297
});

_articles/index.md

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
11
---
2-
title: Introduction
2+
layout: home
3+
4+
hero:
5+
name: ModDota
6+
text: Dota 2 Custom Game Development
7+
tagline: Community-driven tutorials and resources for Dota 2 modding
8+
image:
9+
src: /images/logo.svg
10+
alt: ModDota
11+
actions:
12+
- theme: brand
13+
text: Get Started
14+
link: /getting-started
15+
- theme: alt
16+
text: Lua API
17+
link: https://moddota.com/api/
18+
- theme: alt
19+
text: Join Discord
20+
link: https://discord.gg/gRmZgvz
21+
22+
features:
23+
- title: Abilities & Modifiers
24+
details: Learn to create custom abilities, items, and modifiers using Lua or datadriven KeyValues.
25+
link: /abilities/ability-keyvalues
26+
- title: Panorama UI
27+
details: Build custom user interfaces with Panorama, Valve's UI framework, using XML, CSS, and JavaScript or TypeScript.
28+
link: /panorama/inclusive-panorama-ui
29+
- title: TypeScript
30+
details: Use TypeScript for both game logic and Panorama UI with full type safety and autocompletion.
31+
link: /scripting/Typescript/typescript-introduction
32+
- title: Maps & Models
33+
details: Create custom maps with Hammer, import models, and work with materials and textures.
34+
link: /assets/maps/hammer-tutorials
35+
- title: Particles & Sounds
36+
details: Design custom particle effects and add custom sounds to bring your game to life.
37+
link: /assets/particles/particle-tutorial
38+
- title: Scripting & Systems
39+
details: Implement game systems like item drops, shops, filters, and more with Lua scripting.
40+
link: /scripting/custom-mana-system
341
---
442

5-
# Introduction
6-
7-
8-
ModDota is an English-speaking community for Dota 2 Custom Game developers. This website collects tutorials made by its community, that would help you to make your own custom game.
9-
10-
<div style="font-size: 28px">
11-
12-
New to modding? Check out our [Getting Started](getting-started) guide.
13-
14-
Or follow a video tutorial series:
15-
16-
</div>
17-
43+
<div style="display: flex; gap: 16px;">
44+
<div style="flex: 1;">
1845
<YouTube playlistId="PL7yysLaMSd3uY4iJKJdRrTkN1gYePkMz2" />
19-
46+
</div>
47+
<div style="flex: 1;">
2048
<YouTube playlistId="PLyIBVOr2Rw7H5e8JkEF9C9GCf3RsODsuD" />
49+
</div>
50+
</div>

_articles/scripting/Typescript/typescript-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Typescript is more strict compared to Lua, will use types to enforce certain fun
1414

1515
Typescript can work well with most editors using plugins, however, [VSCode](https://code.visualstudio.com/) is recommended as it comes with Typescript support built in, and is a very powerful editor.
1616

17-
<StaticVideo path="videos/ts_example.mp4" controls="true" />
17+
<StaticVideo path="/videos/ts_example.mp4" controls="true" />
1818

1919
## Pros and Cons for using Typescript
2020

static/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://moddota.com/sitemap.xml

0 commit comments

Comments
 (0)