Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
docusaurus.config.js 3.49 KiB
Newer Older
  • Learn to ignore specific revisions
  • // @ts-check
    // Note: type annotations allow type checking and IDEs autocompletion
    
    const lightCodeTheme = require('prism-react-renderer/themes/github');
    const darkCodeTheme = require('prism-react-renderer/themes/dracula');
    
    /** @type {import('@docusaurus/types').Config} */
    const config = {
      title: 'Lydra | Artisans DevOps',
      tagline: 'Dinosaurs are cool',
      url: process.env.DOCUSAURUS_URL || 'https://new.lydra.fr"',
      baseUrl: process.env.DOCUSAURUS_BASEURL || '/',
      onBrokenLinks: 'throw',
      onBrokenMarkdownLinks: 'warn',
    
      favicon: 'img/favicon.png',
    
      organizationName: 'Lydra/www', // Usually your GitHub org/user name.
      projectName: 'Site lydra.fr', // Usually your repo name.
    
      i18n: {
        defaultLocale: 'fr',
        locales: ['fr'],
      },
    
      presets: [
        [
          'classic',
          /** @type {import('@docusaurus/preset-classic').Options} */
          ({
            docs: {
              sidebarPath: require.resolve('./sidebars.js'),
              // Please change this to your repo.
              // Remove this to remove the "edit this page" links.
              editUrl:
                'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
            },
            blog: {
              showReadingTime: true,
              // Please change this to your repo.
              // Remove this to remove the "edit this page" links.
              editUrl:
                'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
            },
            theme: {
              customCss: require.resolve('./src/css/custom.css'),
            },
          }),
        ],
      ],
    
      themeConfig:
        /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
        ({
          colorMode: {
            defaultMode: 'dark',
            respectPrefersColorScheme: false,
          },
          navbar: {
            logo: {
    
              alt: 'Lydra Logo',
              src: 'img/logo_lydra.svg',
    
            },
            items: [
              {
                type: 'doc',
                docId: 'intro',
                position: 'left',
                label: 'Tutorial',
              },
              {to: '/blog', label: 'Blog', position: 'left'},
              {
                href: 'https://github.com/facebook/docusaurus',
                label: 'GitHub',
                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: 'Twitter',
                    href: 'https://twitter.com/docusaurus',
                  },
                ],
              },
              {
                title: 'More',
                items: [
                  {
                    label: 'Blog',
                    to: '/blog',
                  },
                  {
                    label: 'GitHub',
                    href: 'https://github.com/facebook/docusaurus',
                  },
                ],
              },
            ],
            copyright: `Copyright © ${new Date().getFullYear()} Lydra. Tous droits réservés. `,
          },
          prism: {
            theme: lightCodeTheme,
            darkTheme: darkCodeTheme,
          },
        }),
    };
    
    module.exports = config;