Skip to content
Snippets Groups Projects
Select Git revision
  • 85b6d5c0d645c0c41b2061a3af1b0b1a844f237e
  • main default protected
  • instances/2025_05
  • instances/2024_11
4 results

docusaurus.config.ts

Blame
  • docusaurus.config.ts 5.58 KiB
    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: 'Introduction to Supercomputing at JSC',
      tagline: 'Hands-On',
      favicon: 'img/logo.ico',
    
      // Set the production url of your site here
      url: 'https://your-docusaurus-site.example.com',
      // Set the /<baseUrl>/ pathname under which your site is served
      // For GitHub pages deployment, it is often '/<projectName>/'
      baseUrl: '/intro2sc-handson',
    
      // GitHub pages deployment config.
      // If you aren't using GitHub pages, you don't need these.
      //organizationName: 'facebook', // Usually your GitHub org/user name.
      //projectName: 'docusaurus', // Usually your repo name.
    
      onBrokenLinks: 'throw',
      onBrokenMarkdownLinks: 'warn',
    
        //plugins
        plugins: [require.resolve('docusaurus-lunr-search')],
    
      // Even if you don't use internationalization, you can use this field to set
      // useful metadata like html lang. For example, if your site is Chinese, you
      // may want to replace "en" with "zh-Hans".
      i18n: {
        defaultLocale: 'en',
        locales: ['en'],
      },
    
      presets: [
        [
          'classic',
          {
            docs: {
              sidebarPath: './sidebars.ts',
              // 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: './src/css/custom.css',
            },
          } satisfies Preset.Options,
        ],
      ],
    
      themes: [
        // ... Your other themes.
    
        ],
      ],
    
      themeConfig: {
        colorMode: {
          defaultMode: 'light',
          disableSwitch: true,
     //     respectPrefersColorScheme: false,
        },
    
        // Replace with your project's social card
        //image: 'img/docusaurus.png',
        navbar: {
          title: 'Home',
    /*      logo: {
            alt: 'My Site Logo',
            src: 'img/logo.svg',
          },*/
          items: [
            {
              type: 'docSidebar',
              sidebarId: 'tutorialSidebar',
              position: 'left',
              label: 'Hands-On',
            },
            {to: '/blog', label: 'Blog', position: 'left'},
          ],
        },
        footer: {
          style: 'dark',
          links: [
       /*     {
              title: 'Docs',
              items: [
                {
                  label: 'Tutorial',
                  to: '/docs/intro',
                },
              ],
            },*/
            {
              title: 'Quiz',
              items: [
                {
                  label: 'Day 1',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/78',
                },
                {
                  label: 'Day 2',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/79',
                },
                {
                  label: 'Day 3',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/72',
                },
              ],
            },
            {
              title: 'Surveys',
              items: [
                {
                  label: 'Day 1 Talks',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/74',
                },
                {
                  label: 'Day 2 Talks',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/75',
                },
                {
                  label: 'Day 3 Talks',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/76',
                },
                {
                  label: 'Day 4 Talks',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/77',
                },
                {
                  label: 'Event in total',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/surveys/73',
                },
              ],
            },
            {
              title: 'Communication',
              items: [
                {
                  label: 'Zoom',
                  href: 'https://fz-juelich-de.zoom.us/j/63566578749?pwd=Vm0vSkFKd1FOYjNkV3ltekhWNTBodz09',
                },
                {
                  label: 'Slack',
                  href: 'https://join.slack.com/t/introtoscmay2024/shared_invite/zt-2inepuzqd-n9RNyjsNCjZABZJ3x6D_vg',
                },
              ],
            },
            {
              title: 'Useful Links',
              items: [
                {
                  label: 'Hands-On',
                  to: '/docs/intro',
                },
                {
                  label: 'Agenda',
                  href: 'https://indico3-jsc.fz-juelich.de/event/149/timetable/#all',
                },
                {
                  label: 'Reservations',
                  href: '/reservations',
                },
                {
                  label: 'Attendance list',
                  href: 'https://gitlab.jsc.fz-juelich.de/hedgedoc/CP2OZecbRJ6pc3scRzAGoQ',
                },
                {
                  label: 'Past course materials',
                  href: 'https://www.fz-juelich.de/en/ias/jsc/news/events/training-courses/2023/supercomputing-2',
                },
              ],
            },
            {
              title: 'More',
              items: [
                {
                  label: 'Authors',
                  href: '/authors',
                },
              ],
            },
          ],
          copyright: `Copyright © ${new Date().getFullYear()} Forschungszentrum Jülich`,
        },
        prism: {
          theme: prismThemes.github,
          darkTheme: prismThemes.dracula,
        },
      } satisfies Preset.ThemeConfig,
    };
    
    export default config;