Skip to content

Commit cdf1c7c

Browse files
.
1 parent a070f26 commit cdf1c7c

File tree

8 files changed

+52
-75
lines changed

8 files changed

+52
-75
lines changed

articles/introduction/article.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: "Introduction"
12
content: "article.md"
23
author: "MTA Team"
34
date: "2025-01-01 12:00:00"

articles/lua-api-reference/article.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: "Lua API Reference"
12
content: "article.md"
23
author: "MTA Team"
34
date: "2025-01-01 12:00:00"

articles/official-guides/getting-started/article.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: "Getting Started"
12
content: "article.md"
23
author: "MTA Team"
34
date: "2025-01-01 12:00:00"

schemas/article.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ $id: "/schemas/structure"
33
title: "Wiki Article Schema"
44
type: "object"
55
required:
6+
- title
67
- content
78
- author
89
- date
910
- revisions
1011
- assets
1112
properties:
13+
title:
14+
type: "string"
15+
description: "The title of the article."
1216
content:
1317
type: "string"
1418
description: "The file path for the article content."

schemas/categories.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ $defs:
1515
type: "string"
1616
description: "The name identifier of the category."
1717
articles:
18-
type: "string"
19-
description: "The identifier of the corresponding articles group."
18+
type: "object"
19+
properties:
20+
path:
21+
type: "string"
22+
description: "The path to the articles."
2023
functions:
21-
type: "string"
22-
description: "The identifier of the corresponding functions group."
24+
type: "object"
25+
properties:
26+
path:
27+
type: "string"
28+
description: "The path to the functions."
29+
type:
30+
type: "string"
31+
description: "The type of functions to include (client/server/shared)."
2332
subcategories:
2433
type: "array"
2534
description: "A list of subsections or subcategories."

schemas/structure.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,19 @@ $defs:
1818
properties:
1919
title:
2020
type: "string"
21-
description: "The title of the section or article."
22-
description:
23-
type: "string"
24-
description: "A brief description of the section or article."
21+
description: "The title of the section."
2522
path:
2623
type: "string"
27-
description: "The URL path for this section or article."
24+
description: "The URL path for this section."
2825
article:
2926
type: "string"
30-
description: "The file or identifier of the corresponding article."
27+
description: "The name of the article."
3128
pattern: "^[a-zA-Z0-9/_-]+$"
3229
category:
3330
type: "string"
34-
description: "The category name for the section."
31+
description: "The name of the category."
3532
children:
3633
type: "array"
37-
description: "A list of subsections or subcategories."
34+
description: "A list of subsections."
3835
items:
3936
$ref: "#/$defs/section"

wiki/categories.yaml

+25-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
- name: "Official guides"
2-
articles: "official-guides"
2+
articles:
3+
path: "official-guides"
34

45
- name: "Community guides"
5-
articles: "community-guides"
6+
articles:
7+
path: "community-guides"
68

7-
# - name: "Server functions"
8-
9-
- name: "Client functions"
9+
- name: "Lua reference"
1010
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"
11+
- name: "Client functions"
12+
subcategories:
13+
- name: "Cursor functions"
14+
functions:
15+
path: "Cursor"
16+
type: "client"
17+
- name: "Element functions"
18+
functions:
19+
path: "Element"
20+
type: "client"
1921

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"
22+
- name: "Shared functions"
23+
subcategories:
24+
- name: "Cursor functions"
25+
functions:
26+
path: "Cursor"
27+
type: "shared"
28+
- name: "Element functions"
29+
functions:
30+
path: "Element"
31+
type: "shared"

wiki/structure.yaml

+2-40
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
wiki:
22
# Homepage
33
- path: "/"
4-
title: "Introduction"
5-
description: "Welcome to the MTA Wiki"
4+
title: "Multi Theft Auto: Wiki"
65
article: "introduction"
76

87
# Guides Index
98
- path: "/guides"
109
title: "Guides"
11-
description: "Guides and tutorials for MTA"
1210
children:
1311
- path: "/guides/official"
1412
title: "Official Guides"
@@ -21,40 +19,4 @@ wiki:
2119
# Reference Index
2220
- title: "Lua API Reference"
2321
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"
22+
category: "Lua reference"

0 commit comments

Comments
 (0)