| import {themes as prismThemes} from 'prism-react-renderer'; |
| import type {Config} from '@docusaurus/types'; |
| import type * as Preset from '@docusaurus/preset-classic'; |
|
|
| |
|
|
| const config: Config = { |
| title: 'Piper', |
| tagline: 'AI Pipelines Builder', |
| favicon: 'img/favicon.ico', |
|
|
| |
| url: 'https://piper.my', |
| |
| |
| baseUrl: '/', |
|
|
| |
| |
| organizationName: 'piper', |
| projectName: 'piper', |
|
|
| onBrokenLinks: 'throw', |
| onBrokenMarkdownLinks: 'warn', |
|
|
| |
| |
| |
| i18n: { |
| defaultLocale: 'en', |
| locales: ['en', 'ru', 'de'], |
| localeConfigs: { |
| ru: { label: 'Русский' }, |
| }, |
| }, |
|
|
| presets: [ |
| [ |
| 'classic', |
| { |
| docs: { |
| sidebarPath: './sidebars.ts', |
| |
| |
| editUrl: |
| 'https://huggingface.co/spaces/PiperMy/Academy/edit/main/', |
| }, |
| blog: { |
| showReadingTime: true, |
| feedOptions: { |
| type: ['rss', 'atom'], |
| xslt: true, |
| }, |
| |
| |
| editUrl: |
| 'https://huggingface.co/spaces/PiperMy/Academy/edit/main/', |
| |
| onInlineTags: 'warn', |
| onInlineAuthors: 'warn', |
| onUntruncatedBlogPosts: 'warn', |
| }, |
| theme: { |
| customCss: './src/css/custom.css', |
| }, |
| } satisfies Preset.Options, |
| ], |
| ], |
|
|
| themeConfig: { |
| typography: { |
| fontFamily: 'JetBrains Mono, monospace', |
| }, |
| image: 'img/docusaurus-social-card.jpg', |
| navbar: { |
| title: 'Piper.My', |
| logo: { |
| alt: 'Piper Logo', |
| src: 'img/logo.svg', |
| }, |
| items: [ |
| { |
| type: 'docSidebar', |
| sidebarId: 'tutorialSidebar', |
| position: 'left', |
| label: 'Tutorials', |
| }, |
| {to: '/blog', label: 'Blog', position: 'left'}, |
| { |
| href: 'https://github.com/My-Piper', |
| label: 'GitHub', |
| position: 'right', |
| }, |
| { |
| type: 'localeDropdown', |
| position: 'right', |
| }, |
| ], |
| }, |
| footer: { |
| style: 'dark', |
| links: [ |
| { |
| title: 'Docs', |
| items: [ |
| { |
| label: 'Tutorial', |
| to: '/docs/intro', |
| }, |
| ], |
| }, |
| { |
| title: 'Community', |
| items: [ |
| { |
| label: 'Stack Overflow', |
| href: 'https://stackoverflow.com/questions/tagged/docusaurus', |
| }, |
| { |
| label: 'Discord', |
| href: 'https://discordapp.com/invite/docusaurus', |
| }, |
| { |
| label: 'X', |
| href: 'https://x.com/docusaurus', |
| }, |
| ], |
| }, |
| { |
| title: 'More', |
| items: [ |
| { |
| label: 'Blog', |
| to: '/blog', |
| }, |
| { |
| label: 'GitHub', |
| href: 'https://github.com/facebook/docusaurus', |
| }, |
| ], |
| }, |
| ], |
| copyright: `Copyright © ${new Date().getFullYear()} My Piper, Inc. Built with Docusaurus.`, |
| }, |
| prism: { |
| theme: prismThemes.github, |
| darkTheme: prismThemes.dracula, |
| }, |
| } satisfies Preset.ThemeConfig, |
| }; |
|
|
| export default config; |
|
|