Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 51bd60cc75 | |||
| 7240c9201d | |||
| fd677e978b | |||
| 738e34f02c |
@@ -35,7 +35,7 @@ const config: Config = {
|
|||||||
markdown: {
|
markdown: {
|
||||||
mermaid: true,
|
mermaid: true,
|
||||||
},
|
},
|
||||||
plugins: [docuservix()],
|
plugins: [docuservix],
|
||||||
themes: ['@docusaurus/theme-mermaid'],
|
themes: ['@docusaurus/theme-mermaid'],
|
||||||
|
|
||||||
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
|
// 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';
|
import type { LoadContext, Plugin } from '@docusaurus/types';
|
||||||
|
|
||||||
export default function docuservix() {
|
function pluginDocuservix(_context: LoadContext): Plugin {
|
||||||
return function pluginDocuservix(_context: LoadContext): Plugin {
|
return {
|
||||||
return {
|
name: 'docuservix',
|
||||||
name: 'docuservix',
|
|
||||||
|
|
||||||
configureWebpack() {
|
configureWebpack() {
|
||||||
return {
|
return {
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@docuservix': path.resolve(__dirname),
|
'@docuservix': path.resolve(__dirname),
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
},
|
};
|
||||||
|
},
|
||||||
|
|
||||||
async contentLoaded({ actions }) {
|
async contentLoaded({ actions }) {
|
||||||
const { addRoute } = actions;
|
const { addRoute } = actions;
|
||||||
|
|
||||||
addRoute({
|
addRoute({
|
||||||
path: '/chat',
|
path: '/chat',
|
||||||
component: '@docuservix/pages/chat',
|
component: '@docuservix/pages/chat',
|
||||||
exact: true,
|
exact: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default pluginDocuservix;
|
||||||
|
|||||||
Reference in New Issue
Block a user