forked from demisto/content-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
185 lines (184 loc) · 5.2 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
title: "Cortex XSOAR",
tagline: "Developers - Palo Alto Networks",
url: "https://xsoar.pan.dev",
baseUrl: "/",
favicon: "/img/cortexfavicon.png", //square version
organizationName: "Demisto", // Usually your GitHub org/user name.
projectName: "content-docs", // Usually your repo name.
themeConfig: {
algolia: {
apiKey: "f5dfbee43cfa4c5024b10045c6d91461",
indexName: "demisto",
algoliaOptions: { typoTolerance: false, hitsPerPage: 1000, filters: 'type:lvl1 OR type:content' } // Optional, if provided by Algolia
},
sidebarCollapsible: true,
navbar: {
title: "",
logo: {
alt: "Cortex XSOAR for Developers (Formerly Demisto)",
src: "/img/Cortex_XSoar_logos_RGB_Cortex-Ng-Soar-Horizontal.svg",
srcDark: "/img/Cortex_XSoar_logos_RGB_Cortex-Ng-Soar-Horizontal-KO.svg"
},
links: [
{
to: "/docs/welcome",
label: "Developer Docs",
position: "left"
},
{
to: "/docs/tutorials/tut-setup-dev",
label: "Tutorials",
position: "left"
},
{
to: "/docs/reference/index",
label: "Reference",
position: "left"
},
{
label: "Partners",
items: [
{ to: "/docs/partners/why-xsoar",
label: "Why Cortex XSOAR?"
},
{
to: "docs/partners/become-a-tech-partner",
label: "Become a Partner"
},
{
to: "/docs/partners/marketplace",
label: "Marketplace"
},
{
to: "/docs/partners/certification",
label: "Pack Certification"
},
{
to: "/docs/partners/office-hours",
label: "Office Hours"
},
{
to: "/docs/partners/development-partners",
label: "Development Partners"
},
{
to: "https://start.paloaltonetworks.com/become-a-technology-partner",
label: "Sign Up Now"
}
],
position: "right"
},
{
href: "https://blog.demisto.com/",
label: "Blog",
position: "right"
},
{
href: "http://github.com/demisto/content/",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
sites: [
{
label: "Products",
items: [
{
href: "https://panos.pan.dev",
label: "PAN-OS",
logo: "/img/strata_favicon.png"
},
{
href: "https://cortex.pan.dev",
label: "Cortex Data Lake",
logo: "/img/cortexfavicon.png"
},
{
href: "https://xsoar.pan.dev",
label: "Cortex XSOAR",
logo: "/img/Cortex-XSOAR-product-green.svg"
}
],
position: "products"
}
]
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{ to: "/docs/welcome", label: "Developer Docs" },
{
to: "/docs/partners/become-a-tech-partner",
label: "Become a Technology Partner"
}
]
},
{
title: "Social",
items: [
{
label: "Blog",
href: "https://blog.demisto.com/"
}
]
}
],
logo: {
alt: "Palo Alto Networks for Developers",
src: "/img/PANW_Parent_Brand_Primary_Logo_RGB_KO.svg"
// href: "https://pan.dev"
},
copyright: `Copyright © ${new Date().getFullYear()} Palo Alto Networks, Inc.`
},
announcementBar: {
id: 'github_star',
content:
'⭐️ If you like Cortex XSOAR Content, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/demisto/content">GitHub</a>! ⭐',
backgroundColor: '#fafbfc',
textColor: '#091E42',
}
},
themes: ["@docusaurus/theme-live-codeblock"],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/demisto/content-docs/tree/master",
routeBasePath: "docs",
include: ["**/*.md", "**/*.mdx"], // Extensions to include.
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/DocItem",
remarkPlugins: [],
rehypePlugins: [],
showLastUpdateAuthor: false,
showLastUpdateTime: true
},
theme: {
customCss: require.resolve("./src/css/custom.css")
}
}
]
],
plugins: [
"@docusaurus/plugin-sitemap",
{
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: "weekly",
priority: 0.5
}
],
customFields: {}
};