You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

docusaurus.config.js 6.3 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /** @type {import('@docusaurus/types').DocusaurusConfig} */
  2. const math = require("remark-math");
  3. const katex = require("rehype-katex");
  4. customPostCssPlugin = () => {
  5. return {
  6. name: "custom-postcss",
  7. configurePostCss(options) {
  8. options.plugins.push(require("postcss-preset-env"));
  9. return options;
  10. }
  11. };
  12. }
  13. module.exports = {
  14. title: "AutoGen",
  15. tagline: "Enable Next-Gen Large Language Model Applications",
  16. url: "https://microsoft.github.io",
  17. baseUrl: "/autogen/",
  18. onBrokenLinks: "throw",
  19. onBrokenMarkdownLinks: "warn",
  20. favicon: "img/ag.ico",
  21. organizationName: "Microsoft", // Usually your GitHub org/user name.
  22. projectName: "AutoGen", // Usually your repo name.
  23. scripts: [
  24. {
  25. src: '/autogen/js/custom.js',
  26. async: true,
  27. defer: true,
  28. },
  29. ],
  30. markdown: {
  31. format: 'detect', // Support for MD files with .md extension
  32. },
  33. themeConfig: {
  34. navbar: {
  35. title: "AutoGen",
  36. logo: {
  37. alt: "AutoGen",
  38. src: "img/ag.svg",
  39. },
  40. items: [
  41. {
  42. type: "doc",
  43. docId: "Getting-Started",
  44. position: "left",
  45. label: "Docs",
  46. },
  47. {
  48. type: "doc",
  49. docId: "reference/agentchat/conversable_agent",
  50. position: "left",
  51. label: "API",
  52. },
  53. { to: "blog", label: "Blog", position: "left" },
  54. {
  55. type: "doc",
  56. docId: "FAQ",
  57. position: "left",
  58. label: "FAQ",
  59. },
  60. // {
  61. // to: 'examples',
  62. // label: 'Examples',
  63. // },
  64. {
  65. type: "doc",
  66. docId: "Examples",
  67. position: "left",
  68. label: "Examples",
  69. },
  70. {
  71. to: "docs/notebooks",
  72. position: "left",
  73. label: "Notebooks",
  74. },
  75. {
  76. type: "doc",
  77. position: "left",
  78. docId: "Gallery",
  79. },
  80. {
  81. label: "Other Languages",
  82. type: "dropdown",
  83. position: "right",
  84. items: [
  85. {
  86. label: "Dotnet",
  87. href: "https://microsoft.github.io/autogen-for-net/",
  88. }
  89. ],
  90. },
  91. {
  92. href: "https://github.com/microsoft/autogen",
  93. label: "GitHub",
  94. position: "right",
  95. }
  96. ],
  97. },
  98. footer: {
  99. style: "dark",
  100. links: [
  101. // {
  102. // title: 'Docs',
  103. // items: [
  104. // {
  105. // label: 'Getting Started',
  106. // to: 'docs/getting-started',
  107. // },
  108. // ],
  109. // },
  110. {
  111. title: "Community",
  112. items: [
  113. // // {
  114. // // label: 'Stack Overflow',
  115. // // href: 'https://stackoverflow.com/questions/tagged/pymarlin',
  116. // // },
  117. {
  118. label: "Discord",
  119. href: "https://discord.gg/pAbnFJrkgZ",
  120. },
  121. {
  122. label: "Twitter",
  123. href: "https://twitter.com/pyautogen",
  124. },
  125. ],
  126. },
  127. ],
  128. copyright: `Copyright © ${new Date().getFullYear()} AutoGen Authors | <a target="_blank" style="color:#10adff" href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy and Cookies</a>`,
  129. },
  130. announcementBar: {
  131. id: 'whats_new',
  132. content:
  133. 'What\'s new in AutoGen? Read <a href="/autogen/blog/2024/03/03/AutoGen-Update">this blog</a> for an overview of updates',
  134. backgroundColor: '#fafbfc',
  135. textColor: '#091E42',
  136. isCloseable: true,
  137. },
  138. /* Clarity Config */
  139. clarity: {
  140. ID: "lnxpe6skj1", // The Tracking ID provided by Clarity
  141. }
  142. },
  143. presets: [
  144. [
  145. "@docusaurus/preset-classic",
  146. {
  147. blog: {
  148. showReadingTime: true,
  149. blogSidebarCount: "ALL",
  150. // Adjust any other blog settings as needed
  151. },
  152. docs: {
  153. sidebarPath: require.resolve("./sidebars.js"),
  154. // Please change this to your repo.
  155. editUrl: "https://github.com/microsoft/autogen/edit/main/website/",
  156. remarkPlugins: [math],
  157. rehypePlugins: [katex],
  158. },
  159. theme: {
  160. customCss: require.resolve("./src/css/custom.css"),
  161. },
  162. },
  163. ],
  164. ],
  165. stylesheets: [
  166. {
  167. href: "https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css",
  168. integrity:
  169. "sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc",
  170. crossorigin: "anonymous",
  171. },
  172. ],
  173. plugins: [
  174. [
  175. require.resolve("@easyops-cn/docusaurus-search-local"),
  176. {
  177. // ... Your options.
  178. // `hashed` is recommended as long-term-cache of index file is possible.
  179. hashed: true,
  180. blogDir: "./blog/",
  181. // For Docs using Chinese, The `language` is recommended to set to:
  182. // ```
  183. // language: ["en", "zh"],
  184. // ```
  185. // When applying `zh` in language, please install `nodejieba` in your project.
  186. },
  187. ],
  188. customPostCssPlugin,
  189. [
  190. "@docusaurus/plugin-client-redirects",
  191. {
  192. redirects: [
  193. {
  194. to: "/docs/topics/llm_configuration",
  195. from: ["/docs/llm_endpoint_configuration/"],
  196. },
  197. {
  198. to: "/docs/ecosystem/memgpt/",
  199. from: ["/docs/Ecosystem"],
  200. },
  201. {
  202. to: "/docs/Getting-Started",
  203. from: ["/docs/"],
  204. },
  205. {
  206. to: "/docs/topics/llm_configuration",
  207. from: ["/docs/llm_configuration"],
  208. },
  209. {
  210. to: "/docs/tutorial/chat-termination",
  211. from: ["/docs/tutorial/termination"],
  212. },
  213. {
  214. to: "/docs/tutorial/what-next",
  215. from: ["/docs/tutorial/what-is-next"],
  216. },
  217. {
  218. to: "/docs/topics/non-openai-models/local-lm-studio",
  219. from: ["/docs/topics/non-openai-models/lm-studio"],
  220. },
  221. {
  222. to: "/docs/notebooks/agentchat_nested_chats_chess",
  223. from: ["/docs/notebooks/agentchat_chess"],
  224. }
  225. ],
  226. },
  227. ],
  228. [
  229. 'docusaurus-plugin-clarity',
  230. {
  231. }
  232. ],
  233. ],
  234. };