/ docusaurus.config.js
docusaurus.config.js
  1  // @ts-check
  2  // Note: type annotations allow type checking and IDEs autocompletion
  3  require('dotenv').config()
  4  
  5  /** @type {import('@docusaurus/types').Config} */
  6  const config = {
  7    title: 'assembly.logos.co',
  8    url: 'https://assembly.logos.co/',
  9    baseUrl: '/',
 10  
 11    markdown: {
 12      mermaid: true,
 13    },
 14  
 15    // Even if you don't use internalization, you can use this field to set useful
 16    // metadata like html lang. For example, if your site is Chinese, you may want
 17    // to replace "en" with "zh-Hans".
 18    i18n: {
 19      defaultLocale: 'en',
 20      locales: ['en'],
 21    },
 22  
 23    presets: [
 24      [
 25        '@acid-info/logos-docusaurus-preset',
 26        /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
 27        ({
 28          customSiteConfig: true,
 29          businessUnit: 'Logos',
 30          theme: {
 31            name: 'default',
 32            options: {
 33              customCss: [require.resolve('./src/css/custom.scss')],
 34            },
 35          },
 36          docs: {
 37            id: 'root-pages',
 38            routeBasePath: '/',
 39            path: 'root-pages',
 40          },
 41          og: {},
 42        }),
 43      ],
 44    ],
 45    plugins: [],
 46  
 47    themeConfig:
 48      /** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
 49      ({
 50        colorMode: {
 51          disableSwitch: false,
 52          respectPrefersColorScheme: true,
 53        },
 54        navbar: {
 55          items: [],
 56        },
 57        footer: {
 58          copyright: 'Logos',
 59          links: [
 60            {
 61              items: [
 62                {
 63                  href: 'https://twitter.com/@logos_network',
 64                  label: 'Twitter',
 65                },
 66                {
 67                  href: 'https://lenster.xyz/u/logos-state',
 68                  label: 'Lens',
 69                },
 70                {
 71                  href:
 72                    'https://astral.ninja/npub1ljkmma77fqr79f8wp28hx68lwkymmqztrsyaepdadujz252fak2sxxw4sl',
 73                  label: 'Nostr',
 74                },
 75                {
 76                  href: 'https://github.com/logos-co',
 77                  label: 'Github',
 78                },
 79              ],
 80            },
 81            {
 82              items: [
 83                {
 84                  href: 'https://boards.greenhouse.io/logos',
 85                  label: 'Work with us',
 86                },
 87                {
 88                  href: 'https://guide.logos.co/',
 89                  label: 'Brand Guidelines',
 90                },
 91                {
 92                  href: '/terms',
 93                  label: 'Terms & conditions',
 94                },
 95                {
 96                  href: '/privacy-policy',
 97                  label: 'Privacy Policy',
 98                },
 99              ],
100            },
101          ],
102        },
103      }),
104  
105    stylesheets: [
106      {
107        href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css',
108        type: 'text/css',
109        integrity:
110          'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
111        crossorigin: 'anonymous',
112      },
113    ],
114  }
115  
116  module.exports = config