11// @ts -check
22// Note: type annotations allow type checking and IDEs autocompletion
33
4+ const fs = require ( "node:fs" ) ;
45const lightCodeTheme = require ( "prism-react-renderer/themes/vsLight" ) ;
56const darkCodeTheme = require ( "prism-react-renderer/themes/dracula" ) ;
67
@@ -26,7 +27,8 @@ const config = {
2627 /** @type {import('@docusaurus/preset-classic').Options } */
2728 ( {
2829 docs : {
29- sidebarPath : require . resolve ( "./sidebars.js" ) ,
30+ path : fs . realpathSync ( "docs" ) ,
31+ sidebarPath : fs . realpathSync ( "./sidebars.js" ) ,
3032 editUrl :
3133 "https://github.com/fullstack-devops/fullstack-devops.github.io/tree/main/" ,
3234 } ,
@@ -42,22 +44,7 @@ const config = {
4244 ] ,
4345 ] ,
4446
45- plugins : [
46- [
47- "@docusaurus/plugin-content-docs" ,
48- {
49- id : "ng-mat-components" ,
50- path : "modules/ng-mat-components/docs" ,
51- routeBasePath : "ng-mat-components" ,
52- sidebarPath : require . resolve (
53- "./modules/ng-mat-components/docs/sidebars.js"
54- ) ,
55- editUrl :
56- "https://github.com/fullstack-devops/ng-mat-components/tree/main/" ,
57- } ,
58- ] ,
59- require . resolve ( "docusaurus-lunr-search" ) ,
60- ] ,
47+ plugins : [ require . resolve ( "docusaurus-lunr-search" ) ] ,
6148
6249 themeConfig :
6350 /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
0 commit comments