autogen/website/docusaurus.config.js

175 lines
4.4 KiB
JavaScript
Raw Normal View History

2023-08-27 21:30:54 -04:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
2023-12-12 20:38:47 -08:00
const math = require("remark-math");
const katex = require("rehype-katex");
2023-08-27 21:30:54 -04:00
customPostCssPlugin = () => {
return {
name: "custom-postcss",
configurePostCss(options) {
options.plugins.push(require("postcss-preset-env"));
return options;
}
};
}
2023-08-27 21:30:54 -04:00
module.exports = {
2023-12-12 20:38:47 -08:00
title: "AutoGen",
tagline: "Enable Next-Gen Large Language Model Applications",
url: "https://microsoft.github.io",
baseUrl: "/autogen/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/ag.ico",
organizationName: "Microsoft", // Usually your GitHub org/user name.
projectName: "AutoGen", // Usually your repo name.
scripts: [
{
src: '/autogen/js/custom.js',
async: true,
defer: true,
},
],
markdown: {
format: 'detect', // Support for MD files with .md extension
},
2023-08-27 21:30:54 -04:00
themeConfig: {
navbar: {
2023-12-12 20:38:47 -08:00
title: "AutoGen",
2023-08-27 21:30:54 -04:00
logo: {
2023-12-12 20:38:47 -08:00
alt: "AutoGen",
src: "img/ag.svg",
2023-08-27 21:30:54 -04:00
},
items: [
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "Getting-Started",
position: "left",
label: "Docs",
2023-08-27 21:30:54 -04:00
},
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "reference/agentchat/conversable_agent",
position: "left",
label: "SDK",
},
2023-12-12 20:38:47 -08:00
{ to: "blog", label: "Blog", position: "left" },
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "FAQ",
position: "left",
label: "FAQ",
},
{
2023-12-12 20:38:47 -08:00
href: "https://github.com/microsoft/autogen",
label: "GitHub",
position: "right",
2023-08-27 21:30:54 -04:00
},
// {
// to: 'examples',
// label: 'Examples',
// },
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "Examples",
position: "left",
label: "Examples",
},
{
2023-12-12 20:38:47 -08:00
label: "Resources",
type: "dropdown",
items: [
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "Ecosystem",
},
{
2023-12-12 20:38:47 -08:00
type: "doc",
docId: "Gallery",
},
],
},
2023-08-27 21:30:54 -04:00
],
},
footer: {
2023-12-12 20:38:47 -08:00
style: "dark",
2023-08-27 21:30:54 -04:00
links: [
// {
// title: 'Docs',
// items: [
// {
// label: 'Getting Started',
// to: 'docs/getting-started',
// },
// ],
// },
{
2023-12-12 20:38:47 -08:00
title: "Community",
2023-08-27 21:30:54 -04:00
items: [
2023-12-12 20:38:47 -08:00
// // {
// // label: 'Stack Overflow',
// // href: 'https://stackoverflow.com/questions/tagged/pymarlin',
// // },
2023-08-27 21:30:54 -04:00
{
2023-12-12 20:38:47 -08:00
label: "Discord",
href: "https://discord.gg/pAbnFJrkgZ",
2023-08-27 21:30:54 -04:00
},
{
2023-12-12 20:38:47 -08:00
label: "Twitter",
href: "https://twitter.com/pyautogen",
},
2023-08-27 21:30:54 -04:00
],
},
],
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>`,
2023-08-27 21:30:54 -04:00
},
},
presets: [
[
2023-12-12 20:38:47 -08:00
"@docusaurus/preset-classic",
2023-08-27 21:30:54 -04:00
{
blog: {
showReadingTime: true,
blogSidebarCount: "ALL",
// Adjust any other blog settings as needed
},
2023-08-27 21:30:54 -04:00
docs: {
2023-12-12 20:38:47 -08:00
sidebarPath: require.resolve("./sidebars.js"),
2023-08-27 21:30:54 -04:00
// Please change this to your repo.
2023-12-12 20:38:47 -08:00
editUrl: "https://github.com/microsoft/autogen/edit/main/website/",
2023-08-27 21:30:54 -04:00
remarkPlugins: [math],
rehypePlugins: [katex],
},
theme: {
2023-12-12 20:38:47 -08:00
customCss: require.resolve("./src/css/custom.css"),
2023-08-27 21:30:54 -04:00
},
},
],
],
stylesheets: [
{
2023-12-12 20:38:47 -08:00
href: "https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css",
integrity:
"sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc",
crossorigin: "anonymous",
2023-08-27 21:30:54 -04:00
},
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
2023-12-12 20:38:47 -08:00
blogDir: "./blog/",
2023-08-27 21:30:54 -04:00
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
// When applying `zh` in language, please install `nodejieba` in your project.
},
],
customPostCssPlugin
2023-08-27 21:30:54 -04:00
],
};