Skip to content

Commit 46d35c4

Browse files
committed
Updating docs
- Windows API - Separated UI docs - Improved warning message across API sections - Changed default collapsed variable for categories in API page
1 parent 94461e0 commit 46d35c4

14 files changed

Lines changed: 2260 additions & 105 deletions

File tree

docs/.vitepress/config.js

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = {
8989
},
9090
{
9191
text: 'Player API',
92-
collapsed: false,
92+
collapsed: true,
9393
items: [
9494
{ text: 'Overview', link: '/api/player/' },
9595
{ text: 'Status', link: '/api/player/status' },
@@ -99,7 +99,7 @@ module.exports = {
9999
},
100100
{
101101
text: 'NPC API',
102-
collapsed: false,
102+
collapsed: true,
103103
items: [
104104
{ text: 'Overview', link: '/api/npc/' },
105105
{ text: 'Finding NPCs', link: '/api/npc/finding' },
@@ -108,33 +108,51 @@ module.exports = {
108108
},
109109
{
110110
text: 'Time API',
111-
collapsed: false,
111+
collapsed: true,
112112
items: [
113113
{ text: 'Game Time', link: '/api/time/game-time' },
114114
{ text: 'Events', link: '/api/time/events' },
115115
]
116116
},
117117
{
118118
text: 'Map API',
119-
collapsed: false,
119+
collapsed: true,
120120
items: [
121121
{ text: 'Regions', link: '/api/map/' },
122122
]
123123
},
124+
{
125+
text: 'Native UI API',
126+
collapsed: true,
127+
items: [
128+
{ text: 'Overview', link: '/api/ui/' },
129+
{ text: 'Notifications', link: '/api/ui/notifications' },
130+
{ text: 'Messages', link: '/api/ui/messages' },
131+
{ text: 'Dialogs', link: '/api/ui/dialogs' },
132+
]
133+
},
134+
{
135+
text: 'Custom UI API',
136+
collapsed: true,
137+
items: [
138+
{ text: 'Overview', link: '/api/custom-ui/' },
139+
{ text: 'Windows', link: '/api/custom-ui/windows' },
140+
{ text: 'Controls', link: '/api/custom-ui/controls' },
141+
{ text: 'Styling', link: '/api/custom-ui/styling' },
142+
]
143+
},
124144
{
125145
text: 'Helper Functions',
126-
collapsed: false,
146+
collapsed: true,
127147
items: [
128148
{ text: 'Vector Operations', link: '/api/helper/' },
129149
]
130150
},
131151
{
132-
text: 'UI API (Partial)',
152+
text: 'Windows API',
133153
collapsed: true,
134154
items: [
135-
{ text: 'Overview', link: '/api/ui/' },
136-
{ text: 'Notifications', link: '/api/ui/notifications' },
137-
{ text: 'Custom UI', link: '/api/ui/custom-ui' },
155+
{ text: 'Key Input', link: '/api/windows/' },
138156
]
139157
},
140158
{

0 commit comments

Comments
 (0)