-
Notifications
You must be signed in to change notification settings - Fork 4
/
docusaurus.config.js
96 lines (88 loc) · 2.69 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
const redirects = require("./redirects");
// const versions = require('./versions.json')
// // This probably only makes sense for the alpha phase, temporary
// function getNextVersionName() {
// const lastReleasedVersion = versions.sort().reverse()[0]
// return `v${lastReleasedVersion}`
// }
// const allDocHomesPaths = [
// '/docs/',
// '/docs/next/',
// ...versions.slice(1).map((version) => `/docs/${version}/`),
// ]
const isBootstrapPreset = process.env.DOCUSAURUS_PRESET === "bootstrap";
module.exports = {
title: "App Platform for LKE",
url: "https://apl-docs.net",
baseUrl: "/",
favicon: "img/logos/favicon.ico",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
organizationName: "Akamai", // Usually your GitHub org/user name.
projectName: "linode.github.io", // Usually your repo name.
themeConfig: {
metadata: [
{
name: "keywords",
content:
"kubernetes, kubernetes ingress, k8s, istio, grafana, loki, kubernetes dashboard, kubernetes platform",
},
],
theme: "github",
image: "img/logos/akamai-logo-color.svg",
algolia: {
appId: "6KB5EH30HY",
apiKey: "66fde7b3ea3c028d87ba16c7923e7e58",
indexName: "apl-net",
// Optional: see doc section bellow
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
navbar: {
logo: {
alt: "Site Logo",
src: "img/logos/akamai-logo-color.svg",
href: "/", // Default to `siteConfig.baseUrl`.
target: "_self", // By default, this value is calculated based on the `href` attribute (the external link will open in a new tab, all others in the current one).
},
items: [
{
href: "https://github.com/linode/apl-core",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
},
trailingSlash: false,
presets: [
[
isBootstrapPreset
? "@docusaurus/preset-bootstrap"
: "@docusaurus/preset-classic",
{
docs: {
breadcrumbs: false,
sidebarPath: require.resolve("./sidebar-docs.js"),
editUrl: "https://github.com/linode/linode.github.io/tree/main/",
// versions: {
// current: {
// label: `${getNextVersionName()} (unreleased)`,
// },
// },
},
gtag: {
trackingID: "G-KKV4ZVDEKQ",
// Optional fields.
anonymizeIP: false, // Should IPs be anonymized?
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};