File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 117117 "eclipse-pde/eclipse.pde" : "PDE" ,
118118 "eclipse-equinox/p2" : "Equinox p2" ,
119119 "eclipse-ide/.github" : "Eclipse IDE" ,
120+ "eclipse-simrel/.github" : "Eclipse SimRel" ,
120121 } ;
121122
122123 function getFileParameter ( ) {
137138 if ( parts == null ) {
138139 return `${ markdownBase } ${ path } ` ;
139140 }
140- return `${ selfHostedMarkdownBase } ${ parts [ 1 ] . replace ( / ^ \/ / , '' ) } ` ;
141+ return `${ selfHostedMarkdownBase } ${ parts [ 1 ] . replace ( / ^ \/ / , '' ) } ` ;
141142 }
142143
143144 const file = getFileParameter ( ) ;
@@ -262,7 +263,7 @@ <h2>Table of Contents</h2>
262263 if ( siteURL != null ) {
263264 img . src = siteURL ;
264265 } 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 } ` ) ;
266267 }
267268 }
268269 }
@@ -332,7 +333,15 @@ <h2>Table of Contents</h2>
332333 targetElement . innerHTML = 'No well-formed query parameter of the form <code>?file=org/repo/branch/path</code> has been specified.' ;
333334 } else {
334335 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+ ` ;
336345 } else {
337346 document . title = `${ repoName } Documentation | Eclipse Project` ;
338347
You can’t perform that action at this time.
0 commit comments