1
1
// @ts -check
2
- // Note: type annotations allow type checking and IDEs autocompletion
2
+ // `@type` JSDoc annotations allow editor autocompletion and type checking
3
+ // (when paired with `@ts-check`).
4
+ // There are various equivalent ways to declare your Docusaurus config.
5
+ // See: https://docusaurus.io/docs/api/docusaurus-config
3
6
4
- const { themes} = require ( 'prism-react-renderer' ) ;
5
- const lightTheme = themes . github ;
6
- const darkTheme = themes . dracula ;
7
-
8
- const organizationName = "devchat-ai" ;
9
- const projectName = "devchat-website" ;
7
+ import { themes as prismThemes } from 'prism-react-renderer' ;
10
8
11
9
/** @type {import('@docusaurus/types').Config } */
12
10
const config = {
13
-
14
- organizationName,
15
- projectName,
16
-
17
- title : 'Devchat' ,
11
+ title : 'DevChat' ,
18
12
favicon : 'img/favicon.ico' ,
19
13
20
14
// Set the production url of your site here
@@ -23,6 +17,11 @@ const config = {
23
17
// For GitHub pages deployment, it is often '/<projectName>/'
24
18
baseUrl : `/` ,
25
19
20
+ // GitHub pages deployment config.
21
+ // If you aren't using GitHub pages, you don't need these.
22
+ organizationName : 'devchat-ai' , // Usually your GitHub org/user name.
23
+ projectName : 'devchat-website' , // Usually your repo name.
24
+
26
25
onBrokenLinks : 'throw' ,
27
26
onBrokenMarkdownLinks : 'warn' ,
28
27
@@ -45,12 +44,11 @@ const config = {
45
44
46
45
presets : [
47
46
[
48
- '@docusaurus/preset- classic' ,
47
+ 'classic' ,
49
48
/** @type {import('@docusaurus/preset-classic').Options } */
50
49
( {
51
50
docs : {
52
- routeBasePath : '/' ,
53
- sidebarPath : require . resolve ( './sidebars.js' ) ,
51
+ sidebarPath : './sidebars.js' ,
54
52
// Please change this to your repo.
55
53
// Remove this to remove the "edit this page" links.
56
54
editUrl :
@@ -73,73 +71,60 @@ const config = {
73
71
/** @type {import('@docusaurus/preset-classic').ThemeConfig } */
74
72
( {
75
73
navbar : {
76
- title : 'Devchat ' ,
74
+ title : 'DevChat ' ,
77
75
logo : {
78
- alt : 'Devchat Logo' ,
76
+ alt : 'DevChat Logo' ,
79
77
src : 'img/logo.svg' ,
80
78
} ,
81
79
items : [
82
- // {
83
- // type: 'docSidebar',
84
- // sidebarId: 'docSidebar',
85
- // position: 'left',
86
- // label: 'Document',
87
- // },
88
- // {to: '/blog', label: 'Blog', position: 'left'},
80
+ {
81
+ type : 'docSidebar' ,
82
+ sidebarId : 'docSidebar' ,
83
+ position : 'left' ,
84
+ label : 'Document' ,
85
+ } ,
86
+ {
87
+ href : 'https://github.com/devchat-ai' ,
88
+ label : 'GitHub' ,
89
+ position : 'right' ,
90
+ } ,
89
91
{
90
92
type : 'localeDropdown' ,
91
93
position : 'right' ,
92
94
}
93
95
] ,
94
96
} ,
95
- /* footer: {
97
+ footer : {
96
98
style : 'dark' ,
97
99
links : [
98
- {
99
- title: 'Docs',
100
- items: [
101
- {
102
- label: 'Tutorial',
103
- to: '/intro',
104
- },
105
- ],
106
- },
107
100
{
108
101
title : 'Community' ,
109
102
items : [
110
- {
111
- label: 'Stack Overflow',
112
- href: 'https://stackoverflow.com/questions/tagged/docusaurus',
113
- },
114
103
{
115
104
label : 'Discord' ,
116
- href: 'https://discordapp .com/invite/docusaurus ',
105
+ href : 'https://discord .com/invite/9t3yrbBUXD ' ,
117
106
} ,
118
107
{
119
108
label : 'Twitter' ,
120
- href: 'https://twitter.com/docusaurus ',
109
+ href : 'https://twitter.com/DevChatAI ' ,
121
110
} ,
122
111
] ,
123
112
} ,
124
113
{
125
114
title : 'More' ,
126
115
items : [
127
- {
128
- label: 'Blog',
129
- to: '/blog',
130
- },
131
116
{
132
117
label : 'GitHub' ,
133
- href: 'https://github.com/facebook/docusaurus ',
118
+ href : 'https://github.com/devchat-ai ' ,
134
119
} ,
135
120
] ,
136
121
} ,
137
122
] ,
138
- copyright: `Copyright © ${new Date().getFullYear()} My Project , Inc. Built with Docusaurus .`,
139
- },*/
123
+ copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Merico , Inc.` ,
124
+ } ,
140
125
prism : {
141
- theme : lightTheme ,
142
- darkTheme : darkTheme ,
126
+ theme : prismThemes . github ,
127
+ darkTheme : prismThemes . dracula ,
143
128
} ,
144
129
} ) ,
145
130
} ;
0 commit comments