Skip to content

feat: bump deps #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/.vuepress/config.js → docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import { defineUserConfig } from '@vuepress/cli';
import { viteBundler } from '@vuepress/bundler-vite'
import { viteBundler } from '@vuepress/bundler-vite';

import { hope } from 'vuepress-theme-hope';

import themeConfig from './themeConfig';
import theme from './theme.js';

export default defineUserConfig({
title: 'ct.js Documentation',
description: 'Docs, tutorials, guides',
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
plugins: [],
base: '/',
head: [
['script', {
src: '/themeSwitcher.js'
}],
[
'script',
{
src: '/themeSwitcher.js',
},
],
['link', { rel: 'icon', href: '/assets/img/logo.png' }],
],

Expand All @@ -30,12 +26,12 @@ export default defineUserConfig({
'/ru/': {
lang: 'ru-Ru',
title: 'Документация к игровому движку ct.js',
description: 'Референсы, туториалы, гайды'
description: 'Референсы, туториалы, гайды',
},
'/pt_BR/': {
lang: 'pt-BR',
title: 'Documentação ct.js',
description: 'Docs, tutoriais, guias'
description: 'Docs, tutoriais, guias',
},
'/it/': {
lang: 'it',
Expand All @@ -44,11 +40,15 @@ export default defineUserConfig({
},
},

theme: hope(themeConfig),
markdown: {
toc: {
level: [2, 3, 4],
},
},
shouldPrefetch: false

bundler: viteBundler(),

theme,

shouldPrefetch: false,
});
238 changes: 238 additions & 0 deletions docs/.vuepress/configs/en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
import { navbar, sidebar } from 'vuepress-theme-hope';

export const enNavbar = navbar([
{
text: 'Home',
link: '/',
icon: 'home',
},
{
text: 'Get ct.js',
link: 'https://ctjs.rocks',
icon: 'download',
},
{
text: 'Discord',
link: 'https://discord.gg/yuvuDW5',
icon: 'user-group',
},
{
text: 'Forum',
link: 'https://forum.ctjs.rocks/',
icon: 'comments',
},
]);

export const enSidebar = sidebar([
{
link: '/',
text: 'Home',
icon: 'home',
},
{
text: 'Learn Catnip',
collapsible: true,
icon: 'book',
prefix: '/learn-catnip/',
children: ['introduction', 'conditions-and-loops', 'working-with-copies'],
},
{
text: 'Learn JavaScript',
collapsible: true,
icon: 'book',
prefix: '/learn-js/',
children: ['jsintro_pt1', 'jsintro_pt2', 'jsintro_pt3'],
},
{
collapsible: false,
text: 'Tutorials',
icon: 'arrows-turn-to-dots',
prefix: '/tutorials/',
children: [
'making-games-shooter',
'making-games-platformer',
'making-games-jettycat',
'making-games-polishing-jettycat',
],
},
{
text: 'The `core` library',
collapsible: false,
icon: 'certificate',
children: [
'ct-concepts',
'backgrounds',
'behaviors',
'camera',
'emitters',
{
link: '/inputs',
text: 'inputs and actions',
},
'res',
'rooms',
'settings',
'sounds',
'styles',
'tilemaps',
'timer',
'templates',
{
link: '/u',
text: 'u (utilities)',
},
{
link: '/catmoddocs.md',
text: 'Where are the docs for catmods?',
},
],
},
{
text: 'Built-in ct.js classes',
collapsible: false,
icon: 'icons',
children: [
{
link: '/background',
text: 'Background',
},
{
link: '/copy',
text: 'Copy',
},
{
link: '/room',
text: 'Room',
},
],
},
{
text: 'Working with the editor',
collapsible: false,
icon: 'laptop-code',
children: [
'actions',
{
link: '/room-editor',
text: 'Using the room editor',
},
{
link: '/bitmap-fonts',
text: 'Using bitmap fonts',
},
{
link: '/content-subsystem',
text: 'Content editor',
},
'enumerations',
'building-your-game',
'deployment-itch-io',
],
},
{
text: 'Tips & tricks',
collapsible: false,
icon: 'lightbulb',
prefix: '/tips-n-tricks/',
children: [
'game-and-ui-coordinates',
'movement',
'game-pause',
'localstorage',
'viewport-management',
'textures-magic-properties',
'dragging-copies',
'gamedev-resources',
],
},
{
text: 'Technical stuff',
collapsible: true,
icon: 'gears',
children: ['/event-order'],
},
{
text: 'Modding ct.js',
collapsible: true,
icon: 'plug',
prefix: '/modding-ctjs/',
children: [
{
link: 'mod-structure',
text: "Directory structure and module's manifest",
},
{
link: 'events-and-injections',
text: 'Extending ct.js code with injections',
},
{
link: 'settings-and-extensions',
text: 'Settings and additional fields',
},
{
link: 'input-methods',
text: 'Adding new input methods',
},
{
link: 'modded-events',
text: 'Adding new events',
},
{
link: 'typings-and-intellisense',
text: 'Autocompletion and IntelliSense',
},
{
link: 'adding-blocks-to-catnip',
text: 'Adding blocks to catnip',
},
{
link: 'fields-declaration',
text: 'Fields reference',
},
],
},
{
text: 'Troubleshooting',
collapsible: true,
icon: 'hand',
prefix: '/troubleshooting/',
children: [
{
link: 'migration-0to1',
text: 'Migration from 0.x to 1.x',
},
{
link: 'migration-1-2to1-3',
text: 'Migration from 1.2 to 1.3',
},
{
link: 'migration-1to2',
text: 'Migration from 1.x to 2.0',
},
{
link: 'migration-2to3',
text: 'Migration from 2.x to 3.0',
},
{
link: 'migration-3to4',
text: 'Migration from 3.x to 4.0',
},
{
link: 'migration-4to5',
text: 'Migration from 4.0 to 5.0',
},
{
link: 'teared-background',
text: 'Background splits into squares!',
},
{
link: 'leaking-pixels',
text: 'Textures have leaked pixels!',
},
{
link: 'sounds-not-playing',
text: "Sounds don't play at game start!",
},
],
},
]);
3 changes: 3 additions & 0 deletions docs/.vuepress/configs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './en.js';
export * from './ru.js';
export * from './ptBR.js';
55 changes: 55 additions & 0 deletions docs/.vuepress/configs/it.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { navbar, sidebar } from 'vuepress-theme-hope';

export const itNavbar = navbar([
{
text: 'Home',
link: '/it/',
},
{
text: 'Scarica ct.js',
link: 'https://ctjs.rocks',
},
{
text: 'Discord',
link: 'https://discord.gg/yuvuDW5',
},
{
text: 'Forum',
link: 'https://forum.ctjs.rocks/',
},
]);

export const itSidebar = sidebar([
{
text: 'Home',
link: '/it/',
},
{
text: 'Introduzione a JS',
collapsible: false,
children: ['/it/jsintro_pt1', '/it/jsintro_pt2', '/it/jsintro_pt3'],
},
{
collapsible: false,
text: 'Tutorial',
children: [
'/it/tut-making-shooter',
'/it/tut-making-platformer',
'/it/tut-making-jettycat',
'/it/tut-polishing-jettycat',
],
},
{
text: "Utilizzare l'editor",
collapsible: false,
children: [
'/it/actions',
'/it/room-editor',
'/it/bitmap-fonts',
'/it/skeletal-animation',
'/it/content-subsystem',
'/it/building-your-game',
'/it/deployment-itch-io',
],
},
]);
Loading