This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tapestry-5-site-builder.git
commit a96d837abba05d7e5674bc3a565d2c226f4bd6c5 Author: Volker Lamp <[email protected]> AuthorDate: Mon Jul 29 12:23:16 2024 +0200 Inline version attribute to take precedence over doc javadoc-version attribute. --- lib/javadoc-processor.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/javadoc-processor.js b/lib/javadoc-processor.js index bfcf785..f20d537 100644 --- a/lib/javadoc-processor.js +++ b/lib/javadoc-processor.js @@ -49,17 +49,11 @@ module.exports = function (registry) { var simpleClassName = className.slice(target.lastIndexOf('.') + 1); - /* var version = attrs.version == undefined - ? 'current' - : attrs.version; - */ - var version = parent.document.getAttribute('javadoc-version') == undefined - ? attrs.version == undefined + ? parent.document.getAttribute('javadoc-version') == undefined ? 'current' - : attrs.version - : parent.document.getAttribute('javadoc-version') - + : parent.document.getAttribute('javadoc-version') + : attrs.version; var memberSuffix = memberName == undefined ? '' : '#' + memberName;
