docusaurus.config.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import type * as Preset from "@docusaurus/preset-classic";
  2. import type { Config } from "@docusaurus/types";
  3. import { themes as prismThemes } from "prism-react-renderer";
  4. const config: Config = {
  5. title: "OpenDevin",
  6. tagline: "Code Less, Make More",
  7. favicon: "img/logo.png",
  8. // Set the production url of your site here
  9. url: "https://OpenDevin.github.io",
  10. baseUrl: "/OpenDevin/",
  11. // GitHub pages deployment config.
  12. organizationName: "OpenDevin",
  13. projectName: "OpenDevin",
  14. trailingSlash: false,
  15. onBrokenLinks: "throw",
  16. onBrokenMarkdownLinks: "warn",
  17. // Even if you don't use internationalization, you can use this field to set
  18. // useful metadata like html lang. For example, if your site is Chinese, you
  19. // may want to replace "en" with "zh-Hans".
  20. i18n: {
  21. defaultLocale: "en",
  22. locales: ["en"],
  23. },
  24. presets: [
  25. [
  26. "classic",
  27. {
  28. docs: {
  29. path: "modules",
  30. routeBasePath: "modules",
  31. sidebarPath: "./sidebars.ts",
  32. exclude: [
  33. // '**/_*.{js,jsx,ts,tsx,md,mdx}',
  34. // '**/_*/**',
  35. "**/*.test.{js,jsx,ts,tsx}",
  36. "**/__tests__/**",
  37. ],
  38. },
  39. blog: {
  40. showReadingTime: true,
  41. },
  42. theme: {
  43. customCss: "./src/css/custom.css",
  44. },
  45. } satisfies Preset.Options,
  46. ],
  47. ],
  48. themeConfig: {
  49. image: "img/docusaurus.png",
  50. navbar: {
  51. title: "OpenDevin",
  52. logo: {
  53. alt: "OpenDevin",
  54. src: "img/logo.png",
  55. },
  56. items: [
  57. {
  58. type: "docSidebar",
  59. sidebarId: "docsSidebar",
  60. position: "left",
  61. label: "Docs",
  62. },
  63. {
  64. type: "docSidebar",
  65. sidebarId: "apiSidebar",
  66. position: "left",
  67. label: "Codebase",
  68. },
  69. { to: "/faq", label: "FAQ", position: "left" },
  70. {
  71. href: "https://github.com/OpenDevin/OpenDevin",
  72. label: "GitHub",
  73. position: "right",
  74. },
  75. ],
  76. },
  77. footer: {
  78. style: "dark",
  79. links: [
  80. {
  81. title: "OpenDevin",
  82. items: [
  83. {
  84. label: "Docs",
  85. to: "/modules/usage/intro",
  86. },
  87. ],
  88. },
  89. {
  90. title: "Community",
  91. items: [
  92. {
  93. label: "Slack",
  94. href: "https://join.slack.com/t/opendevin/shared_invite/zt-2ggtwn3k5-PvAA2LUmqGHVZ~XzGq~ILw"
  95. },
  96. {
  97. label: "Discord",
  98. href: "https://discord.gg/ESHStjSjD4",
  99. },
  100. ],
  101. },
  102. {
  103. title: "More",
  104. items: [
  105. {
  106. label: "GitHub",
  107. href: "https://github.com/OpenDevin/OpenDevin",
  108. },
  109. ],
  110. },
  111. ],
  112. copyright: `Copyright © ${new Date().getFullYear()} OpenDevin`,
  113. },
  114. prism: {
  115. theme: prismThemes.oneLight,
  116. darkTheme: prismThemes.oneDark,
  117. },
  118. } satisfies Preset.ThemeConfig,
  119. };
  120. export default config;