Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { themes } from 'prism-react-renderer';
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

import versions from "./versions.json";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Serverpod',
Expand Down Expand Up @@ -134,7 +136,20 @@ const config = {
]
}
]
]
],
themes: [
[
require.resolve("@getcanary/docusaurus-theme-search-pagefind"),
{
styles: {
"--canary-color-primary-c": 0.1,
"--canary-color-primary-h": 270,
},
includeRoutes: ["**/*"],
excludeRoutes: ["next", ...versions].map(v => `**/${v}/**`),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Displaying 2-3 versions is well supported(video), but for N versions, it is not well supported.

I think this is plausible workaround for now, and will come back later.

},
],
],
};

module.exports = config;
Loading
Loading