File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 117
117
"eclipse-pde/eclipse.pde" : "PDE" ,
118
118
"eclipse-equinox/p2" : "Equinox p2" ,
119
119
"eclipse-ide/.github" : "Eclipse IDE" ,
120
+ "eclipse-simrel/.github" : "Eclipse SimRel" ,
120
121
} ;
121
122
122
123
function getFileParameter ( ) {
137
138
if ( parts == null ) {
138
139
return `${ markdownBase } ${ path } ` ;
139
140
}
140
- return `${ selfHostedMarkdownBase } ${ parts [ 1 ] . replace ( / ^ \/ / , '' ) } ` ;
141
+ return `${ selfHostedMarkdownBase } ${ parts [ 1 ] . replace ( / ^ \/ / , '' ) } ` ;
141
142
}
142
143
143
144
const file = getFileParameter ( ) ;
@@ -262,7 +263,7 @@ <h2>Table of Contents</h2>
262
263
if ( siteURL != null ) {
263
264
img . src = siteURL ;
264
265
} else {
265
- img . src = `https://raw.githubusercontent.com/${ org } /${ repo } /${ branch } /${ src } ` ;
266
+ img . src = new URL ( `https://raw.githubusercontent.com/${ org } /${ repo } /${ branch } /${ path } /../ ${ src } ` ) ;
266
267
}
267
268
}
268
269
}
@@ -332,7 +333,15 @@ <h2>Table of Contents</h2>
332
333
targetElement . innerHTML = 'No well-formed query parameter of the form <code>?file=org/repo/branch/path</code> has been specified.' ;
333
334
} else {
334
335
if ( repoName == null ) {
335
- targetElement . innerHTML = `The repository ${ org } /${ repo } is not on the allowed list.` ;
336
+ const url = `https://github.com/${ org } /${ repo } /${ branch } /${ path } ` ;
337
+ targetElement . innerHTML = `
338
+ <div>
339
+ The repository ${ org } /${ repo } is not on the allowed list.
340
+ </div>
341
+ <ul>
342
+ <li><a href="{$url}${ window . location . hash } ">${ url } </a></li>
343
+ </ul>
344
+ ` ;
336
345
} else {
337
346
document . title = `${ repoName } Documentation | Eclipse Project` ;
338
347
You can’t perform that action at this time.
0 commit comments