Skip to content

Commit 31caa86

Browse files
authored
⚡ Bump dependencies versions (#150 by @Mister-Hope)
1 parent 0f1e9d3 commit 31caa86

18 files changed

+6819
-3797
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
import { defineUserConfig } from '@vuepress/cli';
2-
import { viteBundler } from '@vuepress/bundler-vite'
2+
import { viteBundler } from '@vuepress/bundler-vite';
33

4-
import { hope } from 'vuepress-theme-hope';
5-
6-
import themeConfig from './themeConfig';
4+
import theme from './theme.js';
75

86
export default defineUserConfig({
97
title: 'ct.js Documentation',
108
description: 'Docs, tutorials, guides',
11-
bundler: viteBundler({
12-
viteOptions: {},
13-
vuePluginOptions: {},
14-
}),
15-
plugins: [],
169
base: '/',
1710
head: [
18-
['script', {
19-
src: '/themeSwitcher.js'
20-
}],
11+
[
12+
'script',
13+
{
14+
src: '/themeSwitcher.js',
15+
},
16+
],
2117
['link', { rel: 'icon', href: '/assets/img/logo.png' }],
2218
],
2319

@@ -30,12 +26,12 @@ export default defineUserConfig({
3026
'/ru/': {
3127
lang: 'ru-Ru',
3228
title: 'Документация к игровому движку ct.js',
33-
description: 'Референсы, туториалы, гайды'
29+
description: 'Референсы, туториалы, гайды',
3430
},
3531
'/pt_BR/': {
3632
lang: 'pt-BR',
3733
title: 'Documentação ct.js',
38-
description: 'Docs, tutoriais, guias'
34+
description: 'Docs, tutoriais, guias',
3935
},
4036
'/it/': {
4137
lang: 'it',
@@ -44,11 +40,15 @@ export default defineUserConfig({
4440
},
4541
},
4642

47-
theme: hope(themeConfig),
4843
markdown: {
4944
toc: {
5045
level: [2, 3, 4],
5146
},
5247
},
53-
shouldPrefetch: false
48+
49+
bundler: viteBundler(),
50+
51+
theme,
52+
53+
shouldPrefetch: false,
5454
});

docs/.vuepress/configs/en.ts

+238
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
import { navbar, sidebar } from 'vuepress-theme-hope';
2+
3+
export const enNavbar = navbar([
4+
{
5+
text: 'Home',
6+
link: '/',
7+
icon: 'home',
8+
},
9+
{
10+
text: 'Get ct.js',
11+
link: 'https://ctjs.rocks',
12+
icon: 'download',
13+
},
14+
{
15+
text: 'Discord',
16+
link: 'https://discord.gg/yuvuDW5',
17+
icon: 'user-group',
18+
},
19+
{
20+
text: 'Forum',
21+
link: 'https://forum.ctjs.rocks/',
22+
icon: 'comments',
23+
},
24+
]);
25+
26+
export const enSidebar = sidebar([
27+
{
28+
link: '/',
29+
text: 'Home',
30+
icon: 'home',
31+
},
32+
{
33+
text: 'Learn Catnip',
34+
collapsible: true,
35+
icon: 'book',
36+
prefix: '/learn-catnip/',
37+
children: ['introduction', 'conditions-and-loops', 'working-with-copies'],
38+
},
39+
{
40+
text: 'Learn JavaScript',
41+
collapsible: true,
42+
icon: 'book',
43+
prefix: '/learn-js/',
44+
children: ['jsintro_pt1', 'jsintro_pt2', 'jsintro_pt3'],
45+
},
46+
{
47+
collapsible: false,
48+
text: 'Tutorials',
49+
icon: 'arrows-turn-to-dots',
50+
prefix: '/tutorials/',
51+
children: [
52+
'making-games-shooter',
53+
'making-games-platformer',
54+
'making-games-jettycat',
55+
'making-games-polishing-jettycat',
56+
],
57+
},
58+
{
59+
text: 'The `core` library',
60+
collapsible: false,
61+
icon: 'certificate',
62+
children: [
63+
'ct-concepts',
64+
'backgrounds',
65+
'behaviors',
66+
'camera',
67+
'emitters',
68+
{
69+
link: '/inputs',
70+
text: 'inputs and actions',
71+
},
72+
'res',
73+
'rooms',
74+
'settings',
75+
'sounds',
76+
'styles',
77+
'tilemaps',
78+
'timer',
79+
'templates',
80+
{
81+
link: '/u',
82+
text: 'u (utilities)',
83+
},
84+
{
85+
link: '/catmoddocs.md',
86+
text: 'Where are the docs for catmods?',
87+
},
88+
],
89+
},
90+
{
91+
text: 'Built-in ct.js classes',
92+
collapsible: false,
93+
icon: 'icons',
94+
children: [
95+
{
96+
link: '/background',
97+
text: 'Background',
98+
},
99+
{
100+
link: '/copy',
101+
text: 'Copy',
102+
},
103+
{
104+
link: '/room',
105+
text: 'Room',
106+
},
107+
],
108+
},
109+
{
110+
text: 'Working with the editor',
111+
collapsible: false,
112+
icon: 'laptop-code',
113+
children: [
114+
'actions',
115+
{
116+
link: '/room-editor',
117+
text: 'Using the room editor',
118+
},
119+
{
120+
link: '/bitmap-fonts',
121+
text: 'Using bitmap fonts',
122+
},
123+
{
124+
link: '/content-subsystem',
125+
text: 'Content editor',
126+
},
127+
'enumerations',
128+
'building-your-game',
129+
'deployment-itch-io',
130+
],
131+
},
132+
{
133+
text: 'Tips & tricks',
134+
collapsible: false,
135+
icon: 'lightbulb',
136+
prefix: '/tips-n-tricks/',
137+
children: [
138+
'game-and-ui-coordinates',
139+
'movement',
140+
'game-pause',
141+
'localstorage',
142+
'viewport-management',
143+
'textures-magic-properties',
144+
'dragging-copies',
145+
'gamedev-resources',
146+
],
147+
},
148+
{
149+
text: 'Technical stuff',
150+
collapsible: true,
151+
icon: 'gears',
152+
children: ['/event-order'],
153+
},
154+
{
155+
text: 'Modding ct.js',
156+
collapsible: true,
157+
icon: 'plug',
158+
prefix: '/modding-ctjs/',
159+
children: [
160+
{
161+
link: 'mod-structure',
162+
text: "Directory structure and module's manifest",
163+
},
164+
{
165+
link: 'events-and-injections',
166+
text: 'Extending ct.js code with injections',
167+
},
168+
{
169+
link: 'settings-and-extensions',
170+
text: 'Settings and additional fields',
171+
},
172+
{
173+
link: 'input-methods',
174+
text: 'Adding new input methods',
175+
},
176+
{
177+
link: 'modded-events',
178+
text: 'Adding new events',
179+
},
180+
{
181+
link: 'typings-and-intellisense',
182+
text: 'Autocompletion and IntelliSense',
183+
},
184+
{
185+
link: 'adding-blocks-to-catnip',
186+
text: 'Adding blocks to catnip',
187+
},
188+
{
189+
link: 'fields-declaration',
190+
text: 'Fields reference',
191+
},
192+
],
193+
},
194+
{
195+
text: 'Troubleshooting',
196+
collapsible: true,
197+
icon: 'hand',
198+
prefix: '/troubleshooting/',
199+
children: [
200+
{
201+
link: 'migration-0to1',
202+
text: 'Migration from 0.x to 1.x',
203+
},
204+
{
205+
link: 'migration-1-2to1-3',
206+
text: 'Migration from 1.2 to 1.3',
207+
},
208+
{
209+
link: 'migration-1to2',
210+
text: 'Migration from 1.x to 2.0',
211+
},
212+
{
213+
link: 'migration-2to3',
214+
text: 'Migration from 2.x to 3.0',
215+
},
216+
{
217+
link: 'migration-3to4',
218+
text: 'Migration from 3.x to 4.0',
219+
},
220+
{
221+
link: 'migration-4to5',
222+
text: 'Migration from 4.0 to 5.0',
223+
},
224+
{
225+
link: 'teared-background',
226+
text: 'Background splits into squares!',
227+
},
228+
{
229+
link: 'leaking-pixels',
230+
text: 'Textures have leaked pixels!',
231+
},
232+
{
233+
link: 'sounds-not-playing',
234+
text: "Sounds don't play at game start!",
235+
},
236+
],
237+
},
238+
]);

docs/.vuepress/configs/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './en.js';
2+
export * from './ru.js';
3+
export * from './ptBR.js';

docs/.vuepress/configs/it.ts

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { navbar, sidebar } from 'vuepress-theme-hope';
2+
3+
export const itNavbar = navbar([
4+
{
5+
text: 'Home',
6+
link: '/it/',
7+
},
8+
{
9+
text: 'Scarica ct.js',
10+
link: 'https://ctjs.rocks',
11+
},
12+
{
13+
text: 'Discord',
14+
link: 'https://discord.gg/yuvuDW5',
15+
},
16+
{
17+
text: 'Forum',
18+
link: 'https://forum.ctjs.rocks/',
19+
},
20+
]);
21+
22+
export const itSidebar = sidebar([
23+
{
24+
text: 'Home',
25+
link: '/it/',
26+
},
27+
{
28+
text: 'Introduzione a JS',
29+
collapsible: false,
30+
children: ['/it/jsintro_pt1', '/it/jsintro_pt2', '/it/jsintro_pt3'],
31+
},
32+
{
33+
collapsible: false,
34+
text: 'Tutorial',
35+
children: [
36+
'/it/tut-making-shooter',
37+
'/it/tut-making-platformer',
38+
'/it/tut-making-jettycat',
39+
'/it/tut-polishing-jettycat',
40+
],
41+
},
42+
{
43+
text: "Utilizzare l'editor",
44+
collapsible: false,
45+
children: [
46+
'/it/actions',
47+
'/it/room-editor',
48+
'/it/bitmap-fonts',
49+
'/it/skeletal-animation',
50+
'/it/content-subsystem',
51+
'/it/building-your-game',
52+
'/it/deployment-itch-io',
53+
],
54+
},
55+
]);

0 commit comments

Comments
 (0)