website: updated index.ts, ru_RU.ts, as well as some links (#763)
On the web page there is no link to the translation itself, I familiarized myself with vitepress and edited the necessary configs
This commit is contained in:
@@ -5,6 +5,7 @@ import zh_TW from './zh_TW'
|
||||
import vi_VN from './vi_VN'
|
||||
import id_ID from './id_ID'
|
||||
import ja_JP from './ja_JP'
|
||||
import ru_RU from './ru_RU'
|
||||
|
||||
export default defineConfig({
|
||||
locales: {
|
||||
@@ -43,6 +44,12 @@ export default defineConfig({
|
||||
lang: id_ID.lang,
|
||||
themeConfig: id_ID.themeConfig,
|
||||
description: id_ID.description
|
||||
},
|
||||
ru_RU: {
|
||||
label: 'Русский',
|
||||
lang: ru_RU.lang,
|
||||
themeConfig: ru_RU.themeConfig,
|
||||
description: ru_RU.description
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
61
website/docs/.vitepress/locales/ru_RU.ts
Normal file
61
website/docs/.vitepress/locales/ru_RU.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { createRequire } from 'module'
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const pkg = require('vitepress/package.json')
|
||||
|
||||
export default defineConfig({
|
||||
lang: 'ru-RU',
|
||||
description: 'Решение на основе ядра root для устройств Android GKI.',
|
||||
|
||||
themeConfig: {
|
||||
nav: nav(),
|
||||
|
||||
lastUpdatedText: 'последнее обновление',
|
||||
|
||||
sidebar: {
|
||||
'/ru_RU/guide/': sidebarGuide()
|
||||
},
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/tiann/KernelSU' }
|
||||
],
|
||||
|
||||
footer: {
|
||||
message: 'Выпускается под лицензией GPL3.',
|
||||
copyright: 'Авторские права © 2022-текущее Разработчики KernelSU'
|
||||
},
|
||||
|
||||
editLink: {
|
||||
pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
|
||||
text: 'Редактировать эту страницу на GitHub'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function nav() {
|
||||
return [
|
||||
{ text: 'Руководство', link: '/ru_RU/guide/what-is-kernelsu' },
|
||||
{ text: 'Github', link: 'https://github.com/tiann/KernelSU' }
|
||||
]
|
||||
}
|
||||
|
||||
function sidebarGuide() {
|
||||
return [
|
||||
{
|
||||
text: 'Руководство',
|
||||
items: [
|
||||
{ text: 'Что такое KernelSU?', link: '/ru_RU/guide/what-is-kernelsu' },
|
||||
{ text: 'Установка', link: '/ru_RU/guide/installation' },
|
||||
{ text: 'Как собрать?', link: '/ru_RU/guide/how-to-build' },
|
||||
{ text: 'Реализация в устройствах, не относящихся к GKI', link: '/ru_RU/guide/how-to-integrate-for-non-gki'},
|
||||
{ text: 'Неофициально поддерживаемые устройства', link: '/ru_RU/guide/unofficially-support-devices.md' },
|
||||
{ text: 'Руководство по разработке модулей', link: '/ru_RU/guide/module.md' },
|
||||
{ text: 'Профиль приложений', link: '/ru_RU/guide/app-profile.md' },
|
||||
{ text: 'Выход из циклической загрузки', link: '/ru_RU/guide/rescue-from-bootloop.md' },
|
||||
{ text: 'FAQ', link: '/ru_RU/guide/faq' },
|
||||
{ text: 'Скрытые возможности', link: '/ru_RU/guide/hidden-features' },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user