From e2712f465941a8304deb2b1a6655a48140ab7c2d Mon Sep 17 00:00:00 2001 From: Isakdl Date: Tue, 27 Jan 2026 09:23:54 +0100 Subject: [PATCH] chore: Redirect from old to new scheduling page --- docusaurus.config.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 4f756469..dfdaafed 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,7 +1,9 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -import { themes } from 'prism-react-renderer'; +import { + themes +} from 'prism-react-renderer'; const lightCodeTheme = themes.github; const darkCodeTheme = themes.dracula; @@ -62,8 +64,7 @@ const config = { }, announcementBar: { id: 'serverpod_cloud', - content: - 'Deployments with zero configuration coming soon. 🚀 Join the Serverpod Cloud waiting list.', + content: 'Deployments with zero configuration coming soon. 🚀 Join the Serverpod Cloud waiting list.', backgroundColor: '#ffec9e', textColor: '#000000', isCloseable: false, @@ -76,8 +77,7 @@ const config = { srcDark: 'img/logo-horizontal-dark.svg', href: 'https://serverpod.dev', }, - items: [ - { + items: [{ type: 'docsVersionDropdown', position: 'left', }, @@ -117,23 +117,19 @@ const config = { additionalLanguages: ['dart', 'bash'], }, }), - scripts: [ - { - src: 'https://widget.kapa.ai/kapa-widget.bundle.js', - 'data-website-id': '9ae02024-c2cf-4f58-b2d9-7ca3961dc1ef', - 'data-project-name': 'Serverpod', - 'data-project-color': '#020F24', - 'data-project-logo': - 'https://avatars.githubusercontent.com/u/48181558?s=200&v=4', - async: true, - }, - ], + scripts: [{ + src: 'https://widget.kapa.ai/kapa-widget.bundle.js', + 'data-website-id': '9ae02024-c2cf-4f58-b2d9-7ca3961dc1ef', + 'data-project-name': 'Serverpod', + 'data-project-color': '#020F24', + 'data-project-logo': 'https://avatars.githubusercontent.com/u/48181558?s=200&v=4', + async: true, + }, ], plugins: [ [ 'docusaurus-plugin-snipsync', { - origins: [ - { + origins: [{ files: { pattern: '../serverpod/examples/**/*.{dart,yaml}', }, @@ -165,8 +161,7 @@ const config = { [ '@docusaurus/plugin-client-redirects', { - redirects: [ - { + redirects: [{ // Moved in version 1.1.1 from: ['/concepts/authentication'], to: '/concepts/authentication/setup', @@ -196,10 +191,15 @@ const config = { from: ['/get-started'], to: '/get-started/creating-endpoints', }, + { + // Moved when scheduling was reorganized from a single page to a directory + from: ['/concepts/scheduling'], + to: '/concepts/scheduling/setup', + }, ], }, ], ], }; -module.exports = config; +module.exports = config; \ No newline at end of file