/ 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: 'TITLE',
 8    url: 'https://url',
 9    baseUrl: '/',
10  
11    customFields: {
12      ghostAPiKey: process.env.GHOST_API_KEY,
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          businessUnit: 'Logos',
29          theme: {
30            name: 'default',
31            options: {
32              customCss: [require.resolve('./src/css/custom.scss')],
33            },
34          },
35        }),
36      ],
37    ],
38  
39    themeConfig:
40      /** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
41      ({}),
42  }
43  
44  module.exports = config