File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ if (import.meta.hot) {
71
71
}
72
72
73
73
function debugConfigLayers ( path : string , layers : SiteData [ ] ) : SiteData [ ] {
74
- // debug info
74
+ // This helps users to understand which configuration files are active
75
75
if ( inBrowser && import . meta. env . DEV ) {
76
76
const summaryTitle = `Config Layers for ${ path } :`
77
77
const summary = layers . map ( ( c , i , arr ) => {
@@ -105,7 +105,6 @@ function getConfigLayers(root: SiteData, path: string): SiteData[] {
105
105
// per-app data
106
106
export function initData ( route : Route ) : VitePressData {
107
107
const site = computed ( ( ) => {
108
- ; ( window as any ) . siteData = siteDataRef . value
109
108
const path = route . data . relativePath
110
109
const data = resolveSiteDataByRoute ( siteDataRef . value , path )
111
110
return stackView ( ...debugConfigLayers ( path , getConfigLayers ( data , path ) ) )
You can’t perform that action at this time.
0 commit comments