You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/02/16 16:46:12 UTC

[lucene-site] branch master updated: LUCENE-8987: Hackish fix for the Solr Javadocs link in resources page -- TODO fix this in a better way without creating a new template

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

uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c005f8  LUCENE-8987: Hackish fix for the Solr Javadocs link in resources page -- TODO fix this in a better way without creating a new template
0c005f8 is described below

commit 0c005f8fb771174265541a3394eda55d9f1b60da
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sun Feb 16 17:46:00 2020 +0100

    LUCENE-8987: Hackish fix for the Solr Javadocs link in resources page -- TODO fix this in a better way without creating a new template
---
 content/pages/solr/resources.md             | 2 +-
 themes/lucene/templates/solr/resources.html | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/content/pages/solr/resources.md b/content/pages/solr/resources.md
index f2e9b89..1685ade 100644
--- a/content/pages/solr/resources.md
+++ b/content/pages/solr/resources.md
@@ -49,7 +49,7 @@ Beginning with Solr 4.4, a detailed reference guide is available online.
 Solr generates JavaDocs for all included code in each release.
 Copies of this documentation for every release can be found online:
 
-* [Latest Release](/solr/{{ LUCENE_LATEST_RELEASE | replace(".", "_") }}/index.html)
+* [Latest Release](__DOCSLINK__)
 
 <h3 class="offset" id="additional-documentation">Additional Documentation</h3>
 
diff --git a/themes/lucene/templates/solr/resources.html b/themes/lucene/templates/solr/resources.html
index aef2de2..8d507e9 100644
--- a/themes/lucene/templates/solr/resources.html
+++ b/themes/lucene/templates/solr/resources.html
@@ -9,3 +9,7 @@
 <dd><a data-scroll href="#presentations">Presentations</a></dd>
 <dd><a data-scroll href="#videos">Videos</a></dd>
 {% endblock %}
+
+{% block content_inner %}
+{{ page.content | replace('__DOCSLINK__', '/solr/%s/index.html' % (LUCENE_LATEST_RELEASE | replace(".", "_"))) }}
+{% endblock content_inner %}