File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+
3+ module . exports . register = function registerJavadocLinkAttribute ( registry ) {
4+ registry . preprocessor ( function ( ) {
5+ this . process ( ( doc , reader ) => {
6+ const pageVersion = doc . getAttribute ( 'page-version' ) || doc . getAttribute ( 'page-component-version' )
7+ doc . setAttribute ( 'link-javadoc' , `https://javadoc.jmonkeyengine.org/${ pageVersion } ` )
8+ return reader
9+ } )
10+ } )
11+ }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ asciidoc:
3333 orgname : ' jMonkeyEngine'
3434 # Site wide setting of javaDoc url. Soft set using '@' allows override at
3535 # component and page level.
36- link-javadoc : ' https://javadoc.jmonkeyengine.org/v3.4.1-stable @'
36+ link-javadoc : ' https://javadoc.jmonkeyengine.org/latest @'
3737 # Enables the UI macros (button, menu and kbd)
3838 experimental : ' '
3939 # Adds an anchor in front of the section title when the mouse cursor hovers
@@ -43,6 +43,7 @@ asciidoc:
4343 # Twitter Emoji
4444 # see: https://github.com/Mogztter/asciidoctor-emoji
4545 - asciidoctor-emoji
46+ - ./lib/javadoc-link-attribute-extension.js
4647runtime :
4748 cache_dir : ./.cache/antora
4849 fetch : true
You can’t perform that action at this time.
0 commit comments