config.mjs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import { defineConfig } from 'vitepress'
  2. // https://vitepress.dev/reference/site-config
  3. export default defineConfig({
  4. lang: 'en-US',
  5. title: "Pixelfed Docs",
  6. base: "/",
  7. description: "The official Pixelfed documentation",
  8. themeConfig: {
  9. logo: {
  10. light: '/logo-black.png',
  11. dark: '/logo-white.png'
  12. },
  13. siteTitle: 'Docs',
  14. // https://vitepress.dev/reference/default-theme-config
  15. nav: [
  16. { text: 'pixelfed.org', link: 'https://pixelfed.org' },
  17. { text: 'Support', link: 'https://github.com/pixelfed/pixelfed/discussions' },
  18. ],
  19. search: {
  20. provider: 'local'
  21. },
  22. i18nRouting: false,
  23. sidebar: [
  24. {
  25. text: '',
  26. items: [
  27. { text: 'Introduction', link: '/project/introduction' },
  28. { text: 'Community', link: '/project/community' },
  29. ]
  30. },
  31. {
  32. text: 'Running Pixelfed',
  33. items: [
  34. { text: 'Prerequisites', link: '/running-pixelfed/prerequisites' },
  35. { text: 'Installation', link: '/running-pixelfed/installation' },
  36. { text: 'Configuration', link: '/running-pixelfed/configuration' },
  37. { text: 'Administration', link: '/running-pixelfed/administration' },
  38. { text: 'Push Notifications', link: '/running-pixelfed/push-notifications' },
  39. { text: 'CLI Cheatsheet', link: '/running-pixelfed/cli-cheatsheet' },
  40. { text: 'Troubleshooting', link: '/running-pixelfed/troubleshooting' }
  41. ]
  42. },
  43. {
  44. text: 'Spec Compliance',
  45. items: [
  46. { text: 'ActivityPub', link: '/spec/ActivityPub' },
  47. ]
  48. },
  49. ],
  50. socialLinks: [
  51. { icon: 'github', link: 'https://github.com/pixelfed' },
  52. { icon: 'discord', link: 'https://discord.gg/MHvDHaSzmc' },
  53. {
  54. icon: {
  55. svg: '<svg width="20" height="20" version="1.1" id="svg161" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <defs id="defs165" /> <path d="M 10,20 C 4.4772,20 0,15.5228 0,10 0,4.4772 4.4772,0 10,0 15.5228,0 20,4.4772 20,10 20,15.5228 15.5228,20 10,20 Z M 9.206,12.1832 h 1.8344 c 1.728,0 3.1292,-1.364 3.1292,-3.046 0,-1.6824 -1.4008,-3.0464 -3.1292,-3.0464 H 8.3928 c -0.9968,0 -1.8052,0.7868 -1.8052,1.7576 v 6.84 z" fill-rule="evenodd" id="path159" style="stroke-width:0.4" /></svg>'
  56. },
  57. link: 'https://pixelfed.social/@pixelfed'
  58. },
  59. { icon: 'mastodon', link: 'https://mastodon.social/@pixelfed' },
  60. ]
  61. },
  62. locales: {
  63. root: {
  64. label: 'English',
  65. lang: 'en'
  66. },
  67. },
  68. head: [
  69. ['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/favicon.png"}],
  70. ['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/favicon.png"}],
  71. ['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/assets/favicon.png"}],
  72. ['link', { rel: "shortcut icon", href: "/assets/favicon.png"}],
  73. ['meta', { name: "theme-color", content: "#ffffff"}],
  74. ],
  75. })