1
1
import type * as Preset from "@docusaurus/preset-classic" ;
2
2
import type { Config } from "@docusaurus/types" ;
3
3
import { themes as prismThemes } from "prism-react-renderer" ;
4
+ import { EnumChangefreq } from "sitemap" ;
4
5
5
6
// const baseUrl = "/docs";
6
7
// const baseUrl = "/blog";
@@ -40,10 +41,6 @@ const config: Config = {
40
41
"@docusaurus/plugin-client-redirects" ,
41
42
{
42
43
redirects : [
43
- {
44
- to : "docs/introduction" ,
45
- from : "/" ,
46
- } ,
47
44
{
48
45
to : "/docs/get-started/signup" ,
49
46
from : "/docs/get-started" ,
@@ -70,8 +67,7 @@ const config: Config = {
70
67
{
71
68
docs : {
72
69
sidebarPath : "./sidebars.ts" ,
73
- // path: "./docs",
74
- routeBasePath : "/" ,
70
+ routeBasePath : "/docs" ,
75
71
breadcrumbs : true ,
76
72
} ,
77
73
blog : {
@@ -81,6 +77,12 @@ const config: Config = {
81
77
theme : {
82
78
customCss : "./src/css/custom.css" ,
83
79
} ,
80
+ sitemap : {
81
+ changefreq : "weekly" as EnumChangefreq ,
82
+ priority : 0.5 ,
83
+ ignorePatterns : [ "/tags/**" ] ,
84
+ filename : "sitemap.xml" ,
85
+ } ,
84
86
} satisfies Preset . Options ,
85
87
] ,
86
88
] ,
@@ -129,21 +131,20 @@ const config: Config = {
129
131
href : "https://coderabbit.ai" ,
130
132
} ,
131
133
items : [
132
- {
133
- // type: "docSidebar",
134
- // sidebarId: "blogsSidebar",
135
- position : "left" ,
136
- label : "Blog" ,
137
- to : "/blog" ,
138
- } ,
139
134
{
140
135
type : "docSidebar" ,
141
136
sidebarId : "docsSidebar" ,
142
137
position : "left" ,
143
138
label : "Docs" ,
144
139
to : "/docs/introduction" ,
145
140
} ,
146
-
141
+ {
142
+ // type: "docSidebar",
143
+ // sidebarId: "blogsSidebar",
144
+ position : "left" ,
145
+ label : "Blog" ,
146
+ to : "/blog" ,
147
+ } ,
147
148
{
148
149
href : "https://discord.gg/CVtemB5c" ,
149
150
className : "header-discord-link" ,
0 commit comments