Skip to content

Commit c76d6b8

Browse files
committed
fix: add s2sdk guide to nav
1 parent af10711 commit c76d6b8

File tree

4 files changed

+137
-59
lines changed

4 files changed

+137
-59
lines changed

app.config.ts

Lines changed: 105 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -20,53 +20,113 @@ export default defineAppConfig({
2020
light: '/plg-logo-text.svg',
2121
dark: '/plg-logo-text-white.svg',
2222
},
23-
nav: [{
24-
title: 'Docs',
25-
links: [{
26-
title: 'Introduction',
27-
to: '/introduction/quick-start',
28-
description: 'Learn about Plugify, its purpose, and key features.',
29-
icon: 'lucide:rocket'
30-
}, {
31-
title: 'Essentials',
32-
to: '/essentials/installation',
33-
description: 'A high-level overview of Plugify\'s core components.',
34-
icon: 'lucide:package'
35-
}, {
36-
title: 'Use Cases',
37-
to: '/use-cases/integrations',
38-
description: 'Explore real-world applications and scenarios for Plugify.',
39-
target: '_self',
40-
icon: 'lucide:briefcase'
41-
}, {
42-
title: 'Languages',
43-
to: '/languages/languages',
44-
description: 'See supported programming languages and compatibility details.',
23+
nav: [
24+
{
25+
title: 'Docs',
26+
links: [
27+
{
28+
title: 'Introduction',
29+
to: '/introduction/quick-start',
30+
description: 'Learn about Plugify, its purpose, and key features.',
31+
icon: 'lucide:rocket'
32+
}, {
33+
title: 'Essentials',
34+
to: '/essentials/installation',
35+
description: 'A high-level overview of Plugify\'s core components.',
36+
icon: 'lucide:package'
37+
}, {
38+
title: 'Use Cases',
39+
to: '/use-cases/integrations',
40+
description: 'Explore real-world applications and scenarios for Plugify.',
41+
target: '_self',
42+
icon: 'lucide:briefcase'
43+
}, {
44+
title: 'Languages',
45+
to: '/languages/languages',
46+
description: 'See supported programming languages and compatibility details.',
47+
target: '_self',
48+
icon: 'lucide:code'
49+
}, {
50+
title: 'Developer Guides',
51+
to: '/developer-guides/writing-language-module',
52+
description: 'Step-by-step guides for developers integrating Plugify.',
53+
target: '_self',
54+
icon: 'lucide:hammer'
55+
}
56+
],
57+
},
58+
{
59+
title: 'S2SDK Guides',
60+
links: [
61+
{
62+
title: 'Console Commands',
63+
to: '/plugins/s2sdk/guides/console-commands',
64+
description: 'How to add a new console command.',
65+
target: '_self',
66+
icon: 'lucide:terminal-square'
67+
},
68+
{
69+
title: 'Console Variables',
70+
to: '/plugins/s2sdk/guides/console-variables',
71+
description: 'How to read & write console variables (ConVars).',
72+
target: '_self',
73+
icon: 'lucide:sliders'
74+
},
75+
{
76+
title: 'Game Events',
77+
to: '/plugins/s2sdk/guides/game-events',
78+
description: 'How to listen to Source 2 style game events.',
79+
target: '_self',
80+
icon: 'lucide:radio'
81+
},
82+
{
83+
title: 'Global Listeners',
84+
to: '/plugins/s2sdk/guides/global-listeners',
85+
description: 'How to subscribe to CounterStrikeSharp global listeners.',
86+
target: '_self',
87+
icon: 'lucide:ear'
88+
},
89+
{
90+
title: 'Entity Schemas',
91+
to: '/plugins/s2sdk/guides/entity-schemas',
92+
description: 'How to read and modify Source 2 entity schemas and network state.',
93+
target: '_self',
94+
icon: 'lucide:cog'
95+
},
96+
{
97+
title: 'User Messages',
98+
to: '/plugins/s2sdk/guides/user-messages',
99+
description: 'How to send and receive protobuf user messages between server and clients.',
100+
target: '_self',
101+
icon: 'lucide:message-square'
102+
},
103+
{
104+
title: 'CS_Script Integration',
105+
to: '/plugins/s2sdk/guides/cs_script-integration',
106+
description: 'How to integrate Valve\'s CS_Script system with Plugify plugins.',
107+
target: '_self',
108+
icon: 'lucide:code-xml'
109+
}
110+
]
111+
},
112+
{
113+
title: 'API Hub',
114+
to: 'https://api.plugify.net/',
45115
target: '_self',
46-
icon: 'lucide:code'
116+
showLinkIcon: true,
117+
}
118+
],
119+
links: [
120+
{
121+
icon: 'simple-icons:discord',
122+
to: 'https://discord.gg/rX9TMmpang',
123+
target: '_blank',
47124
}, {
48-
title: 'Developer Guides',
49-
to: '/developer-guides/writing-language-module',
50-
description: 'Step-by-step guides for developers integrating Plugify.',
51-
target: '_self',
52-
icon: 'lucide:hammer'
53-
}],
54-
},
55-
{
56-
title: 'API Hub',
57-
to: 'https://api.plugify.net/',
58-
target: '_self',
59-
showLinkIcon: true,
60-
}],
61-
links: [{
62-
icon: 'simple-icons:discord',
63-
to: 'https://discord.gg/rX9TMmpang',
64-
target: '_blank',
65-
}, {
66-
icon: 'simple-icons:github',
67-
to: 'https://github.com/untrustedmodders/',
68-
target: '_blank',
69-
}],
125+
icon: 'simple-icons:github',
126+
to: 'https://github.com/untrustedmodders/',
127+
target: '_blank',
128+
}
129+
],
70130
},
71131
i18n: {
72132
baseUrl: 'https://plugify.net/',

content/6.plugins/5.s2sdk/4.guides/6.user-messages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: User Messages (Protobuf)
2+
title: User Messages
33
description: How to send and receive protobuf user messages between server and clients.
44
---
55

content/6.plugins/5.s2sdk/4.guides/7.cs_script-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: CS_Script System Integration
2+
title: CS_Script Integration
33
description: How to integrate Valve's CS_Script system with Plugify plugins.
44
---
55

i18n/i18n.config.ts

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,6 @@ export default defineI18nConfig(() => ({
279279
'Search documentation...': 'Поиск в документации...',
280280
'No results found.': 'Ничего не найдено.',
281281

282-
// Header nav
283-
'Introduction': 'Начало',
284-
'Learn about Plugify, its purpose, and key features.': 'Узнайте о Plugify, его назначении и ключевых функциях.',
285-
'Essentials': 'Использование',
286-
'A high-level overview of Plugify\'s core components.': 'Общий обзор основных компонентов Plugify.',
287-
'Use Cases': 'Примеры интеграции',
288-
'Explore real-world applications and scenarios for Plugify.': 'Изучите реальные примеры использования и сценарии Plugify.',
289-
'Languages': 'Языки',
290-
'See supported programming languages and compatibility details.': 'Посмотрите поддерживаемые языки программирования и детали совместимости.',
291-
'Developer Guides': 'Для разработчиков',
292-
'Step-by-step guides for developers integrating Plugify.': 'Пошаговые руководства для разработчиков по интеграции Plugify.',
293-
294282
// TOC
295283
'On This Page': 'На этой странице',
296284
'Star on GitHub': 'Поставьте звезду на GitHub',
@@ -333,6 +321,36 @@ export default defineI18nConfig(() => ({
333321

334322
// Field
335323
'required': 'обязательно',
324+
325+
// Header nav
326+
'Docs': 'Документация',
327+
'Introduction': 'Начало',
328+
'Learn about Plugify, its purpose, and key features.': 'Узнайте о Plugify, его назначении и ключевых функциях.',
329+
'Essentials': 'Использование',
330+
'A high-level overview of Plugify\'s core components.': 'Общий обзор основных компонентов Plugify.',
331+
'Use Cases': 'Примеры интеграции',
332+
'Explore real-world applications and scenarios for Plugify.': 'Изучите реальные примеры использования и сценарии Plugify.',
333+
'Languages': 'Языки',
334+
'See supported programming languages and compatibility details.': 'Посмотрите поддерживаемые языки программирования и детали совместимости.',
335+
'Developer Guides': 'Для разработчиков',
336+
'Step-by-step guides for developers integrating Plugify.': 'Пошаговые руководства для разработчиков по интеграции Plugify.',
337+
338+
// S2SDK Guides
339+
'S2SDK Guides': 'Руководства S2SDK',
340+
'Console Commands': 'Консольные команды',
341+
'How to add a new console command.': 'Как добавить новую консольную команду.',
342+
'Console Variables': 'Консольные переменные',
343+
'How to read & write console variables (ConVars).': 'Как читать и изменять консольные переменные (ConVar).',
344+
'Game Events': 'Игровые события',
345+
'How to listen to Source 2 style game events.': 'Как обрабатывать игровые события в стиле Source 2.',
346+
'Global Listeners': 'Глобальные слушатели',
347+
'How to subscribe to CounterStrikeSharp global listeners.': 'Как подписаться на глобальные слушатели CounterStrikeSharp.',
348+
'Entity Schemas': 'Схемы сущностей',
349+
'How to read and modify Source 2 entity schemas and network state.': 'Как читать и изменять схемы сущностей и сетевое состояние Source 2.',
350+
'User Messages': 'Пользовательские сообщения',
351+
'How to send and receive protobuf user messages between server and clients.': 'Как отправлять и получать пользовательские сообщения Protobuf между сервером и клиентами.',
352+
'CS_Script Integration': 'Интеграция с CS_Script',
353+
'How to integrate Valve\'s CS_Script system with Plugify plugins.': 'Как интегрировать систему Valve CS_Script с плагинами Plugify.',
336354
},
337355

338356
'ko': {

0 commit comments

Comments
 (0)