Skip to content

Commit e63375c

Browse files
Move meta.xml to reference, and refactor sidebar
1 parent 21f659d commit e63375c

File tree

3 files changed

+47
-32
lines changed

3 files changed

+47
-32
lines changed

web/astro.config.mjs

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineConfig({
4646
label: 'How you can help', link: '/articles/How_you_can_help',
4747
},
4848
{
49-
label: 'Incomplete Pages', link: '/Incomplete_Pages',
49+
label: 'Incomplete Pages', link: '/Incomplete_Pages', badge: { text: 'Help Wanted', variant: 'tip' },
5050
},
5151
]
5252
},
@@ -56,48 +56,61 @@ export default defineConfig({
5656
{
5757
label: 'Scripting Introduction', link: '/articles/Scripting_Introduction',
5858
},
59-
{
60-
label: 'Meta.xml', link: '/articles/Meta.xml',
61-
}
6259
]
6360
},
6461
{
6562
label: 'Reference',
6663
items: [
6764
{
68-
label: 'Lua API', link: '/reference/Lua_API',
69-
},
70-
{
71-
label: 'Functions',
72-
items: [
73-
{label: 'All Functions', link: '/reference/Scripting_Functions'},
74-
{label: 'Shared Functions', link: '/reference/Shared_Scripting_Functions'},
75-
{label: 'Client Functions', link: '/reference/Client_Scripting_Functions'},
76-
{label: 'Server Functions', link: '/reference/Server_Scripting_Functions'},
77-
]
78-
},
79-
{
80-
label: 'Events',
81-
items: [
82-
{label: 'Event System', link: '/reference/Event_System'},
83-
{label: 'All Events', link: '/reference/Scripting_Events'},
84-
{label: 'Client Events', link: '/reference/Client_Scripting_Events'},
85-
{label: 'Server Events', link: '/reference/Server_Scripting_Events'},
86-
]
87-
},
88-
{
89-
label: 'Elements',
65+
label: 'Resources',
9066
items: [
91-
{label: 'Element Types', link: '/reference/Element'},
92-
{label: 'Element Tree', link: '/reference/Element_tree'},
93-
{label: 'Entities', link: '/reference/Entity'},
67+
{ label: 'Lua API', link: '/reference/Lua_API' },
68+
{ label: 'Meta.xml', link: '/reference/Meta.xml'},
69+
{
70+
label: 'Functions',
71+
collapsed: true,
72+
items: [
73+
{label: 'All Functions', link: '/reference/Scripting_Functions'},
74+
{label: 'Shared Functions', link: '/reference/Shared_Scripting_Functions'},
75+
{label: 'Client Functions', link: '/reference/Client_Scripting_Functions'},
76+
{label: 'Server Functions', link: '/reference/Server_Scripting_Functions'},
77+
]
78+
},
79+
{
80+
label: 'Events',
81+
collapsed: true,
82+
items: [
83+
{label: 'Event System', link: '/reference/Event_System'},
84+
{label: 'All Events', link: '/reference/Scripting_Events'},
85+
{label: 'Client Events', link: '/reference/Client_Scripting_Events'},
86+
{label: 'Server Events', link: '/reference/Server_Scripting_Events'},
87+
]
88+
},
89+
{
90+
label: 'Elements',
91+
collapsed: true,
92+
items: [
93+
{label: 'Element Types', link: '/reference/Element'},
94+
{label: 'Element Tree', link: '/reference/Element_tree'},
95+
{label: 'Entities', link: '/reference/Entity'},
96+
]
97+
},
98+
{
99+
label: 'OOP',
100+
collapsed: true,
101+
items: [
102+
{label: 'About OOP', link: '/reference/OOP'},
103+
{label: 'OOP Classes', link: '/reference/OOP_Classes'},
104+
]
105+
},
94106
]
95107
},
96108
{
97-
label: 'OOP',
109+
label: 'Configuration',
98110
items: [
99-
{label: 'About OOP', link: '/reference/OOP'},
100-
{label: 'OOP Classes', link: '/reference/OOP_Classes'},
111+
{label: 'MTAServer.conf', link: '/reference/Server_mtaserver.conf'},
112+
{label: 'Settings.xml', link: '/reference/Settings_System'},
113+
{label: 'ACL.xml', link: '/reference/Access_Control_List'},
101114
]
102115
},
103116
]

web/src/pages/reference/Lua_API.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ import SeeAlsoSection from '@src/components/SeeAlsoSection.astro';
3939
### About
4040
The MTA **Lua API** is built on an extended version of [Lua 5.1](https://www.lua.org/manual/5.1/) and offers tools to enhance and customize gameplay.
4141

42+
TODO explain the entire resources system
43+
4244
<SeeAlsoSection seeAlsoLinks={getSeeAlsoLinksFromList([
4345
'article:Scripting_Introduction',
4446
])} currentId='' />

0 commit comments

Comments
 (0)