mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
fix: remove trailing slashes
This commit is contained in:
parent
692d58d3ac
commit
4a14e6f3aa
@ -1,109 +1,121 @@
|
|||||||
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: "Unleash",
|
title: 'Unleash',
|
||||||
tagline: "The enterprise ready feature toggle service",
|
tagline: 'The enterprise ready feature toggle service',
|
||||||
url: "https://docs.getunleash.io",
|
url: 'https://docs.getunleash.io',
|
||||||
baseUrl: "/",
|
baseUrl: '/',
|
||||||
onBrokenLinks: "throw",
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: "warn",
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: "img/favicon.ico",
|
favicon: 'img/favicon.ico',
|
||||||
organizationName: "Unleash", // Usually your GitHub org/user name.
|
organizationName: 'Unleash', // Usually your GitHub org/user name.
|
||||||
projectName: "unleash.github.io", // Usually your repo name.
|
projectName: 'unleash.github.io', // Usually your repo name.
|
||||||
|
trailingSlash: false,
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
defaultMode: 'light',
|
defaultMode: 'light',
|
||||||
disableSwitch: true,
|
disableSwitch: true,
|
||||||
respectPrefersColorScheme: false,
|
respectPrefersColorScheme: false,
|
||||||
algolia: {
|
algolia: {
|
||||||
apiKey: '9772249a7262b377ac876853d32bd760',
|
apiKey: '9772249a7262b377ac876853d32bd760',
|
||||||
indexName: 'getunleash',
|
indexName: 'getunleash',
|
||||||
},
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
title: "Unleash",
|
title: 'Unleash',
|
||||||
logo: {
|
logo: {
|
||||||
alt: "Unleash logo",
|
alt: 'Unleash logo',
|
||||||
src: "img/logo.svg"
|
src: 'img/logo.svg',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{ to: "/", label: "Documentation", activeBaseRegex: '(user_guide|sdks|addons|advanced)', },
|
{
|
||||||
{ to: "deploy/getting_started", label: "Deploy and manage" },
|
to: '/',
|
||||||
{ to: "integrations/integrations", label: "Integrations" },
|
label: 'Documentation',
|
||||||
{ to: "/api", label: "API" },
|
activeBaseRegex: '(user_guide|sdks|addons|advanced)',
|
||||||
{ href: "https://www.getunleash.io/plans", label: "Unleash Enterprise", position: 'right' },
|
},
|
||||||
|
{ to: 'deploy/getting_started', label: 'Deploy and manage' },
|
||||||
|
{ to: 'integrations/integrations', label: 'Integrations' },
|
||||||
|
{ to: '/api', label: 'API' },
|
||||||
|
{
|
||||||
|
href: 'https://www.getunleash.io/plans',
|
||||||
|
label: 'Unleash Enterprise',
|
||||||
|
position: 'right',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: 'https://github.com/Unleash/unleash',
|
href: 'https://github.com/Unleash/unleash',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
className: 'header-github-link',
|
className: 'header-github-link',
|
||||||
'aria-label': 'GitHub repository',
|
'aria-label': 'GitHub repository',
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
additionalLanguages: ['java', 'swift', 'ruby', 'csharp', 'kotlin'],
|
additionalLanguages: ['java', 'swift', 'ruby', 'csharp', 'kotlin'],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
style: "dark",
|
style: 'dark',
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
title: "Product",
|
title: 'Product',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: "Docs",
|
label: 'Docs',
|
||||||
to: "/"
|
to: '/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Open-Source",
|
label: 'Open-Source',
|
||||||
href: "https://github.com/Unleash/unleash"
|
href: 'https://github.com/Unleash/unleash',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Roadmap",
|
label: 'Roadmap',
|
||||||
href: "https://github.com/orgs/Unleash/projects/5"
|
href: 'https://github.com/orgs/Unleash/projects/5',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Community",
|
title: 'Community',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: "Stack Overflow",
|
label: 'Stack Overflow',
|
||||||
href: "https://stackoverflow.com/questions/tagged/unleash"
|
href:
|
||||||
|
'https://stackoverflow.com/questions/tagged/unleash',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Slack",
|
label: 'Slack',
|
||||||
href: "https://join.slack.com/t/unleash-community/shared_invite/zt-8b6l1uut-LL67kLpIXm9bcN3~6RVaRQ"
|
href:
|
||||||
|
'https://join.slack.com/t/unleash-community/shared_invite/zt-8b6l1uut-LL67kLpIXm9bcN3~6RVaRQ',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Twitter",
|
label: 'Twitter',
|
||||||
href: "https://twitter.com/getunleash"
|
href: 'https://twitter.com/getunleash',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} Unleash. Built with Docusaurus.`,
|
copyright: `Copyright © ${new Date().getFullYear()} Unleash. Built with Docusaurus.`,
|
||||||
logo: {
|
logo: {
|
||||||
src: 'img/logo.svg',
|
src: 'img/logo.svg',
|
||||||
alt: 'Unleash logo'
|
alt: 'Unleash logo',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
gtag: {
|
gtag: {
|
||||||
trackingID: "UA-134882379-1"
|
trackingID: 'UA-134882379-1',
|
||||||
},
|
},
|
||||||
image: 'img/logo.png'
|
image: 'img/logo.png',
|
||||||
},
|
},
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
"@docusaurus/preset-classic",
|
'@docusaurus/preset-classic',
|
||||||
{
|
{
|
||||||
docs: {
|
docs: {
|
||||||
sidebarPath: require.resolve("./sidebars.js"),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
// Please change this to your repo.
|
// Please change this to your repo.
|
||||||
editUrl: "https://github.com/Unleash/unleash/edit/master/websitev2/",
|
editUrl:
|
||||||
routeBasePath: "/"
|
'https://github.com/Unleash/unleash/edit/master/websitev2/',
|
||||||
|
routeBasePath: '/',
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve("./src/css/custom.css")
|
customCss: require.resolve('./src/css/custom.css'),
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
@ -113,27 +125,34 @@ module.exports = {
|
|||||||
redirects: [
|
redirects: [
|
||||||
{
|
{
|
||||||
to: '/sdks',
|
to: '/sdks',
|
||||||
|
<<<<<<< HEAD
|
||||||
from: ['/user_guide/client-sdk', '/client-sdk', '/user_guide/connect_sdk']
|
from: ['/user_guide/client-sdk', '/client-sdk', '/user_guide/connect_sdk']
|
||||||
|
=======
|
||||||
|
from: ['/user_guide/client-sdk', '/client-sdk'],
|
||||||
|
>>>>>>> 014f5003 (fix: remove trailing slashes)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/user_guide/api-token',
|
to: '/user_guide/api-token',
|
||||||
from: '/deploy/user_guide/api-token'
|
from: '/deploy/user_guide/api-token',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/sdks/unleash-proxy',
|
to: '/sdks/unleash-proxy',
|
||||||
from: '/user_guide/native_apps/'
|
from: '/user_guide/native_apps/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/advanced/toggle_variants',
|
to: '/advanced/toggle_variants',
|
||||||
from: '/toggle_variants'
|
from: '/toggle_variants',
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
createRedirects: function (toPath) {
|
createRedirects: function(toPath) {
|
||||||
if (toPath.indexOf("/docs/") === -1 && toPath.indexOf("index.html") === -1) {
|
if (
|
||||||
return `/docs/${toPath}`
|
toPath.indexOf('/docs/') === -1 &&
|
||||||
|
toPath.indexOf('index.html') === -1
|
||||||
|
) {
|
||||||
|
return `/docs/${toPath}`;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user