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