docusaurus.config.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import {themes as prismThemes} from 'prism-react-renderer';
  2. import type {Config} from '@docusaurus/types';
  3. import type * as Preset from '@docusaurus/preset-classic';
  4. const config: Config = {
  5. title: 'Gazperi',
  6. tagline: 'Educação e consultoria em IA',
  7. favicon: 'img/favicon.svg',
  8. future: {
  9. v4: true,
  10. },
  11. url: 'https://gazperi.com',
  12. baseUrl: '/',
  13. onBrokenLinks: 'throw',
  14. onBrokenMarkdownLinks: 'warn',
  15. i18n: {
  16. defaultLocale: 'pt-BR',
  17. locales: ['pt-BR'],
  18. },
  19. presets: [
  20. [
  21. 'classic',
  22. {
  23. docs: {
  24. sidebarPath: './sidebars.ts',
  25. },
  26. blog: {
  27. showReadingTime: true,
  28. feedOptions: {
  29. type: ['rss', 'atom'],
  30. xslt: true,
  31. },
  32. onInlineTags: 'warn',
  33. onInlineAuthors: 'warn',
  34. onUntruncatedBlogPosts: 'warn',
  35. },
  36. theme: {
  37. customCss: './src/css/custom.css',
  38. },
  39. } satisfies Preset.Options,
  40. ],
  41. ],
  42. themeConfig: {
  43. image: 'img/og-default.png',
  44. colorMode: {
  45. respectPrefersColorScheme: true,
  46. },
  47. navbar: {
  48. title: 'GAZPERI',
  49. logo: {
  50. alt: 'Gazperi',
  51. src: 'img/logo-light.svg',
  52. srcDark: 'img/logo-dark.svg',
  53. },
  54. items: [
  55. {
  56. type: 'docSidebar',
  57. sidebarId: 'tutorialSidebar',
  58. position: 'left',
  59. label: 'Tutorial',
  60. },
  61. {to: '/blog', label: 'Blog', position: 'left'},
  62. ],
  63. },
  64. footer: {
  65. style: 'light',
  66. links: [],
  67. copyright: `© ${new Date().getFullYear()} Gazperi · Vila Velha, ES`,
  68. },
  69. prism: {
  70. theme: prismThemes.github,
  71. darkTheme: prismThemes.dracula,
  72. },
  73. } satisfies Preset.ThemeConfig,
  74. };
  75. export default config;