zh_CN.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { createRequire } from 'module'
  2. import { defineConfig } from 'vitepress'
  3. const require = createRequire(import.meta.url)
  4. const pkg = require('vitepress/package.json')
  5. export default defineConfig({
  6. lang: 'zh-CN',
  7. description: '一个基于内核,为安卓 GKI 准备的 root 方案。',
  8. themeConfig: {
  9. nav: nav(),
  10. lastUpdatedText: '最后更新',
  11. sidebar: {
  12. '/zh_CN/guide/': sidebarGuide()
  13. },
  14. socialLinks: [
  15. { icon: 'github', link: 'https://github.com/tiann/KernelSU' }
  16. ],
  17. footer: {
  18. message: '在 GPL3 许可证下发布。',
  19. copyright: 'Copyright © 2022-现在 KernelSU 开发者'
  20. },
  21. editLink: {
  22. pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
  23. text: '在 GitHub 中编辑本页'
  24. }
  25. }
  26. })
  27. function nav() {
  28. return [
  29. { text: '指南', link: '/zh_CN/guide/what-is-kernelsu' },
  30. ]
  31. }
  32. function sidebarGuide() {
  33. return [
  34. {
  35. text: 'Guide',
  36. items: [
  37. { text: '什么是 KernelSU?', link: '/zh_CN/guide/what-is-kernelsu' },
  38. { text: 'KernelSU 模块与 Magisk 的差异', link: '/zh_CN/guide/difference-with-magisk' },
  39. { text: '安装', link: '/zh_CN/guide/installation' },
  40. { text: '如何构建?', link: '/zh_CN/guide/how-to-build' },
  41. { text: '如何为非GKI设备集成 KernelSU', link: '/zh_CN/guide/how-to-integrate-for-non-gki' },
  42. { text: '非官方支持设备', link: '/zh_CN/guide/unofficially-support-devices.md' },
  43. { text: '模块开发指南', link: '/zh_CN/guide/module.md' },
  44. { text: '模块 Web 界面', link: '/zh_CN/guide/module-webui.md' },
  45. { text: 'App Profile', link: '/zh_CN/guide/app-profile.md' },
  46. { text: '救砖', link: '/zh_CN/guide/rescue-from-bootloop.md' },
  47. { text: '常见问题', link: '/zh_CN/guide/faq' },
  48. { text: '隐藏功能', link: '/zh_CN/guide/hidden-features' },
  49. ]
  50. }
  51. ]
  52. }