|
|
|
|
|
|
|
|
|
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer'; |
|
|
|
|
|
const config = { |
|
title: 'TaskWeaver', |
|
tagline: 'A Code-First Agent Framework', |
|
favicon: 'img/favicon.ico', |
|
staticDirectories: ['static'], |
|
|
|
|
|
url: 'https://docusaurus.io', |
|
|
|
|
|
baseUrl: '/TaskWeaver/', |
|
|
|
|
|
|
|
organizationName: 'Microsoft', |
|
projectName: 'TaskWeaver', |
|
|
|
onBrokenLinks: 'throw', |
|
onBrokenMarkdownLinks: 'warn', |
|
|
|
|
|
|
|
|
|
i18n: { |
|
defaultLocale: 'en', |
|
locales: ['en'], |
|
}, |
|
|
|
markdown: { |
|
mermaid: true, |
|
}, |
|
|
|
presets: [ |
|
[ |
|
'classic', |
|
|
|
({ |
|
docs: { |
|
sidebarPath: './sidebars.js', |
|
|
|
|
|
|
|
editUrl: |
|
'https://github.com/microsoft/TaskWeaver/tree/docs/website/', |
|
}, |
|
blog: { |
|
showReadingTime: true, |
|
|
|
|
|
editUrl: |
|
'https://github.com/microsoft/TaskWeaver/tree/docs/website/', |
|
}, |
|
theme: { |
|
customCss: './src/css/custom.css', |
|
}, |
|
}), |
|
], |
|
], |
|
|
|
themeConfig: |
|
|
|
({ |
|
|
|
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', |
|
}, |
|
|
|
{ |
|
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: 'Discord', |
|
href: 'https://discord.gg/Z56MXmZgMb', |
|
}, |
|
|
|
|
|
|
|
|
|
], |
|
}, |
|
{ |
|
title: 'More', |
|
items: [ |
|
|
|
|
|
|
|
|
|
{ |
|
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"), |
|
|
|
({ |
|
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; |
|
|