docusaurus.config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // @ts-check
  2. // Note: type annotations allow type checking and IDEs autocompletion
  3. const lightCodeTheme = require("prism-react-renderer/themes/github");
  4. const darkCodeTheme = require("prism-react-renderer/themes/dracula");
  5. /** @type {import('@docusaurus/types').Config} */
  6. const config = {
  7. title: "Immich Documentation",
  8. tagline:
  9. "Self-hosted photo and video backup solution directly from your mobile phone",
  10. url: "https://documentation.immich.app",
  11. baseUrl: "/",
  12. onBrokenLinks: "throw",
  13. onBrokenMarkdownLinks: "warn",
  14. favicon: "img/favicon.png",
  15. // GitHub pages deployment config.
  16. // If you aren't using GitHub pages, you don't need these.
  17. organizationName: "immich-app", // Usually your GitHub org/user name.
  18. projectName: "immich", // Usually your repo name.
  19. deploymentBranch: "main",
  20. // Even if you don't use internalization, you can use this field to set useful
  21. // metadata like html lang. For example, if your site is Chinese, you may want
  22. // to replace "en" with "zh-Hans".
  23. i18n: {
  24. defaultLocale: "en",
  25. locales: ["en"],
  26. },
  27. presets: [
  28. [
  29. "classic",
  30. /** @type {import('@docusaurus/preset-classic').Options} */
  31. ({
  32. docs: {
  33. sidebarPath: require.resolve("./sidebars.js"),
  34. // Please change this to your repo.
  35. // Remove this to remove the "edit this page" links.
  36. editUrl:
  37. "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
  38. },
  39. blog: {
  40. showReadingTime: true,
  41. // Please change this to your repo.
  42. // Remove this to remove the "edit this page" links.
  43. editUrl:
  44. "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
  45. },
  46. theme: {
  47. customCss: require.resolve("./src/css/custom.css"),
  48. },
  49. }),
  50. ],
  51. ],
  52. themeConfig:
  53. /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
  54. ({
  55. docs: {
  56. sidebar: {
  57. autoCollapseCategories: false,
  58. },
  59. },
  60. navbar: {
  61. title: "Immich Documentation",
  62. logo: {
  63. alt: "Immich University Logo",
  64. src: "img/logo.png",
  65. },
  66. items: [
  67. {
  68. to: "/docs/overview/introduction",
  69. position: "right",
  70. label: "Documentation",
  71. },
  72. { to: "/blog", label: "Blog", position: "right" },
  73. {
  74. href: "https://github.com/immich-app/immich",
  75. label: "GitHub",
  76. position: "right",
  77. },
  78. ],
  79. },
  80. footer: {
  81. style: "dark",
  82. links: [
  83. {
  84. title: "Overview",
  85. items: [
  86. {
  87. label: "Welcome",
  88. to: "/docs/overview/introduction",
  89. },
  90. {
  91. label: "Installation",
  92. to: "/docs/installation/requirements",
  93. },
  94. ],
  95. },
  96. {
  97. title: "Community",
  98. items: [
  99. {
  100. label: "Discord",
  101. href: "https://discord.com/invite/D8JsnBEuKb",
  102. },
  103. ],
  104. },
  105. {
  106. title: "More",
  107. items: [
  108. {
  109. label: "Blog",
  110. to: "/blog",
  111. },
  112. {
  113. label: "GitHub",
  114. href: "https://github.com/immich-app/immich",
  115. },
  116. ],
  117. },
  118. ],
  119. copyright: `Alex Tran - For my family`,
  120. },
  121. prism: {
  122. theme: lightCodeTheme,
  123. darkTheme: darkCodeTheme,
  124. },
  125. }),
  126. };
  127. module.exports = config;