@@ -33,25 +33,43 @@ module.exports = {
3333 priority : 0.6 ,
3434 } ) ;
3535
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- }
36+ // Add .md versions of all documentation pages for AI ingestion
37+ // Based on the current sitemap structure
38+ const mdPages = [
39+ '/benefits.md' ,
40+ '/design.md' ,
41+ '/handbook/ai.md' ,
42+ '/handbook/commands.md' ,
43+ '/handbook/components/blockchain-interactions.md' ,
44+ '/handbook/components/component.md' ,
45+ '/handbook/components/network-requests.md' ,
46+ '/handbook/components/utilities.md' ,
47+ '/handbook/components/variables.md' ,
48+ '/handbook/overview.md' ,
49+ '/handbook/service.md' ,
50+ '/handbook/submission.md' ,
51+ '/handbook/template.md' ,
52+ '/handbook/triggers.md' ,
53+ '/handbook/workflows.md' ,
54+ '/how-it-works.md' ,
55+ '/overview.md' ,
56+ '/resources/llms.md' ,
57+ '/tutorial/1-overview.md' ,
58+ '/tutorial/2-setup.md' ,
59+ '/tutorial/3-project.md' ,
60+ '/tutorial/4-component.md' ,
61+ '/tutorial/5-build.md' ,
62+ '/tutorial/6-run-service.md' ,
63+ '/tutorial/7-prediction.md' ,
64+ ] ;
65+
66+ mdPages . forEach ( page => {
67+ paths . push ( {
68+ loc : page ,
69+ changefreq : 'daily' ,
70+ priority : 0.7 ,
5171 } ) ;
52- } catch ( error ) {
53- console . warn ( 'Could not dynamically load pages for sitemap:' , error ) ;
54- }
72+ } ) ;
5573
5674 return paths ;
5775 }
0 commit comments