Skip to content

Commit

Permalink
а ой
Browse files Browse the repository at this point in the history
  • Loading branch information
FIXxp committed Feb 17, 2024
1 parent d0d5bda commit b232bcc
Show file tree
Hide file tree
Showing 16 changed files with 4,073 additions and 155 deletions.
113 changes: 113 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import { defineUserConfig } from "vuepress";
import { defaultTheme } from "@vuepress/theme-default";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";

export default defineUserConfig({
head: [
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `/images/icons/favicon-16x16.png`, }],
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: `/images/icons/favicon-32x32.png`, }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: `/images/icons/apple-touch-icon.png`, }],
['link', { rel: 'manifest', href: `/manifest.webmanifest`, }],
['link', { rel: 'mask-icon', color: '#5bbad5', href: `/images/icons/safari-pinned-tab.svg`, }],
['link', { rel: 'shortcut icon', href: `/images/icons/favicon.ico`, }],
['meta', { name: 'apple-mobile-web-app-title', content: 'GravitLauncher Wiki' }],
['meta', { name: 'application-name', content: 'GravitLauncher Wiki' }],
['meta', { name: 'msapplication-TileColor', content: '#603cba' }],
['meta', { name: 'msapplication-config', content: '/images/icons/browserconfig.xml' }],
['meta', { name: 'theme-color', content: '#ffffff' }],
['meta', { property: 'og:title', content: 'GravitLauncher Wiki' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:url', content: 'https://gravitlauncher.com/' }],
['meta', { property: 'og:image', content: 'https://gravitlauncher.com/images/logo.png' }],
['meta', { property: 'og:image:width', content: '512' }],
['meta', { property: 'og:image:height', content: '512' }],
],
lang: 'ru_RU',
title: 'GravitLauncher Wiki',
description: 'GravitLauncher Wiki',
port: '8080', //Порт на котором запускается VuePress
theme: defaultTheme({
repo: 'GravitLauncher/Launcher',
docsRepo: 'https://github.com/GravitLauncher/LauncherWiki',
docsBranch: 'main',
docsDir: 'docs',
editLinkPattern: ':repo/edit/:branch/:path',
locales: {
'/': {
editLinkText: 'Измените эту страницу на GitHub',
lastUpdatedText: "Последнее обновление",
notFound: [
"Здесь ничего нет.",
"Как мы тут оказались?",
"Похоже, у нас есть несколько неработающих ссылок."
],
backToHome: "Вернуться на главную",
openInNewWindow: "открыть в новом окне",
toggleDarkMode: "переключить темный режим",
toggleSidebar: "переключить боковую панель",
contributors: false,
contributorsText: "Спонсоры",
},
},
logo: 'images/logo.png',
navbar: [
{
text: 'Руководство',
children: [
'/install/README.md',
'/auth/README.md',
'/clientbuild/README.md',
'/servers/README.md',
'/runtime/README.md',
'/other/README.md',
'/modules/README.md',
'/dev/README.md',
],
},
{
text: 'Зеркало',
link: 'https://mirror.gravitlauncher.com/',
},
{
text: 'Discord',
link: 'https://discord.gg/b9QG4ygY75',
},
],
sidebar: {
'/': [
{
text: 'Руководство',
collapsible: false,
children: [
'/install/README.md',
'/auth/README.md',
'/clientbuild/README.md',
'/servers/README.md',
'/runtime/README.md',
'/other/README.md',
'/modules/README.md',
'/dev/README.md',
],
},
],
},
}),
plugins: [
docsearchPlugin({
appId: 'H9GISVMWXN',
apiKey: '256b831b5e9c45c225d0a55f2de0d4b0',
indexName: 'gravitlauncher1',
debug: false,
locales: {
'/': {
placeholder: 'Поиск',
translations: {
button: {
buttonText: 'Поиск',
},
},
},
},
}),
]
})
47 changes: 5 additions & 42 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,7 @@ module.exports = {
],
["link", { rel: "manifest", href: "/manifest.webmanifest" }],
],
},
"/en/": {
lang: "en-US",
title: "GravitLauncher Wiki",
description: "A good minecraft launcher for your project",
head: [
["link", { rel: "icon", href: "/favicon.ico", type: "image/x-icon" }],
["link", { rel: "shortcut icon", href: "/favicon.ico" }],
["meta", { name: "theme-color", content: "#6b72f2" }],
["meta", { name: "msapplication-TileColor", content: "#6b72f2" }],
[
"script",
{ type: "text/javascript", async: "" },
'(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");ym(86283189, "init", {clickmap:true,trackLinks:true,accurateTrackBounce:true,webvisor:true});',
],
["link", { rel: "manifest", href: "/manifest_en.webmanifest" }],
],
},
}
},
theme: defaultTheme({
// lastUpdated: false,
Expand All @@ -49,17 +32,13 @@ module.exports = {
sidebar: sidebarRu,
selectLanguageName: "Русский",
lastUpdatedText: "Последнее обновление",
},
"/en/": {
sidebar: sidebarEn,
selectLanguageName: "English",
},
}
},
contributors: true,
logo: "/logo.avif",
navbar: [
{
text: "Хостинг облачных VDS/VPS серверов",
text: "VDS для лаунчера",
link: "https://vdsina.ru/?partner=f15513zd48",
},
{
Expand All @@ -69,20 +48,7 @@ module.exports = {
{
text: "GitHub",
link: "https://github.com/GravitLauncher/Launcher",
},
{
text: `v5.2.12`,
children: [
{
text: "Changelog",
link: "https://github.com/GravitLauncher/Launcher/releases/tag/v5.2.12",
},
{
text: "v6.0.0",
link: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
},
],
},
}
],
}),
markdown: {
Expand All @@ -96,10 +62,7 @@ module.exports = {
locales: {
"/": {
placeholder: "Поиск",
},
"/en/": {
placeholder: "Search",
},
}
},
}),
],
Expand Down
37 changes: 0 additions & 37 deletions docs/.vuepress/configs/sidebar/en.ts

This file was deleted.

1 change: 0 additions & 1 deletion docs/.vuepress/configs/sidebar/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./en";
export * from "./ru";
29 changes: 11 additions & 18 deletions docs/.vuepress/configs/sidebar/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,27 @@ import type { SidebarConfig } from "@vuepress/theme-default";

export const sidebarRu: SidebarConfig = [
{
text: "Основы",
children: [
"/guide/getting-started.md",
"/guide/configuration.md",
"/guide/directory-structure.md",
"/guide/auth.md",
"/guide/nginx.md",
"/guide/clients.md",
"/guide/servers.md",
"/guide/commands.md",
],
text: 'Руководство',
children: [
'/install/README.md',
'/auth/README.md',
'/clientbuild/README.md',
'/servers/README.md',
'/other/README.md',
],
},
{
text: "Для продвинутых",
children: [
"/guide/sign.md",
"/guide/runtime.md",
"/guide/launchermodules.md"
'/dev/README.md',
'/runtime/README.md',
'/modules/README.md',
],
},
{
text: "Полезный материал",
children: [
"/guide/useful.md",
{
text: "Генератор конфигурации",
link: "https://config.gravit-launcher.ru/",
},
{
text: "Список изменений",
link: "/guide/changelog.html",
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
--navbar-padding-h: 1.5rem;
--sidebar-width: 20rem;
--sidebar-width-mobile: calc(var(--sidebar-width) * 0.82);
--content-width: 858px;
--content-width: 1200px;
--homepage-width: 960px;
}
a{
Expand Down
17 changes: 8 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
---
lang: ru-RU
home: true
title: Главная
heroImage: /logo.avif
description: Лаунчер написан на Java с использованием технологии JavaFX, за счёт чего обладает широкими возможностями кастомизации и безупречной производительностью. С помощью умной обвязки, Вы можете скачать клиенты и настроить сервера всего в несколько команд, не компилируя исходники и не меняя классы клиента!
actions:
- text: Начало работы
link: /guide/getting-started.html
link: /install/
type: primary
features:
- title: Кроссплатформенность
details: Работает везде, начиная от Linux и заканчивая Вашей кофеваркой
- title: Безопасность
details: Поддержка нативной библиотеки защиты AntiInject и защита от распространенных методов взлома
- title: Кастомизируемость
details: Лаунчер написан на Java с использованием технологии JavaFX, за счёт чего обладает широкими возможностями кастомизации
---
- title: 🔥 Версии
details: Поддерживаются все популярные версии Minecraft начиная от 1.7.10 заканчивая версией Minecraft 1.20.
- title: 🔒 Безопасность
details: Поддержка нативной защиты, шифрования рантайма, обфускации ProGuard, подписи .jar/.exe и т.д.
- title: 🔧 Кастомизируемость
details: Лаунчер написан на Java с использованием технологии JavaFX, за счёт чего обладает широкими возможностями кастомизации.
---
Loading

0 comments on commit b232bcc

Please sign in to comment.