This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch jira/solr-15556-antora
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/jira/solr-15556-antora by this 
push:
     new 7684e62  Fix the javadocs url in the ref-guide header.
7684e62 is described below

commit 7684e628d938bcb22babe6174e28a135218012c2
Author: Houston Putman <[email protected]>
AuthorDate: Wed Jan 26 14:59:27 2022 -0500

    Fix the javadocs url in the ref-guide header.
---
 solr/solr-ref-guide/antora.yml                         | 8 ++++----
 solr/solr-ref-guide/ui/src/partials/header-content.hbs | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/solr/solr-ref-guide/antora.yml b/solr/solr-ref-guide/antora.yml
index 4b10c6c..632421c 100644
--- a/solr/solr-ref-guide/antora.yml
+++ b/solr/solr-ref-guide/antora.yml
@@ -19,12 +19,12 @@ asciidoc:
   attributes:
     idseparator: '-'
     idprefix: ''
-    # 'patch_version' is the 'z' part of x.y.z semantic version
-    patch_version: '0'
-    solr-javadocs: 
https://solr.apache.org/docs/{page-component-version}_{patch_version}
+    # 'patch-version' is the 'z' part of x.y.z semantic version
+    page-patch-version: '0'
+    solr-javadocs: 
https://solr.apache.org/docs/{page-component-version}_{page-patch-version}
     # TODO the following works for now but might not be right if
     # we don't have version-to-version match between Lucene and Solr
-    lucene-javadocs: 
https://lucene.apache.org/core/{page-component-version}_{patch_version}
+    lucene-javadocs: 
https://lucene.apache.org/core/{page-component-version}_{page-patch-version}
     java-javadocs: 
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/
     # TODO the following are hardcoded for now
     # Some constructed  links may be 404 TODO to check
diff --git a/solr/solr-ref-guide/ui/src/partials/header-content.hbs 
b/solr/solr-ref-guide/ui/src/partials/header-content.hbs
index b7b78ca..1f04d99 100644
--- a/solr/solr-ref-guide/ui/src/partials/header-content.hbs
+++ b/solr/solr-ref-guide/ui/src/partials/header-content.hbs
@@ -15,7 +15,7 @@
         <div class="navbar-item has-dropdown is-hoverable">
           <a class="navbar-link" href="#">Resources</a>
           <div class="navbar-dropdown">
-            <a class="navbar-item" 
href="https://solr.apache.org/docs/{{page.version}}/solr-core/index.html"; 
target="_blank" rel="noreferrer nopener">Solr Javadocs</a>
+            <a class="navbar-item" 
href="https://solr.apache.org/docs/{{{page.attributes.component-version}}}_{{{page.attributes.patch-version}}}/solr-core/index.html";
 target="_blank" rel="noreferrer nopener">Solr Javadocs</a>
             <a class="navbar-item" 
href="https://solr.apache.org/community.html#version-control"; target="_blank" 
rel="noreferrer nopener">Source Code</a>
             <a class="navbar-item" 
href="https://solr.apache.org/community.html"; target="_blank" rel="noreferrer 
nopener">Community Links</a>
             <a class="navbar-item" 
href="https://github.com/apache/solr/tree/main/dev-docs/ref-guide"; 
target="_blank" rel="noreferrer nopener">Contribute</a>

Reply via email to