@@ -43,10 +43,10 @@ const config = defineConfig({
4343 logo : '/cap-logo.svg' ,
4444 outline : [ 2 , 3 ] ,
4545 socialLinks : [
46- { icon : 'github' , link : 'https://github.com/cap-js /docs' }
46+ { icon : 'github' , link : 'https://github.com/capire /docs' }
4747 ] ,
4848 editLink : {
49- pattern : 'https://github.com/cap-js /docs/edit/main/:path'
49+ pattern : 'https://github.com/capire /docs/edit/main/:path'
5050 } ,
5151 footer : {
5252 message : `
@@ -106,8 +106,8 @@ config.rewrites = rewrites
106106// Add custom capire info to the theme config
107107config . themeConfig . capire = {
108108 versions : {
109- java_services : '4.1.1 ' ,
110- java_cds4j : '4.1.1 '
109+ java_services : '4.2.0 ' ,
110+ java_cds4j : '4.2.0 '
111111 } ,
112112 gotoLinks : [ ]
113113}
@@ -200,7 +200,9 @@ import { promises as fs } from 'node:fs'
200200config . buildEnd = async ( { outDir, site } ) => {
201201 const sitemapURL = new URL ( siteURL . href )
202202 sitemapURL . pathname = path . join ( sitemapURL . pathname , 'sitemap.xml' )
203- await fs . writeFile ( path . resolve ( outDir , 'robots.txt' ) , `Sitemap: ${ sitemapURL } \n` )
203+ console . debug ( '✓ writing robots.txt with sitemap URL' , sitemapURL . href ) // eslint-disable-line no-console
204+ const robots = ( await fs . readFile ( path . resolve ( __dirname , 'robots.txt' ) ) ) . toString ( ) . replace ( '{{SITEMAP}}' , sitemapURL . href )
205+ await fs . writeFile ( path . join ( outDir , 'robots.txt' ) , robots )
204206
205207 // disabled by default to avoid online fetches during local build
206208 if ( process . env . VITE_CAPIRE_EXTRA_ASSETS ) {
0 commit comments