| const lightCodeTheme = require('prism-react-renderer/themes/github'); |
| const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| |
| /** @type {import('@docusaurus/types').DocusaurusConfig} */ |
| module.exports = { |
| title: 'Casbin Mesh', |
| tagline: 'Dinosaurs are cool', |
| url: 'https://your-docusaurus-test-site.com', |
| baseUrl: '/', |
| onBrokenLinks: 'throw', |
| onBrokenMarkdownLinks: 'warn', |
| favicon: 'img/logo.svg', |
| organizationName: 'facebook', // Usually your GitHub org/user name. |
| projectName: 'Casbin Mesh', // Usually your repo name. |
| i18n: { |
| defaultLocale: 'en', |
| locales: ['en', 'zh-CN'], |
| }, |
| themeConfig: { |
| navbar: { |
| title: 'Casbin Mesh', |
| logo: { |
| alt: 'My Site Logo', |
| src: 'img/logo.svg', |
| }, |
| items: [ |
| { |
| type: 'doc', |
| docId: 'intro', |
| position: 'left', |
| label: 'Docs', |
| }, |
| { |
| type: 'localeDropdown', |
| position: 'right', |
| }, |
| { |
| href: 'https://github.com/facebook/docusaurus', |
| label: 'GitHub', |
| position: 'right', |
| }, |
| ], |
| }, |
| footer: { |
| logo: { |
| src: 'https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg', |
| href: 'https://vercel.com?utm_source=casbin-mesh&utm_campaign=oss', |
| }, |
| style: 'dark', |
| copyright: `Copyright © ${new Date().getFullYear()} Casbin Mesh, Inc. Built with Docusaurus.`, |
| }, |
| prism: { |
| theme: lightCodeTheme, |
| darkTheme: darkCodeTheme, |
| }, |
| }, |
| presets: [ |
| [ |
| '@docusaurus/preset-classic', |
| { |
| docs: { |
| routeBasePath:'/', |
| sidebarPath: require.resolve('./sidebars.js'), |
| // Please change this to your repo. |
| editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', |
| }, |
| blog: { |
| showReadingTime: true, |
| // Please change this to your repo. |
| editUrl: |
| 'https://github.com/facebook/docusaurus/edit/main/website/blog/', |
| }, |
| theme: { |
| customCss: require.resolve('./src/css/custom.css'), |
| }, |
| }, |
| ], |
| ], |
| }; |