Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ffd34ff026 | |||
| 399ad586e8 | |||
| c7c353db0a | |||
| 08642e46d4 |
@@ -35,7 +35,7 @@ const config: Config = {
|
||||
markdown: {
|
||||
mermaid: true,
|
||||
},
|
||||
plugins: [docuservix],
|
||||
plugins: [docuservix()],
|
||||
themes: ['@docusaurus/theme-mermaid'],
|
||||
|
||||
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
|
||||
|
||||
+21
-21
@@ -2,30 +2,30 @@ import path from 'path';
|
||||
|
||||
import type { LoadContext, Plugin } from '@docusaurus/types';
|
||||
|
||||
function pluginDocuservix(_context: LoadContext): Plugin {
|
||||
return {
|
||||
name: 'docuservix',
|
||||
export default function docuservix() {
|
||||
return function pluginDocuservix(_context: LoadContext): Plugin {
|
||||
return {
|
||||
name: 'docuservix',
|
||||
|
||||
configureWebpack() {
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@docuservix': path.resolve(__dirname),
|
||||
configureWebpack() {
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@docuservix': path.resolve(__dirname),
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
async contentLoaded({ actions }) {
|
||||
const { addRoute } = actions;
|
||||
async contentLoaded({ actions }) {
|
||||
const { addRoute } = actions;
|
||||
|
||||
addRoute({
|
||||
path: '/chat',
|
||||
component: '@docuservix/pages/chat',
|
||||
exact: true,
|
||||
});
|
||||
},
|
||||
addRoute({
|
||||
path: '/chat',
|
||||
component: '@docuservix/pages/chat',
|
||||
exact: true,
|
||||
});
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export default pluginDocuservix;
|
||||
|
||||
Reference in New Issue
Block a user