11import type * as Preset from "@docusaurus/preset-classic" ;
22import type { Config } from "@docusaurus/types" ;
33import { themes as prismThemes } from "prism-react-renderer" ;
4+ import { EnumChangefreq } from "sitemap" ;
45
56// const baseUrl = "/docs";
67// const baseUrl = "/blog";
@@ -40,10 +41,6 @@ const config: Config = {
4041"@docusaurus/plugin-client-redirects" ,
4142{
4243redirects :[
43- {
44- to :"docs/introduction" ,
45- from :"/" ,
46- } ,
4744{
4845to :"/docs/get-started/signup" ,
4946from :"/docs/get-started" ,
@@ -70,8 +67,7 @@ const config: Config = {
7067{
7168docs :{
7269sidebarPath :"./sidebars.ts" ,
73- // path: "./docs",
74- routeBasePath :"/" ,
70+ routeBasePath :"/docs" ,
7571breadcrumbs :true ,
7672} ,
7773blog :{
@@ -81,6 +77,12 @@ const config: Config = {
8177theme :{
8278customCss :"./src/css/custom.css" ,
8379} ,
80+ sitemap :{
81+ changefreq :"weekly" as EnumChangefreq ,
82+ priority :0.5 ,
83+ ignorePatterns :[ "/tags/**" ] ,
84+ filename :"sitemap.xml" ,
85+ } ,
8486} satisfies Preset . Options ,
8587] ,
8688] ,
@@ -129,21 +131,20 @@ const config: Config = {
129131href :"https://coderabbit.ai" ,
130132} ,
131133items :[
132- {
133- // type: "docSidebar",
134- // sidebarId: "blogsSidebar",
135- position :"left" ,
136- label :"Blog" ,
137- to :"/blog" ,
138- } ,
139134{
140135type :"docSidebar" ,
141136sidebarId :"docsSidebar" ,
142137position :"left" ,
143138label :"Docs" ,
144139to :"/docs/introduction" ,
145140} ,
146-
141+ {
142+ // type: "docSidebar",
143+ // sidebarId: "blogsSidebar",
144+ position :"left" ,
145+ label :"Blog" ,
146+ to :"/blog" ,
147+ } ,
147148{
148149href :"https://discord.gg/CVtemB5c" ,
149150className :"header-discord-link" ,