File tree Expand file tree Collapse file tree 1 file changed +51
-1
lines changed
Expand file tree Collapse file tree 1 file changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,55 @@ module.exports = {
44 generateRobotsTxt : true ,
55 changefreq : 'daily' ,
66 generateIndexSitemap : false , // Disable index sitemap
7- sitemapSize : 50000 // Maximum size for a single sitemap
7+ sitemapSize : 50000 , // Maximum size for a single sitemap
8+ additionalPaths : async ( config ) => {
9+ const paths = [ ] ;
10+
11+ // Add LLM-specific files
12+ paths . push ( {
13+ loc : '/llms.txt' ,
14+ changefreq : 'daily' ,
15+ priority : 0.8 ,
16+ } ) ;
17+
18+ paths . push ( {
19+ loc : '/llms-full.txt' ,
20+ changefreq : 'daily' ,
21+ priority : 0.8 ,
22+ } ) ;
23+
24+ paths . push ( {
25+ loc : '/wavs-foundry-template.md' ,
26+ changefreq : 'weekly' ,
27+ priority : 0.6 ,
28+ } ) ;
29+
30+ paths . push ( {
31+ loc : '/wavs-wasi-utils.md' ,
32+ changefreq : 'weekly' ,
33+ priority : 0.6 ,
34+ } ) ;
35+
36+ // Dynamically add .md versions of all documentation pages for AI ingestion
37+ try {
38+ // Import the getPages function from your source
39+ const { getPages } = require ( './app/source' ) ;
40+ const pages = getPages ( ) ;
41+
42+ // Add .md version of each page
43+ pages . forEach ( page => {
44+ if ( page . url ) {
45+ paths . push ( {
46+ loc : `${ page . url } .md` ,
47+ changefreq : 'daily' ,
48+ priority : 0.7 ,
49+ } ) ;
50+ }
51+ } ) ;
52+ } catch ( error ) {
53+ console . warn ( 'Could not dynamically load pages for sitemap:' , error ) ;
54+ }
55+
56+ return paths ;
57+ }
858}
You can’t perform that action at this time.
0 commit comments