|
| 1 | +// @ts-check |
| 2 | +// `@type` JSDoc annotations allow editor autocompletion and type checking |
| 3 | +// (when paired with `@ts-check`). |
| 4 | +// There are various equivalent ways to declare your Docusaurus config. |
| 5 | +// See: https://docusaurus.io/docs/api/docusaurus-config |
| 6 | + |
| 7 | +import { themes as prismThemes } from "prism-react-renderer"; |
| 8 | + |
| 9 | +/** @type {import('@docusaurus/types').Config} */ |
| 10 | +const config = { |
| 11 | + title: "eliza", |
| 12 | + tagline: "The flexible, scalable AI agent for everyone", |
| 13 | + favicon: "img/favicon.ico", |
| 14 | + |
| 15 | + // Set the production url of your site here |
| 16 | + url: "https://docs.ai16z.ai", |
| 17 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 18 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 19 | + baseUrl: "/", |
| 20 | + |
| 21 | + // GitHub pages deployment config. |
| 22 | + // If you aren't using GitHub pages, you don't need these. |
| 23 | + organizationName: "ai16z", // Usually your GitHub org/user name. |
| 24 | + projectName: "eliza", // Usually your repo name. |
| 25 | + |
| 26 | + onBrokenLinks: "throw", |
| 27 | + onBrokenMarkdownLinks: "warn", |
| 28 | + |
| 29 | + // Even if you don't use internationalization, you can use this field to set |
| 30 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 31 | + // may want to replace "en" with "zh-Hans". |
| 32 | + i18n: { |
| 33 | + defaultLocale: "en", |
| 34 | + locales: ["en"], |
| 35 | + }, |
| 36 | + |
| 37 | + plugins: [ |
| 38 | + [ |
| 39 | + "docusaurus-plugin-typedoc", |
| 40 | + |
| 41 | + // Plugin / TypeDoc options |
| 42 | + { |
| 43 | + entryPoints: ["../src/index.ts"], |
| 44 | + tsconfig: "../tsconfig.json", |
| 45 | + out: "./docs", |
| 46 | + }, |
| 47 | + ], |
| 48 | + ], |
| 49 | + |
| 50 | + presets: [ |
| 51 | + [ |
| 52 | + "classic", |
| 53 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 54 | + ({ |
| 55 | + docs: { |
| 56 | + sidebarPath: "./sidebars.js", |
| 57 | + // Please change this to your repo. |
| 58 | + // Remove this to remove the "edit this page" links. |
| 59 | + editUrl: "https://github.com/ai16z/eliza/tree/main/docs/", |
| 60 | + }, |
| 61 | + theme: { |
| 62 | + customCss: "./src/css/custom.css", |
| 63 | + }, |
| 64 | + }), |
| 65 | + ], |
| 66 | + ], |
| 67 | + |
| 68 | + themeConfig: |
| 69 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 70 | + ({ |
| 71 | + // Replace with your project's social card |
| 72 | + image: "img/docusaurus-social-card.jpg", |
| 73 | + navbar: { |
| 74 | + title: "eliza", |
| 75 | + items: [ |
| 76 | + { |
| 77 | + type: "docSidebar", |
| 78 | + sidebarId: "tutorialSidebar", |
| 79 | + position: "left", |
| 80 | + label: "API Documentation", |
| 81 | + }, |
| 82 | + { |
| 83 | + href: "https://github.com/ai16z/eliza", |
| 84 | + label: "GitHub", |
| 85 | + position: "right", |
| 86 | + }, |
| 87 | + ], |
| 88 | + }, |
| 89 | + footer: { |
| 90 | + style: "dark", |
| 91 | + links: [ |
| 92 | + { |
| 93 | + title: "Docs", |
| 94 | + items: [], |
| 95 | + }, |
| 96 | + |
| 97 | + { |
| 98 | + title: "Community", |
| 99 | + items: [ |
| 100 | + { |
| 101 | + label: "Discord", |
| 102 | + href: "https://discord.gg/xe7HtWru", |
| 103 | + }, |
| 104 | + { |
| 105 | + label: "Twitter", |
| 106 | + href: "https://twitter.com/pmairca", |
| 107 | + }, |
| 108 | + ], |
| 109 | + }, |
| 110 | + { |
| 111 | + title: "More", |
| 112 | + items: [ |
| 113 | + { |
| 114 | + label: "GitHub", |
| 115 | + href: "https://github.com/ai16z/eliza", |
| 116 | + }, |
| 117 | + ], |
| 118 | + }, |
| 119 | + ], |
| 120 | + copyright: `Copyright © ${new Date().getFullYear()} ai16z.ai`, |
| 121 | + }, |
| 122 | + prism: { |
| 123 | + theme: prismThemes.github, |
| 124 | + darkTheme: prismThemes.dracula, |
| 125 | + }, |
| 126 | + }), |
| 127 | +}; |
| 128 | + |
| 129 | +export default config; |
0 commit comments