File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ function pages() {
226226 if ( href . includes ( "javafxdoc:" ) ) {
227227 let javafxdoc_id = href . match ( / j a v a f x d o c : ( [ \w \. \- ( ) , ] + ) / )
228228 if ( javafxdoc_id != null ) {
229- processedHref = processDocLink ( javafxdoc [ "javafxdoc_root" ] + javafxdoc [ javafxdoc_id [ 1 ] ] ) ;
229+ processedHref = processJavaFxDocLink ( javafxdoc [ "javafxdoc_root" ] + javafxdoc [ javafxdoc_id [ 1 ] ] ) ;
230230 if ( processedHref . includes ( "undefined" ) ) {
231- console . log ( "Javadoc " + javafxdoc_id [ 1 ] + " resolved to undefined" ) ;
231+ console . log ( "JavaFX Javadoc " + javafxdoc_id [ 1 ] + " resolved to undefined" ) ;
232232 }
233233 return `<a href="${ processedHref } " target="_blank" rel="noopener noreferrer">${ text } </a>` ;
234234 }
@@ -402,6 +402,10 @@ function processDocLink(link) {
402402 return link . replace ( "@@CURRENT_RELEASE@@" , javadoc [ `current_release` ] ) ;
403403}
404404
405+ function processJavaFxDocLink ( link ) {
406+ return link . replace ( "@@CURRENT_RELEASE@@" , javafxdoc [ `current_release` ] ) . replace ( "@@RELEASE_UUID@@" , javafxdoc [ `release_uuid` ] ) ;
407+ }
408+
405409
406410function is_tutorial ( file ) {
407411 return file . fm . type == "tutorial" || file . fm . type == "tutorial-group" ;
You can’t perform that action at this time.
0 commit comments