// @ts-check // `@type` JSDoc annotations allow editor autocompletion and type checking // (when paired with `@ts-check`). // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config import {themes as prismThemes} from 'prism-react-renderer'; /** @type {import('@docusaurus/types').Config} */ const config = { title: 'TaskWeaver', tagline: 'A Code-First Agent Framework', favicon: 'img/favicon.ico', staticDirectories: ['static'], // Set the production url of your site here url: 'https://docusaurus.io',//'https://microsoft.github.io', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/TaskWeaver/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'Microsoft', // Usually your GitHub org/user name. projectName: 'TaskWeaver', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'], }, markdown: { mermaid: true, }, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { sidebarPath: './sidebars.js', // Please change this to your repo. // Remove this to remove the "edit this page" links. // sidebarCollapsed: false, editUrl: 'https://github.com/microsoft/TaskWeaver/tree/docs/website/', }, blog: { showReadingTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: 'https://github.com/microsoft/TaskWeaver/tree/docs/website/', }, theme: { customCss: './src/css/custom.css', }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { title: 'TaskWeaver', logo: { alt: 'TaskWeaver Logo', src: 'img/logo.svg', }, items: [ { type: 'docSidebar', sidebarId: 'documentSidebar', position: 'left', label: 'Docs', }, // {to: '/blog', label: 'Blog', position: 'left'}, { href: 'https://github.com/microsoft/taskweaver/', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Docs', items: [ { label: 'Docs', to: '/docs/overview', }, ], }, { title: 'Community', items: [ // { // label: 'Stack Overflow', // href: 'https://stackoverflow.com/questions/tagged/docusaurus', // }, { label: 'Discord', href: 'https://discord.gg/Z56MXmZgMb', }, // { // label: 'Twitter', // href: 'https://twitter.com/docusaurus', // }, ], }, { title: 'More', items: [ // { // label: 'Blog', // to: '/blog', // }, { label: 'GitHub', href: 'https://github.com/microsoft/taskweaver/', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} TaskWeaver`, }, prism: { darkTheme: prismThemes.github, theme: prismThemes.dracula, additionalLanguages: ['bash', 'json', 'yaml'], }, }), themes: [ [ require.resolve("@easyops-cn/docusaurus-search-local"), /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ ({ hashed: true, docsRouteBasePath: "docs", blogRouteBasePath: "blog", docsDir: "docs", blogDir: "blog", searchContextByPaths: [ { label: "Documents", path: "docs", }, { label: "Blog", path: "blogs", }, ], hideSearchBarWithNoSearchContext: true, }), ], '@docusaurus/theme-mermaid' ], }; export default config;