meltano

Форк
0
/
docusaurus.config.js 
221 строка · 6.3 Кб
1
/* eslint-disable no-undef */
2
// @ts-nocheck
3
// Note: type annotations allow type checking and IDEs autocompletion
4

5
const lightCodeTheme = require('prism-react-renderer/themes/github');
6
const darkCodeTheme = require('prism-react-renderer/themes/oceanicNext');
7

8
/** @type {import('@docusaurus/types').Config} */
9
const config = {
10
  title: 'Meltano Documentation',
11
  tagline: '',
12
  url: 'https://docs.meltano.com',
13
  baseUrl: '/',
14
  onBrokenLinks: 'log',
15
  onBrokenMarkdownLinks: 'log',
16
  favicon: 'img/favicon.png',
17

18
  // Even if you don't use internalization, you can use this field to set useful
19
  // metadata like html lang. For example, if your site is Chinese, you may want
20
  // to replace "en" with "zh-Hans".
21
  i18n: {
22
    defaultLocale: 'en',
23
    locales: ['en'],
24
  },
25

26
  plugins: ['docusaurus-plugin-sass'],
27

28
  presets: [
29
    [
30
      'classic',
31
      /** @type {import('@docusaurus/preset-classic').Options} */
32
      ({
33
        docs: {
34
          routeBasePath: '/',
35
          sidebarPath: require.resolve('./sidebars.js'),
36
          // Please change this to your repo.
37
          // Remove this to remove the "edit this page" links.
38
          editUrl: 'https://github.com/meltano/meltano/blob/main/docs',
39
        },
40
        blog: {
41
          routeBasePath: '/changelog',
42
          blogTitle: 'Changelog',
43
          blogSidebarTitle: 'All Releases',
44
          blogDescription: '',
45
          postsPerPage: 5,
46
          showReadingTime: false,
47
        },
48
        theme: {
49
          customCss: require.resolve('./src/css/custom.css'),
50
        },
51
      }),
52
    ],
53
  ],
54

55
  themeConfig:
56
    /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
57
    ({
58
      colorMode: {
59
        defaultMode: 'light',
60
        disableSwitch: false,
61
        respectPrefersColorScheme: true,
62
      },
63
      // announcementBar: {
64
      //   id: 'meltano_docs_announcment',
65
      //   content: '<a href="https://meltano.com/blog/introducing-meltano-cloud-you-build-the-pipelines-we-manage-the-infrastructure/">⚡ Meltano Cloud is now in Public Beta: you define the pipeline, we manage the infra. Sign up now and claim your 100 free credits! ⚡</a>',
66
      //   backgroundColor: '#311772',
67
      //   textColor: '#F5F7FA',
68
      //   isCloseable: true,
69
      // },
70
      // Replace with your project's social card
71
      image: 'img/docusaurus-social-card.jpg',
72
      navbar: {
73
        title: '| Docs',
74
        logo: {
75
          alt: 'Purple dragon with the meltano wordmark',
76
          src: 'img/meltano.svg',
77
        },
78
        items: [
79
          {
80
            type: 'search',
81
            position: 'right',
82
          },
83
          {
84
            to: '/getting-started/installation/',
85
            label: 'Get Started',
86
            position: 'left',
87
            className: 'header-get-started-link',
88
            'aria-label': 'Get Started',
89
          },
90
          {
91
            to: '/tutorials',
92
            label: 'Tutorials',
93
            position: 'left',
94
            className: 'header-tutorials-link',
95
            'aria-label': 'Tutorials',
96
          },
97
          {
98
            to: '/getting-started/',
99
            label: 'Docs',
100
            position: 'left',
101
            className: 'header-docs-link',
102
            'aria-label': 'Docs',
103
          },
104
          {
105
            to: '/changelog',
106
            label: 'Changelog',
107
            position: 'left',
108
            className: 'header-changelog-link',
109
            'aria-label': 'Changelog',
110
          },
111
          {
112
            href: 'https://github.com/meltano/meltano',
113
            label: ' ',
114
            position: 'right',
115
            className: 'header-github-link',
116
            'aria-label': 'GitHub repository',
117
          },
118
          {
119
            href: 'https://meltano.com/slack',
120
            label: ' ',
121
            position: 'right',
122
            className: 'header-slack-link',
123
            'aria-label': 'Slack community',
124
          },
125
        ],
126
      },
127
      footer: {
128
        style: 'light',
129
        links: [
130
          {
131
            title: 'The Project',
132
            items: [
133
              {
134
                label: 'Our Mission',
135
                to: 'https://handbook.meltano.com/company/#mission',
136
              },
137
              {
138
                label: 'Our Vision',
139
                to: 'https://handbook.meltano.com/company/#vision',
140
              },
141
              {
142
                label: 'Roadmap',
143
                to: 'https://handbook.meltano.com/product/roadmap',
144
              },
145
              {
146
                label: 'Strategy',
147
                to: 'https://handbook.meltano.com/company/#strategy',
148
              },
149
            ],
150
          },
151
          {
152
            title: 'Company',
153
            items: [
154
              {
155
                label: 'Handbook',
156
                href: 'https://handbook.meltano.com/',
157
              },
158
              {
159
                label: 'Values',
160
                href: 'https://handbook.meltano.com/company/values',
161
              },
162
              {
163
                label: 'History',
164
                href: 'https://handbook.meltano.com/timeline',
165
              },
166
            ],
167
          },
168
          {
169
            title: 'Community',
170
            items: [
171
              {
172
                label: 'Slack',
173
                href: 'https://meltano.com/slack',
174
              },
175
              {
176
                label: 'MeltanoLabs',
177
                href: 'https://github.com/MeltanoLabs',
178
              },
179
              {
180
                label: 'Meltano Hub',
181
                href: 'https://hub.meltano.com/',
182
              },
183
            ],
184
          },
185
          {
186
            title: 'Get Help',
187
            items: [
188
              {
189
                label: 'Contact',
190
                href: 'https://meltano.com/slack',
191
              },
192
              {
193
                label: 'StackOverflow',
194
                href: 'https://stackoverflow.com/questions/tagged/meltano',
195
              },
196
            ],
197
          },
198
        ],
199
        copyright: `Copyright © ${new Date().getFullYear()} Meltano.`,
200
      },
201
      prism: {
202
        theme: lightCodeTheme,
203
        darkTheme: darkCodeTheme,
204
      },
205
      docs: {
206
        sidebar: {
207
          hideable: true,
208
        },
209
      },
210
      algolia: {
211
        appId: 'RH6DR0I7R7',
212
        apiKey: '44af7e07962ccb69a33accdb699d3347',
213
        indexName: 'meltanodocs',
214
        // contextualSearch: true,
215
        // searchParameters: {},
216
        // searchPagePath: "search",
217
      },
218
    }),
219
};
220

221
module.exports = config;
222

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.