Skip to content

Commit a070f26

Browse files
WIP structure
1 parent 3707478 commit a070f26

File tree

15 files changed

+185
-46
lines changed

15 files changed

+185
-46
lines changed

articles/community-guides/.gitkeep

Whitespace-only changes.

articles/getting-started.md

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

articles/guides/introduction-to-scripting.md

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

articles/introduction.md

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

articles/introduction/article.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Welcome
2+
3+
Hi

articles/introduction/article.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
content: "article.md"
2+
author: "MTA Team"
3+
date: "2025-01-01 12:00:00"
4+
revisions: []
5+
assets: []

articles/lua-api-reference/article.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Lua API Reference
2+
3+
TODO: Introduce the MTA Lua API system.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
content: "article.md"
2+
author: "MTA Team"
3+
date: "2025-01-01 12:00:00"
4+
revisions: []
5+
assets: []
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Getting Started
2+
3+
Test
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
content: "article.md"
2+
author: "MTA Team"
3+
date: "2025-01-01 12:00:00"
4+
revisions: []
5+
assets: []

navigation/structure.yaml

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

schemas/article.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
$schema: "https://json-schema.org/draft/2020-12/schema"
2+
$id: "/schemas/structure"
3+
title: "Wiki Article Schema"
4+
type: "object"
5+
required:
6+
- content
7+
- author
8+
- date
9+
- revisions
10+
- assets
11+
properties:
12+
content:
13+
type: "string"
14+
description: "The file path for the article content."
15+
author:
16+
type: "string"
17+
description: "The author of the article."
18+
date:
19+
type: "string"
20+
description: "The date the article was published."
21+
revisions:
22+
type: "array"
23+
description: "A list of revisions made to the article."
24+
items:
25+
type: "object"
26+
required:
27+
- date
28+
- author
29+
- changes
30+
properties:
31+
date:
32+
type: "string"
33+
description: "The date the revision was made."
34+
author:
35+
type: "string"
36+
description: "The author of the revision."
37+
changes:
38+
type: "string"
39+
description: "A brief description of the changes made."
40+
assets:
41+
type: "array"
42+
description: "A list of assets used in the article."
43+
items:
44+
type: "string"
45+
description: "The file path for the asset."

schemas/categories.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
$schema: "https://json-schema.org/draft/2020-12/schema"
2+
$id: "/schemas/categories"
3+
title: "Wiki Categories Schema"
4+
type: "array"
5+
items:
6+
$ref: "#/$defs/section"
7+
8+
$defs:
9+
section:
10+
type: "object"
11+
required:
12+
- name
13+
properties:
14+
name:
15+
type: "string"
16+
description: "The name identifier of the category."
17+
articles:
18+
type: "string"
19+
description: "The identifier of the corresponding articles group."
20+
functions:
21+
type: "string"
22+
description: "The identifier of the corresponding functions group."
23+
subcategories:
24+
type: "array"
25+
description: "A list of subsections or subcategories."
26+
items:
27+
$ref: "#/$defs/item"

wiki/categories.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
- name: "Official guides"
2+
articles: "official-guides"
3+
4+
- name: "Community guides"
5+
articles: "community-guides"
6+
7+
# - name: "Server functions"
8+
9+
- name: "Client functions"
10+
subcategories:
11+
- name: "Cursor functions"
12+
functions:
13+
path: "Cursor"
14+
type: "client"
15+
- name: "Element functions"
16+
functions:
17+
path: "Element"
18+
type: "client"
19+
20+
- name: "Shared functions"
21+
subcategories:
22+
- name: "Cursor functions"
23+
functions:
24+
path: "Cursor"
25+
type: "shared"
26+
- name: "Element functions"
27+
functions:
28+
path: "Element"
29+
type: "shared"

wiki/structure.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
wiki:
2+
# Homepage
3+
- path: "/"
4+
title: "Introduction"
5+
description: "Welcome to the MTA Wiki"
6+
article: "introduction"
7+
8+
# Guides Index
9+
- path: "/guides"
10+
title: "Guides"
11+
description: "Guides and tutorials for MTA"
12+
children:
13+
- path: "/guides/official"
14+
title: "Official Guides"
15+
category: "Official guides"
16+
17+
- path: "/guides/community"
18+
title: "Community Guides"
19+
category: "Community guides"
20+
21+
# Reference Index
22+
- title: "Lua API Reference"
23+
path: "/lua"
24+
article: "lua-api-reference"
25+
children:
26+
- path: "/lua/client-functions"
27+
title: "Client Functions"
28+
category: "Client functions"
29+
30+
- path: "/lua/client-events"
31+
title: "Client Events"
32+
category: "Client events"
33+
34+
- path: "/lua/server-functions"
35+
title: "Server Functions"
36+
category: "Server functions"
37+
38+
- path: "/lua/server-events"
39+
title: "Server Events"
40+
category: "Server events"
41+
42+
- path: "/lua/shared-functions"
43+
title: "Shared Functions"
44+
category: "Shared functions"
45+
46+
- path: "/lua/useful-functions"
47+
title: "Useful Functions"
48+
category: "Useful functions"
49+
50+
- path: "/lua/mta-classes"
51+
title: "MTA Classes"
52+
category: "MTA Classes"
53+
54+
- path: "/lua/mta-elements"
55+
title: "MTA Elements"
56+
category: "MTA Elements"
57+
58+
- path: "/lua/element-tree"
59+
title: "Element Tree"
60+
category: "Element Tree"

0 commit comments

Comments
 (0)