Skip to content

Commit d766ac2

Browse files
committed
test2
1 parent 82e517d commit d766ac2

File tree

1 file changed

+141
-109
lines changed

1 file changed

+141
-109
lines changed

docusaurus.config.js

Lines changed: 141 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Note: type annotations allow type checking and IDEs autocompletion
33

44
const fs = require('fs');
5+
56
import { themes as prismThemes } from 'prism-react-renderer';
67
const lightCodeTheme = prismThemes.github;
78
const darkCodeTheme = prismThemes.dracula;
@@ -18,26 +19,24 @@ module.exports = {
1819
onBrokenLinks: 'throw',
1920
onBrokenAnchors: 'throw',
2021
favicon: 'https://www.sumologic.com/favicon.ico',
21-
organizationName: 'sumologic',
22-
projectName: 'sumologic-documentation',
22+
organizationName: 'sumologic', // Usually your GitHub org/user name.
23+
projectName: 'sumologic-documentation', // Usually your repo name.
2324
stylesheets: ['https://fonts.googleapis.com/css?family=Material+Icons'],
2425
staticDirectories: ['static'],
2526
future: {
26-
experimental_faster: {
27-
swcJsLoader: true,
28-
swcJsMinimizer: true,
29-
swcHtmlMinimizer: true,
30-
rspackBundler: true, // Enable Rspack for faster builds
31-
},
27+
experimental_faster: true,
3228
},
3329
presets: [
3430
[
3531
'@docusaurus/preset-classic',
36-
{
32+
({
3733
docs: {
3834
sidebarPath: require.resolve('./sidebars.ts'),
3935
editUrl: 'https://github.com/SumoLogic/sumologic-documentation/edit/main/',
40-
remarkPlugins: [require('remark-code-import'), require('remark-import-partial')],
36+
remarkPlugins: [
37+
require('remark-code-import'),
38+
require('remark-import-partial'),
39+
],
4140
showLastUpdateAuthor: true,
4241
showLastUpdateTime: true,
4342
admonitions: {
@@ -85,7 +84,7 @@ module.exports = {
8584
theme: {
8685
customCss: [require.resolve('./src/css/sumo.scss')],
8786
},
88-
},
87+
}),
8988
],
9089
],
9190
plugins: [
@@ -103,102 +102,10 @@ module.exports = {
103102
},
104103
],
105104
['@docusaurus/plugin-client-redirects', { redirects: Object.entries(cidRedirects).map(([key, value]) => ({ from: key, to: value })) }],
106-
['@docusaurus/plugin-content-blog',
107-
{
108-
id: 'blog-cse',
109-
routeBasePath: 'release-notes-cse',
110-
path: './blog-cse',
111-
archiveBasePath: 'archive',
112-
blogTitle: 'Sumo Logic Cloud SIEM Release Notes',
113-
blogSidebarTitle: 'All posts',
114-
blogSidebarCount: 'ALL',
115-
postsPerPage: 'ALL',
116-
blogDescription: 'New and enhanced Cloud SIEM features, bug fixes, updated rules, log mappers, parsers, and more.',
117-
showReadingTime: false,
118-
onUntruncatedBlogPosts: 'ignore',
119-
onInlineTags: 'ignore',
120-
onInlineAuthors: 'ignore',
121-
feedOptions: {
122-
type: 'rss',
123-
xslt: true,
124-
title: 'Sumo Logic Cloud SIEM Release Notes',
125-
description: 'New and enhanced Cloud SIEM features, bug fixes, updated rules, log mappers, parsers, and more.',
126-
copyright: `Copyright © ${new Date().getFullYear()} Sumo Logic`,
127-
},
128-
},
129-
],
130-
['@docusaurus/plugin-content-blog',
131-
{
132-
id: 'blog-csoar',
133-
routeBasePath: 'release-notes-csoar',
134-
path: './blog-csoar',
135-
archiveBasePath: 'archive',
136-
blogTitle: 'Sumo Logic Cloud SOAR Release Notes',
137-
blogSidebarTitle: 'All posts',
138-
blogSidebarCount: 'ALL',
139-
postsPerPage: 'ALL',
140-
blogDescription: 'New and enhanced Cloud SOAR features, bug fixes, changes to the application, and more.',
141-
showReadingTime: false,
142-
onUntruncatedBlogPosts: 'ignore',
143-
onInlineTags: 'ignore',
144-
onInlineAuthors: 'ignore',
145-
feedOptions: {
146-
type: 'rss',
147-
xslt: true,
148-
title: 'Sumo Logic Cloud SOAR Release Notes',
149-
description: 'New and enhanced Cloud SOAR features, bug fixes, changes to the application, and more.',
150-
copyright: `Copyright © ${new Date().getFullYear()} Sumo Logic`,
151-
},
152-
},
153-
],
154-
['@docusaurus/plugin-content-blog',
155-
{
156-
id: 'blog-developer',
157-
routeBasePath: 'release-notes-developer',
158-
path: './blog-developer',
159-
archiveBasePath: 'archive',
160-
blogTitle: 'Sumo Logic Developer Release Notes',
161-
blogDescription: 'The latest Sumo Logic developer features and updates to our APIs, Live Tail CLI, and more.',
162-
blogSidebarTitle: 'All posts',
163-
blogSidebarCount: 'ALL',
164-
postsPerPage: 'ALL',
165-
showReadingTime: false,
166-
onUntruncatedBlogPosts: 'ignore',
167-
onInlineTags: 'ignore',
168-
onInlineAuthors: 'ignore',
169-
feedOptions: {
170-
type: 'rss',
171-
xslt: true,
172-
title: 'Sumo Logic Developer Release Notes',
173-
description: 'The latest Sumo Logic developer features and updates to our APIs, Live Tail CLI, and more.',
174-
copyright: `Copyright © ${new Date().getFullYear()} Sumo Logic`,
175-
},
176-
},
177-
],
178-
['@docusaurus/plugin-content-blog',
179-
{
180-
id: 'blog-collector',
181-
routeBasePath: 'release-notes-collector',
182-
path: './blog-collector',
183-
archiveBasePath: 'archive',
184-
blogTitle: 'Sumo Logic Collector Release Notes',
185-
blogSidebarTitle: 'All posts',
186-
blogSidebarCount: 'ALL',
187-
postsPerPage: 'ALL',
188-
blogDescription: 'New Sumo Logic Collector features and relevant bug fixes for each release.',
189-
showReadingTime: false,
190-
onUntruncatedBlogPosts: 'ignore',
191-
onInlineTags: 'ignore',
192-
onInlineAuthors: 'ignore',
193-
feedOptions: {
194-
type: 'rss',
195-
xslt: true,
196-
title: 'Sumo Logic Collector Release Notes',
197-
description: 'New Sumo Logic Collector features and relevant bug fixes for each release.',
198-
copyright: `Copyright © ${new Date().getFullYear()} Sumo Logic`,
199-
},
200-
},
201-
],
105+
['@docusaurus/plugin-content-blog', { id: 'blog-cse', routeBasePath: 'release-notes-cse', path: './blog-cse', blogTitle: 'Sumo Logic Cloud SIEM Release Notes', postsPerPage: 'ALL', showReadingTime: false }],
106+
['@docusaurus/plugin-content-blog', { id: 'blog-csoar', routeBasePath: 'release-notes-csoar', path: './blog-csoar', blogTitle: 'Sumo Logic Cloud SOAR Release Notes', postsPerPage: 'ALL', showReadingTime: false }],
107+
['@docusaurus/plugin-content-blog', { id: 'blog-developer', routeBasePath: 'release-notes-developer', path: './blog-developer', blogTitle: 'Sumo Logic Developer Release Notes', postsPerPage: 'ALL', showReadingTime: false }],
108+
['@docusaurus/plugin-content-blog', { id: 'blog-collector', routeBasePath: 'release-notes-collector', path: './blog-collector', blogTitle: 'Sumo Logic Collector Release Notes', postsPerPage: 'ALL', showReadingTime: false }],
202109
function customWebpackPlugin() {
203110
return {
204111
name: 'custom-webpack-plugin',
@@ -250,23 +157,148 @@ module.exports = {
250157
{
251158
label: 'Guides',
252159
position: 'left',
160+
to: '#',
253161
type: 'dropdown',
254162
items: [
255163
{ type: 'docSidebar', sidebarId: 'getstarted', label: 'Get Started', icon: 'rocket' },
256164
{ type: 'docSidebar', sidebarId: 'senddata', label: 'Collectors, Sources', icon: 'settings' },
257165
{ type: 'docSidebar', sidebarId: 'searchlogs', label: 'Log Search', icon: 'article' },
166+
{ type: 'docSidebar', sidebarId: 'security', label: 'Security', icon: 'security' },
167+
{ type: 'docSidebar', sidebarId: 'manage', label: 'Manage Account', icon: 'manage_accounts' },
168+
{ type: 'docSidebar', sidebarId: 'integrations', label: 'Apps and Integrations', icon: 'grid_view' },
169+
{ type: 'docSidebar', sidebarId: 'alerts', label: 'Alerts', icon: 'notifications' },
170+
{ type: 'docSidebar', sidebarId: 'metricslogs', label: 'Metrics', icon: 'stacked_line_chart' },
171+
{ type: 'docSidebar', sidebarId: 'observability', label: 'Observability', icon: 'speed' },
172+
{ type: 'docSidebar', sidebarId: 'dashboards', label: 'Dashboards', icon: 'dashboard' },
173+
{ type: 'docSidebar', sidebarId: 'platformservices', label: 'Platform Services', icon: 'settings_suggest' },
174+
{ type: 'docSidebar', sidebarId: 'apm', label: 'Traces, RUM, APM', icon: 'account_tree' },
258175
],
259176
},
260177
{
261178
label: 'API',
262179
position: 'left',
180+
to: '#',
181+
type: 'dropdown',
182+
items: [
183+
{
184+
type: 'docSidebar',
185+
sidebarId: 'api',
186+
label: 'API Docs',
187+
icon: 'hub',
188+
},
189+
{
190+
label: 'API Reference',
191+
href: 'https://api.sumologic.com/docs/',
192+
icon: 'code',
193+
},
194+
],
195+
},
196+
{
197+
label: 'Release Notes',
198+
position: 'left',
199+
to: '/docs/release-notes',
263200
type: 'dropdown',
264201
items: [
265-
{ type: 'docSidebar', sidebarId: 'api', label: 'API Docs', icon: 'hub' },
266-
{ label: 'API Reference', href: 'https://api.sumologic.com/docs/', icon: 'code' },
202+
{
203+
label: 'Service',
204+
to: 'release-notes-service',
205+
icon: 'rss_feed',
206+
},
207+
{
208+
label: 'Cloud SIEM',
209+
to: 'release-notes-cse',
210+
icon: 'rss_feed',
211+
},
212+
{
213+
label: 'Cloud SOAR',
214+
to: 'release-notes-csoar',
215+
icon: 'rss_feed',
216+
},
217+
{
218+
label: 'Collector',
219+
to: 'release-notes-collector',
220+
icon: 'rss_feed',
221+
},
222+
{
223+
label: 'Developer',
224+
to: 'release-notes-developer',
225+
icon: 'rss_feed',
226+
},
227+
],
228+
},
229+
{
230+
type: 'search',
231+
position: 'left',
232+
},
233+
{
234+
type: 'html',
235+
position: 'right',
236+
value: 'google_translate',
237+
},
238+
{
239+
to: 'https://www.sumologic.com/sign-up',
240+
position: 'right',
241+
className: 'header-trial',
242+
alt: 'Sign up for a Sumo Logic free trial',
243+
},
244+
],
245+
},
246+
footer: {
247+
style: 'dark',
248+
links: [
249+
{
250+
items: [
251+
{
252+
label: 'Training & Certifications',
253+
href: 'https://www.sumologic.com/learn/training/',
254+
},
255+
{
256+
label: 'Events & Webinars',
257+
href: 'https://www.sumologic.com/events/',
258+
},
259+
{
260+
label: 'Request a Demo',
261+
href: 'https://www.sumologic.com/request-demo',
262+
},
263+
],
264+
title: 'Learn',
265+
},
266+
{
267+
items: [
268+
{
269+
label: 'Contact Support',
270+
href: 'https://support.sumologic.com/support/s',
271+
},
272+
{
273+
label: 'Sumo Dojo Slack',
274+
href: 'https://sumodojo.slack.com/',
275+
},
276+
{
277+
label: 'Community',
278+
href: 'https://support.sumologic.com/support/s/topiccatalog',
279+
},
280+
],
281+
title: 'Help',
282+
},
283+
{
284+
items: [
285+
{
286+
label: 'Docs GitHub',
287+
href: 'https://github.com/SumoLogic/sumologic-documentation',
288+
},
289+
{
290+
label: 'Sumo Logic GitHub',
291+
href: 'https://github.com/SumoLogic',
292+
},
293+
{
294+
label: 'Sumo Labs Projects',
295+
href: 'https://github.com/SumoLogic-Labs',
296+
},
267297
],
298+
title: 'Open Source',
268299
},
269300
],
301+
copyright: `Copyright © ${new Date().getFullYear()} by Sumo Logic, Inc.`,
270302
},
271303
},
272304
};

0 commit comments

Comments
 (0)