docusaurus.config.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. announcementBar: {
  56. id: "site_announcement_immich",
  57. content: `⚠️ The project is under <strong>very active</strong> development. Expect bugs and changes. Do not use as a single source to store of your photos and videos!`,
  58. backgroundColor: "#593f00",
  59. textColor: "#ffefc9",
  60. isCloseable: false,
  61. },
  62. docs: {
  63. sidebar: {
  64. autoCollapseCategories: false,
  65. },
  66. },
  67. navbar: {
  68. logo: {
  69. alt: "Immich University Logo",
  70. src: "img/color-logo.png",
  71. srcDark: "img/logo.png",
  72. },
  73. items: [
  74. {
  75. to: "/docs/overview/introduction",
  76. position: "right",
  77. label: "Documentation",
  78. },
  79. { to: "/blog", label: "Blog", position: "right" },
  80. {
  81. href: "https://github.com/immich-app/immich",
  82. label: "GitHub",
  83. position: "right",
  84. },
  85. ],
  86. },
  87. footer: {
  88. style: "light",
  89. links: [
  90. {
  91. title: "Overview",
  92. items: [
  93. {
  94. label: "Welcome",
  95. to: "/docs/overview/introduction",
  96. },
  97. {
  98. label: "Installation",
  99. to: "/docs/installation/requirements",
  100. },
  101. ],
  102. },
  103. {
  104. title: "Community",
  105. items: [
  106. {
  107. label: "Discord",
  108. href: "https://discord.com/invite/D8JsnBEuKb",
  109. },
  110. ],
  111. },
  112. {
  113. title: "More",
  114. items: [
  115. {
  116. label: "Blog",
  117. to: "/blog",
  118. },
  119. {
  120. label: "GitHub",
  121. href: "https://github.com/immich-app/immich",
  122. },
  123. ],
  124. },
  125. ],
  126. copyright: `Immich is available as open source under the terms of the MIT License.`,
  127. },
  128. prism: {
  129. theme: lightCodeTheme,
  130. darkTheme: darkCodeTheme,
  131. },
  132. }),
  133. };
  134. module.exports = config;