Merge pull request #18733 from bigbluebutton/antobinary-patch-2

docs: Handle routes in docusaurus.config.js
This commit is contained in:
Anton Georgiev 2023-09-06 20:19:38 -04:00 committed by GitHub
commit 011dee5365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,16 +64,16 @@ const config = {
fromExtensions: ['html', 'htm'], fromExtensions: ['html', 'htm'],
redirects: [ redirects: [
{ {
to: "/new-features", to: "/2.6/new-features",
from: "/2.6/new" from: "/2.6/new"
}, },
{ {
to: "/new-features", to: "/2.6/new-features",
from: "/2.6/new.html" from: "/2.6/new.html"
}, },
{ {
to: "/new-features", to: "/new-features",
from: "/2.6/new-features" from: "/2.7/new-features"
}, },
{ {
to: "/development/api", to: "/development/api",
@ -90,9 +90,9 @@ const config = {
// TODO: remove default route to / // TODO: remove default route to /
const redirect_list = []; const redirect_list = [];
// Create redirect paths for all routes except 2.5 ones // Create redirect paths for all routes except 2.5 or 2.6 ones
if ( !path.startsWith("/2.5") ){ if ( !(path.startsWith("/2.5") || path.startsWith("/2.6"))){
redirect_list.push("/2.6" + path); redirect_list.push("/2.7" + path);
} }
if ( path.includes("/testing/release-testing") ){ if ( path.includes("/testing/release-testing") ){