docusaurus.config.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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",
  8. tagline:
  9. "High performance 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. showLastUpdateAuthor: true,
  34. showLastUpdateTime: true,
  35. sidebarPath: require.resolve("./sidebars.js"),
  36. // Please change this to your repo.
  37. // Remove this to remove the "edit this page" links.
  38. editUrl: "https://github.com/immich-app/immich/tree/main/docs/",
  39. },
  40. // blog: {
  41. // showReadingTime: true,
  42. // editUrl: "https://github.com/immich-app/immich/tree/main/docs/",
  43. // },
  44. theme: {
  45. customCss: require.resolve("./src/css/custom.css"),
  46. },
  47. }),
  48. ],
  49. ],
  50. themeConfig:
  51. /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
  52. ({
  53. announcementBar: {
  54. id: "site_announcement_immich",
  55. content: `⚠️ The project is under <strong>very active</strong> development. Expect bugs and changes. Do not use it as <strong>the only way</strong> to store your photos and videos!`,
  56. backgroundColor: "#593f00",
  57. textColor: "#ffefc9",
  58. isCloseable: false,
  59. },
  60. docs: {
  61. sidebar: {
  62. autoCollapseCategories: false,
  63. },
  64. },
  65. navbar: {
  66. logo: {
  67. alt: "Immich University Logo",
  68. src: "img/color-logo.png",
  69. srcDark: "img/logo.png",
  70. },
  71. items: [
  72. {
  73. to: "/docs/overview/introduction",
  74. position: "right",
  75. label: "Documentation",
  76. },
  77. { to: "/blog", label: "Blog", position: "right" },
  78. {
  79. href: "https://github.com/immich-app/immich",
  80. label: "GitHub",
  81. position: "right",
  82. },
  83. ],
  84. },
  85. footer: {
  86. style: "light",
  87. links: [
  88. {
  89. title: "Overview",
  90. items: [
  91. {
  92. label: "Welcome",
  93. to: "/docs/overview/introduction",
  94. },
  95. {
  96. label: "Installation",
  97. to: "/docs/installation/requirements",
  98. },
  99. ],
  100. },
  101. {
  102. title: "Community",
  103. items: [
  104. {
  105. label: "Discord",
  106. href: "https://discord.com/invite/D8JsnBEuKb",
  107. },
  108. ],
  109. },
  110. {
  111. title: "More",
  112. items: [
  113. {
  114. label: "Blog",
  115. to: "/blog",
  116. },
  117. {
  118. label: "GitHub",
  119. href: "https://github.com/immich-app/immich",
  120. },
  121. ],
  122. },
  123. ],
  124. copyright: `Immich is available as open source under the terms of the MIT License.`,
  125. },
  126. prism: {
  127. theme: lightCodeTheme,
  128. darkTheme: darkCodeTheme,
  129. },
  130. }),
  131. };
  132. module.exports = config;