en.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: 'en-US',
  7. description: 'A kernel-based root solution for Android GKI devices.',
  8. themeConfig: {
  9. nav: nav(),
  10. lastUpdatedText: 'last Updated',
  11. sidebar: {
  12. '/guide/': sidebarGuide()
  13. },
  14. socialLinks: [
  15. { icon: 'github', link: 'https://github.com/tiann/KernelSU' }
  16. ],
  17. footer: {
  18. message: 'Released under the GPL3 License.',
  19. copyright: 'Copyright © 2022-present KernelSU Developers'
  20. },
  21. editLink: {
  22. pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
  23. text: 'Edit this page on GitHub'
  24. }
  25. }
  26. })
  27. function nav() {
  28. return [
  29. { text: 'Guide', link: '/guide/what-is-kernelsu' },
  30. ]
  31. }
  32. function sidebarGuide() {
  33. return [
  34. {
  35. text: 'Guide',
  36. items: [
  37. { text: 'What is KernelSU?', link: '/guide/what-is-kernelsu' },
  38. { text: 'Difference with Magisk', link: '/guide/difference-with-magisk' },
  39. { text: 'Installation', link: '/guide/installation' },
  40. { text: 'How to build?', link: '/guide/how-to-build' },
  41. { text: 'Intergrate for non-GKI devices', link: '/guide/how-to-integrate-for-non-gki'},
  42. { text: 'Unofficially supported devices', link: '/guide/unofficially-support-devices.md' },
  43. { text: 'Module Guide', link: '/guide/module.md' },
  44. { text: 'Module WebUI', link: '/guide/module-webui.md' },
  45. { text: 'App Profile', link: '/guide/app-profile.md' },
  46. { text: 'Rescue from bootloop', link: '/guide/rescue-from-bootloop.md' },
  47. { text: 'FAQ', link: '/guide/faq' },
  48. { text: 'Hidden features', link: '/guide/hidden-features' },
  49. ]
  50. }
  51. ]
  52. }