Skip to content

Apache Lucene open-source search software

SOLR-3733: Add a link from Solr back to Lucene docs

Uwe Schindler4ebfe6108eed
diff --git a/solr/build.xml b/solr/build.xml
index b55903e6334..a666bb208ab 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -143,7 +143,7 @@
depends="javadocs,changes-to-html,process-webpages"/>
<target name="compile-core" depends="compile-solr-core" unless="solr.core.compiled"/>
- <target name="process-webpages" depends="resolve-pegdown">
+ <target name="process-webpages" depends="define-lucene-javadoc-url"> <!--depends="resolve-pegdown">-->
<makeurl property="process-webpages.buildfiles" separator="|">
<fileset dir="." includes="core/build.xml,test-framework/build.xml,solrj/build.xml,contrib/**/build.xml"/>
</makeurl>
@@ -159,12 +159,15 @@
<outputproperty name="indent" value="yes"/>
<param name="buildfiles" expression="${process-webpages.buildfiles}"/>
<param name="version" expression="${version}"/>
+ <param name="luceneJavadocUrl" expression="${lucene.javadoc.url}"/>
</xslt>
+ <!--nothing at the moment:
<pegdown todir="${javadoc.dir}">
<fileset dir="." includes="MIGRATE.txt,JRE_VERSION_MIGRATION.txt"/>
<globmapper from="*.txt" to="*.html"/>
</pegdown>
+ -->
<copy todir="${javadoc.dir}">
<fileset dir="site/html" includes="**/*"/>
diff --git a/solr/site/xsl/index.xsl b/solr/site/xsl/index.xsl
index 829ae219a69..b0969c235d9 100644
--- a/solr/site/xsl/index.xsl
+++ b/solr/site/xsl/index.xsl
@@ -22,6 +22,7 @@
>
<xsl:param name="buildfiles"/>
<xsl:param name="version"/>
+ <xsl:param name="luceneJavadocUrl"/>
<!--
NOTE: This template matches the root element of any given input XML document!
@@ -56,6 +57,7 @@
<ul>
<li><a href="changes/Changes.html">Changes</a>: List of changes in this release.</li>
<li><a href="tutorial.html">Solr Tutorial</a>: This document covers the basics of running Solr using an example schema, and some sample data.</li>
+ <li><a href="{$luceneJavadocUrl}index.html">Lucene Documentation</a></li>
</ul>
<h2>API Javadocs</h2>
<xsl:call-template name="modules"/>