@@ -8,7 +8,7 @@ const canonicalUrl = (page: string): string => {
88 . replace ( / ( ^ | \/ ) i n d e x \. m d $ / , '$1' )
99 . replace ( / \. m d $ / , '' )
1010
11- return `${ siteUrl } ${ path ? `/${ path } ` : '/' } `
11+ return `${ siteUrl } ${ path ? `/${ path } .html ` : '/index.html ' } `
1212}
1313
1414const searchConsoleVerification = 'OZHlBl5qnZRHEArDBmPQeDqrhUr0K32DjQDZ8YxrtuM'
@@ -23,9 +23,10 @@ export default defineConfig({
2323 hostname : siteUrl ,
2424 transformItems : ( items ) => items . map ( ( item ) => {
2525 const path = item . url . startsWith ( '/' ) ? item . url : `/${ item . url } `
26- const url = path === '/' || ! path . startsWith ( siteBase )
27- ? `${ siteBase } ${ path } `
28- : path
26+ const normalizedPath = path === '/' ? '/index.html' : path
27+ const url = ! normalizedPath . startsWith ( siteBase )
28+ ? `${ siteBase } ${ normalizedPath } `
29+ : normalizedPath
2930
3031 return {
3132 ...item ,
@@ -102,29 +103,30 @@ export default defineConfig({
102103 ]
103104 } ,
104105 themeConfig : {
106+ logoLink : `${ siteBase } /index.html` ,
105107 nav : [
106- { text : 'Get started' , link : '/introduction' } ,
108+ { text : 'Get started' , link : '/introduction.html ' } ,
107109 ] ,
108110 sidebar : [
109111 {
110112 text : 'Docs' ,
111113 items : [
112- { text : 'Overview' , link : '/' } ,
113- { text : 'Introduction' , link : '/introduction' } ,
114- { text : 'Installation' , link : '/getting-started' } ,
115- { text : 'Config' , link : '/configuration' }
114+ { text : 'Overview' , link : '/index.html ' } ,
115+ { text : 'Introduction' , link : '/introduction.html ' } ,
116+ { text : 'Installation' , link : '/getting-started.html ' } ,
117+ { text : 'Config' , link : '/configuration.html ' }
116118 ]
117119 } ,
118120 {
119121 text : 'Usage' ,
120122 items : [
121- { text : 'Validation and Runtime' , link : '/validation-and-runtime' } ,
122- { text : 'Sync and Blacklist' , link : '/sync-and-blacklist' } ,
123- { text : 'Schedule Sync' , link : '/schedule-syncing-automatically' } ,
124- { text : 'Caching' , link : '/caching' } ,
125- { text : 'Troubleshooting' , link : '/troubleshooting' } ,
126- { text : 'Contributing' , link : '/contributing' } ,
127- { text : 'Deprecated 5.0.0' , link : '/deprecated-5-0-0' }
123+ { text : 'Validation and Runtime' , link : '/validation-and-runtime.html ' } ,
124+ { text : 'Sync and Blacklist' , link : '/sync-and-blacklist.html ' } ,
125+ { text : 'Schedule Sync' , link : '/schedule-syncing-automatically.html ' } ,
126+ { text : 'Caching' , link : '/caching.html ' } ,
127+ { text : 'Troubleshooting' , link : '/troubleshooting.html ' } ,
128+ { text : 'Contributing' , link : '/contributing.html ' } ,
129+ { text : 'Deprecated 5.0.0' , link : '/deprecated-5-0-0.html ' }
128130 ]
129131 }
130132 ] ,
0 commit comments