File tree Expand file tree Collapse file tree 3 files changed +4680
-4345
lines changed Expand file tree Collapse file tree 3 files changed +4680
-4345
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ const config = {
53
53
theme : {
54
54
customCss : require . resolve ( './src/css/custom.css' ) ,
55
55
} ,
56
+ sitemap : {
57
+ lastmod : 'date' ,
58
+ changefreq : 'weekly' ,
59
+ priority : 0.5 ,
60
+ ignorePatterns : [ '/tags/**' ] ,
61
+ filename : 'sitemap.xml' ,
62
+ createSitemapItems : async ( params ) => {
63
+ const { defaultCreateSitemapItems, ...rest } = params ;
64
+ const items = await defaultCreateSitemapItems ( rest ) ;
65
+ return items . filter ( ( item ) => ! item . url . includes ( '/page/' ) ) ;
66
+ } ,
67
+ } ,
56
68
} ) ,
57
69
] ,
58
70
] ,
Original file line number Diff line number Diff line change 16
16
},
17
17
"dependencies" : {
18
18
"@docusaurus/core" : " ^3.0.1" ,
19
+ "@docusaurus/plugin-sitemap" : " ^3.6.3" ,
19
20
"@docusaurus/preset-classic" : " ^3.0.1" ,
20
21
"@docusaurus/theme-mermaid" : " ^3.0.1" ,
21
22
"@mdx-js/react" : " ^3.0.0" ,
46
47
},
47
48
"engines" : {
48
49
"node" : " >=16.14"
49
- }
50
+ },
51
+ "packageManager" :
" [email protected] "
50
52
}
You can’t perform that action at this time.
0 commit comments