11import { themes as prismThemes } from 'prism-react-renderer' ;
22import type { Config } from '@docusaurus/types' ;
3- import type * as Preset from '@docusaurus/preset-classic' ;
43
54// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
65
@@ -35,36 +34,17 @@ const config: Config = {
3534 locales : [ 'en' ] ,
3635 } ,
3736
38- presets : [
37+ plugins : [
3938 [
40- 'classic ' ,
39+ '@docusaurus/plugin-content-docs ' ,
4140 {
42- docs : {
43- lastVersion : 'current' ,
44- includeCurrentVersion : true ,
45- versions : {
46- current : {
47- label : '2.0.0-rc2' ,
48- path : '2.0.0-rc2' ,
49- } ,
50- } ,
51- sidebarPath : './sidebars.ts' ,
52- path : 'Documentation' ,
53- routeBasePath : '/' ,
54- // Please change this to your repo.
55- // Remove this to remove the "edit this page" links.
56- editUrl :
57- 'https://github.com/LANCommander/LANCommander/tree/main/LANCommander.Documentation' ,
58- } ,
59- blog : false ,
60- theme : {
61- customCss : './src/css/custom.css' ,
62- } ,
63- } satisfies Preset . Options ,
41+ id : 'documentation' ,
42+ path : 'Documentation' ,
43+ routeBasePath : '/' ,
44+ sidebarPath : './sidebars.documentation.ts' ,
45+ editUrl : 'https://github.com/LANCommander/LANCommander/tree/main/LANCommander.Documentation' ,
46+ }
6447 ] ,
65- ] ,
66-
67- plugins : [
6848 [
6949 '@docusaurus/plugin-content-docs' ,
7050 {
@@ -76,6 +56,8 @@ const config: Config = {
7656 ]
7757 ] ,
7858
59+ themes : [ '@docusaurus/theme-classic' ] ,
60+
7961 themeConfig : {
8062 // Replace with your project's social card
8163 image : 'img/docusaurus-social-card.jpg' ,
@@ -88,22 +70,20 @@ const config: Config = {
8870 src : 'img/logo.svg' ,
8971 } ,
9072 items : [
91- // {
92- // type: 'docsVersionDropdown',
93- // versions: ['current'],
94- // },
9573 {
9674 type : 'docSidebar' ,
9775 sidebarId : 'documentationSidebar' ,
9876 position : 'left' ,
9977 label : 'Documentation' ,
78+ docsPluginId : 'documentation' ,
10079 } ,
10180 { to : '/Releases' , label : 'Releases' , position : 'left' } ,
10281 {
10382 type : 'docSidebar' ,
10483 sidebarId : 'gameServersSidebar' ,
10584 position : 'left' ,
10685 label : 'Game Servers' ,
86+ docsPluginId : 'gameServers' ,
10787 } ,
10888 {
10989 href : 'https://github.com/LANCommander/LANCommander' ,
@@ -158,7 +138,7 @@ const config: Config = {
158138 darkTheme : prismThemes . dracula ,
159139 additionalLanguages : [ 'powershell' ] ,
160140 } ,
161- } satisfies Preset . ThemeConfig ,
141+ }
162142} ;
163143
164144export default config ;
0 commit comments