Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Jan 18, 2025
1 parent a070f26 commit cdf1c7c
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 75 deletions.
1 change: 1 addition & 0 deletions articles/introduction/article.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
title: "Introduction"
content: "article.md"
author: "MTA Team"
date: "2025-01-01 12:00:00"
Expand Down
1 change: 1 addition & 0 deletions articles/lua-api-reference/article.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
title: "Lua API Reference"
content: "article.md"
author: "MTA Team"
date: "2025-01-01 12:00:00"
Expand Down
1 change: 1 addition & 0 deletions articles/official-guides/getting-started/article.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
title: "Getting Started"
content: "article.md"
author: "MTA Team"
date: "2025-01-01 12:00:00"
Expand Down
4 changes: 4 additions & 0 deletions schemas/article.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ $id: "/schemas/structure"
title: "Wiki Article Schema"
type: "object"
required:
- title
- content
- author
- date
- revisions
- assets
properties:
title:
type: "string"
description: "The title of the article."
content:
type: "string"
description: "The file path for the article content."
Expand Down
17 changes: 13 additions & 4 deletions schemas/categories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ $defs:
type: "string"
description: "The name identifier of the category."
articles:
type: "string"
description: "The identifier of the corresponding articles group."
type: "object"
properties:
path:
type: "string"
description: "The path to the articles."
functions:
type: "string"
description: "The identifier of the corresponding functions group."
type: "object"
properties:
path:
type: "string"
description: "The path to the functions."
type:
type: "string"
description: "The type of functions to include (client/server/shared)."
subcategories:
type: "array"
description: "A list of subsections or subcategories."
Expand Down
13 changes: 5 additions & 8 deletions schemas/structure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,19 @@ $defs:
properties:
title:
type: "string"
description: "The title of the section or article."
description:
type: "string"
description: "A brief description of the section or article."
description: "The title of the section."
path:
type: "string"
description: "The URL path for this section or article."
description: "The URL path for this section."
article:
type: "string"
description: "The file or identifier of the corresponding article."
description: "The name of the article."
pattern: "^[a-zA-Z0-9/_-]+$"
category:
type: "string"
description: "The category name for the section."
description: "The name of the category."
children:
type: "array"
description: "A list of subsections or subcategories."
description: "A list of subsections."
items:
$ref: "#/$defs/section"
48 changes: 25 additions & 23 deletions wiki/categories.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
- name: "Official guides"
articles: "official-guides"
articles:
path: "official-guides"

- name: "Community guides"
articles: "community-guides"
articles:
path: "community-guides"

# - name: "Server functions"

- name: "Client functions"
- name: "Lua reference"
subcategories:
- name: "Cursor functions"
functions:
path: "Cursor"
type: "client"
- name: "Element functions"
functions:
path: "Element"
type: "client"
- name: "Client functions"
subcategories:
- name: "Cursor functions"
functions:
path: "Cursor"
type: "client"
- name: "Element functions"
functions:
path: "Element"
type: "client"

- name: "Shared functions"
subcategories:
- name: "Cursor functions"
functions:
path: "Cursor"
type: "shared"
- name: "Element functions"
functions:
path: "Element"
type: "shared"
- name: "Shared functions"
subcategories:
- name: "Cursor functions"
functions:
path: "Cursor"
type: "shared"
- name: "Element functions"
functions:
path: "Element"
type: "shared"
42 changes: 2 additions & 40 deletions wiki/structure.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
wiki:
# Homepage
- path: "/"
title: "Introduction"
description: "Welcome to the MTA Wiki"
title: "Multi Theft Auto: Wiki"
article: "introduction"

# Guides Index
- path: "/guides"
title: "Guides"
description: "Guides and tutorials for MTA"
children:
- path: "/guides/official"
title: "Official Guides"
Expand All @@ -21,40 +19,4 @@ wiki:
# Reference Index
- title: "Lua API Reference"
path: "/lua"
article: "lua-api-reference"
children:
- path: "/lua/client-functions"
title: "Client Functions"
category: "Client functions"

- path: "/lua/client-events"
title: "Client Events"
category: "Client events"

- path: "/lua/server-functions"
title: "Server Functions"
category: "Server functions"

- path: "/lua/server-events"
title: "Server Events"
category: "Server events"

- path: "/lua/shared-functions"
title: "Shared Functions"
category: "Shared functions"

- path: "/lua/useful-functions"
title: "Useful Functions"
category: "Useful functions"

- path: "/lua/mta-classes"
title: "MTA Classes"
category: "MTA Classes"

- path: "/lua/mta-elements"
title: "MTA Elements"
category: "MTA Elements"

- path: "/lua/element-tree"
title: "Element Tree"
category: "Element Tree"
category: "Lua reference"

0 comments on commit cdf1c7c

Please sign in to comment.