config.mjs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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: 'Code of Conduct', link: '/CODE_OF_CONDUCT' },
  29. { text: 'Community', link: '/project/community' },
  30. { text: 'Documentation', link: '/project/documentation' },
  31. ]
  32. },
  33. {
  34. text: 'Running Pixelfed',
  35. items: [
  36. { text: 'Prerequisites', link: '/running-pixelfed/prerequisites' },
  37. { text: 'Installation', link: '/running-pixelfed/installation' },
  38. { text: 'Configuration', link: '/running-pixelfed/configuration' },
  39. { text: 'Administration', link: '/running-pixelfed/administration' },
  40. { text: 'Push Notifications', link: '/running-pixelfed/push-notifications' },
  41. { text: 'CLI Cheatsheet', link: '/running-pixelfed/cli-cheatsheet' },
  42. { text: 'Troubleshooting', link: '/running-pixelfed/troubleshooting' }
  43. ]
  44. },
  45. {
  46. text: 'Spec Compliance',
  47. items: [
  48. { text: 'ActivityPub', link: '/spec/ActivityPub' },
  49. ]
  50. },
  51. ],
  52. socialLinks: [
  53. { icon: 'github', link: 'https://github.com/pixelfed' },
  54. { icon: 'discord', link: 'https://discord.gg/MHvDHaSzmc' },
  55. {
  56. icon: {
  57. 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>'
  58. },
  59. link: 'https://pixelfed.social/@pixelfed'
  60. },
  61. { icon: 'mastodon', link: 'https://mastodon.social/@pixelfed' },
  62. ]
  63. },
  64. locales: {
  65. root: {
  66. label: 'English',
  67. lang: 'en'
  68. },
  69. },
  70. head: [
  71. ['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/favicon.png"}],
  72. ['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/favicon.png"}],
  73. ['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/assets/favicon.png"}],
  74. ['link', { rel: "shortcut icon", href: "/assets/favicon.png"}],
  75. ['meta', { name: "theme-color", content: "#ffffff"}],
  76. ],
  77. })