2021-06-04 11:17:15 +02:00
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
2021-08-17 15:24:37 +02:00
|
|
|
title: 'Unleash',
|
|
|
|
tagline: 'The enterprise ready feature toggle service',
|
|
|
|
url: 'https://docs.getunleash.io',
|
|
|
|
baseUrl: '/',
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
organizationName: 'Unleash', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'unleash.github.io', // Usually your repo name.
|
|
|
|
trailingSlash: false,
|
2021-06-04 11:17:15 +02:00
|
|
|
themeConfig: {
|
|
|
|
defaultMode: 'light',
|
|
|
|
disableSwitch: true,
|
|
|
|
respectPrefersColorScheme: false,
|
2021-06-16 08:52:33 +02:00
|
|
|
algolia: {
|
2021-08-17 15:24:37 +02:00
|
|
|
apiKey: '9772249a7262b377ac876853d32bd760',
|
|
|
|
indexName: 'getunleash',
|
2021-06-16 08:52:33 +02:00
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
navbar: {
|
2021-08-17 15:24:37 +02:00
|
|
|
title: 'Unleash',
|
2021-06-04 11:17:15 +02:00
|
|
|
logo: {
|
2021-08-17 15:24:37 +02:00
|
|
|
alt: 'Unleash logo',
|
|
|
|
src: 'img/logo.svg',
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
items: [
|
2021-08-17 15:24:37 +02:00
|
|
|
{
|
|
|
|
href: 'https://www.getunleash.io/plans',
|
|
|
|
label: 'Unleash Enterprise',
|
|
|
|
position: 'right',
|
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
{
|
|
|
|
href: 'https://github.com/Unleash/unleash',
|
|
|
|
position: 'right',
|
|
|
|
className: 'header-github-link',
|
2022-01-26 12:22:03 +01:00
|
|
|
'aria-label': 'Unleash GitHub repository',
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
2021-08-17 15:24:37 +02:00
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
2021-06-04 14:50:52 +02:00
|
|
|
prism: {
|
2022-01-25 15:19:32 +01:00
|
|
|
additionalLanguages: [
|
|
|
|
'csharp',
|
2022-02-09 15:54:16 +01:00
|
|
|
'http',
|
|
|
|
'java',
|
2022-01-25 15:19:32 +01:00
|
|
|
'kotlin',
|
|
|
|
'php',
|
2022-02-09 15:54:16 +01:00
|
|
|
'ruby',
|
|
|
|
'swift',
|
2022-01-25 15:19:32 +01:00
|
|
|
],
|
2021-08-17 15:24:37 +02:00
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
footer: {
|
2021-08-17 15:24:37 +02:00
|
|
|
style: 'dark',
|
2021-06-04 11:17:15 +02:00
|
|
|
links: [
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
title: 'Product',
|
2021-06-04 11:17:15 +02:00
|
|
|
items: [
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
label: 'Docs',
|
|
|
|
to: '/',
|
2021-08-11 12:55:56 +02:00
|
|
|
},
|
|
|
|
{
|
2022-01-26 12:22:03 +01:00
|
|
|
label: 'Unleash on GitHub',
|
2021-08-17 15:24:37 +02:00
|
|
|
href: 'https://github.com/Unleash/unleash',
|
2021-08-11 12:55:56 +02:00
|
|
|
},
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
label: 'Roadmap',
|
|
|
|
href: 'https://github.com/orgs/Unleash/projects/5',
|
|
|
|
},
|
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
title: 'Community',
|
2021-06-04 11:17:15 +02:00
|
|
|
items: [
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
label: 'Stack Overflow',
|
2022-01-25 15:19:32 +01:00
|
|
|
href: 'https://stackoverflow.com/questions/tagged/unleash',
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
label: 'Slack',
|
2022-01-25 15:19:32 +01:00
|
|
|
href: 'https://join.slack.com/t/unleash-community/shared_invite/zt-8b6l1uut-LL67kLpIXm9bcN3~6RVaRQ',
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
{
|
2021-08-17 15:24:37 +02:00
|
|
|
label: 'Twitter',
|
|
|
|
href: 'https://twitter.com/getunleash',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Unleash. Built with Docusaurus.`,
|
|
|
|
logo: {
|
|
|
|
src: 'img/logo.svg',
|
2021-08-17 15:24:37 +02:00
|
|
|
alt: 'Unleash logo',
|
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
2021-08-17 15:24:37 +02:00
|
|
|
image: 'img/logo.png',
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
2021-08-17 15:24:37 +02:00
|
|
|
'@docusaurus/preset-classic',
|
2021-06-04 11:17:15 +02:00
|
|
|
{
|
|
|
|
docs: {
|
2021-08-17 15:24:37 +02:00
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
2021-06-04 11:17:15 +02:00
|
|
|
// Please change this to your repo.
|
2021-08-17 15:24:37 +02:00
|
|
|
editUrl:
|
2021-12-23 14:12:19 +01:00
|
|
|
'https://github.com/Unleash/unleash/edit/main/website/',
|
2021-08-17 15:24:37 +02:00
|
|
|
routeBasePath: '/',
|
2022-01-03 14:59:47 +01:00
|
|
|
remarkPlugins: [
|
2022-01-25 15:19:32 +01:00
|
|
|
[
|
|
|
|
require('@docusaurus/remark-plugin-npm2yarn'),
|
|
|
|
{ sync: true },
|
|
|
|
],
|
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
theme: {
|
2021-08-17 15:24:37 +02:00
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
2022-01-27 13:12:00 +01:00
|
|
|
googleAnalytics: {
|
|
|
|
trackingID: 'UA-134882379-1',
|
|
|
|
},
|
2021-08-17 15:24:37 +02:00
|
|
|
},
|
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
'@docusaurus/plugin-client-redirects',
|
|
|
|
{
|
|
|
|
fromExtensions: ['html', 'htm'],
|
|
|
|
redirects: [
|
|
|
|
{
|
2021-06-04 14:38:11 +02:00
|
|
|
to: '/sdks',
|
2021-08-17 15:24:37 +02:00
|
|
|
from: [
|
|
|
|
'/user_guide/client-sdk',
|
|
|
|
'/client-sdk',
|
|
|
|
'/user_guide/connect_sdk',
|
2022-01-11 09:53:06 +01:00
|
|
|
'/sdks/community',
|
2021-08-17 15:24:37 +02:00
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
2021-06-10 23:15:14 +02:00
|
|
|
{
|
|
|
|
to: '/user_guide/api-token',
|
2021-08-17 15:24:37 +02:00
|
|
|
from: '/deploy/user_guide/api-token',
|
2021-06-10 23:15:14 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
to: '/sdks/unleash-proxy',
|
2021-08-17 15:24:37 +02:00
|
|
|
from: '/user_guide/native_apps/',
|
2021-06-10 23:15:14 +02:00
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
{
|
|
|
|
to: '/advanced/toggle_variants',
|
2021-08-17 15:24:37 +02:00
|
|
|
from: '/toggle_variants',
|
|
|
|
},
|
2022-01-11 10:36:23 +01:00
|
|
|
{
|
2022-01-11 10:38:22 +01:00
|
|
|
to: '/integrations',
|
|
|
|
from: '/integrations/integrations',
|
2022-01-11 10:36:23 +01:00
|
|
|
},
|
2022-01-13 11:05:40 +01:00
|
|
|
{
|
|
|
|
to: '/user_guide/activation_strategy',
|
|
|
|
from: '/user_guide/control_rollout',
|
|
|
|
},
|
2022-02-08 12:11:08 +01:00
|
|
|
{
|
|
|
|
from: '/advanced/impression_data',
|
|
|
|
to: '/advanced/impression-data',
|
|
|
|
}
|
2021-06-04 11:17:15 +02:00
|
|
|
],
|
2022-01-25 15:19:32 +01:00
|
|
|
createRedirects: function (toPath) {
|
2021-08-17 15:24:37 +02:00
|
|
|
if (
|
|
|
|
toPath.indexOf('/docs/') === -1 &&
|
|
|
|
toPath.indexOf('index.html') === -1
|
|
|
|
) {
|
|
|
|
return `/docs/${toPath}`;
|
2021-06-04 11:17:15 +02:00
|
|
|
}
|
2021-08-17 15:24:37 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2021-06-04 11:17:15 +02:00
|
|
|
};
|