COPY docuservix

This commit is contained in:
2026-06-18 13:43:32 +03:00
parent f72371e0bb
commit 81cde1bb68
10 changed files with 1350 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
import path from 'path';
import type { LoadContext, Plugin } from '@docusaurus/types';
interface SearchPluginOptions {
providersModule: string;
}
export default function docuservixSearchPlugin(
_ctx: LoadContext,
options: SearchPluginOptions,
): Plugin {
return {
name: 'docuservix-search',
getThemePath() {
return path.resolve(__dirname, './theme');
},
getTypeScriptThemePath() {
return path.resolve(__dirname, './theme');
},
configureWebpack() {
return {
resolve: {
alias: {
'@docuservix-search/config': options.providersModule,
},
},
};
},
async contentLoaded({ actions }) {
actions.addRoute({
path: '/search',
component: '@theme/SearchPage',
exact: true,
});
actions.addRoute({
path: '/chat-x',
component: '@theme/ChatPage',
exact: true,
});
},
};
}