You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2019/10/28 18:34:16 UTC

[lucene-solr] 02/02: Start to remove PDF from build files

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

ctargett pushed a commit to branch jira/solr-13782
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 073ffea9b5fda35010309039f26c8050072e96bb
Author: Cassandra Targett <ca...@lucidworks.com>
AuthorDate: Fri Oct 18 15:26:24 2019 -0500

    Start to remove PDF from build files
---
 dev-tools/scripts/jenkins.build.ref.guide.sh |  2 +-
 solr/solr-ref-guide/build.xml                | 35 ++--------------------------
 2 files changed, 3 insertions(+), 34 deletions(-)

diff --git a/dev-tools/scripts/jenkins.build.ref.guide.sh b/dev-tools/scripts/jenkins.build.ref.guide.sh
index c3203ee..34fb778 100755
--- a/dev-tools/scripts/jenkins.build.ref.guide.sh
+++ b/dev-tools/scripts/jenkins.build.ref.guide.sh
@@ -70,4 +70,4 @@ echoRun "gem install --force --version 1.1.5 concurrent-ruby"
 cd solr/solr-ref-guide
 
 set -x                                   # Re-enable command echoing
-ant clean build-site build-pdf
+ant clean build-site
diff --git a/solr/solr-ref-guide/build.xml b/solr/solr-ref-guide/build.xml
index f8ab349..51a441a 100644
--- a/solr/solr-ref-guide/build.xml
+++ b/solr/solr-ref-guide/build.xml
@@ -248,36 +248,6 @@
   </macrodef>
 
 
-  <!-- ====== PDF Build ======= -->
-  <target name="build-pdf" depends="bare-bones-html-validation,-build-pdf-and-reduce-pdf"
-          description="Builds the PDF (after building &amp; validating a bare-bones html version)" />
-  <target name="-build-pdf-and-reduce-pdf" depends="-build-raw-pdf,-reduce-pdf-size">
-    <!-- NOTE: this does everything realted to building the PDF, but skips the bare-bones-html validation -->
-    <echo>Finished Building ${build.dir}/${pdf-filename}</echo>
-  </target>
-  <target name="-build-raw-pdf"
-          depends="build-nav-data-files,resolve">
-    <mkdir dir="${build.dir}/pdf-tmp"/>
-    <asciidoctor-convert sourceDirectory="${build.content.dir}/pdf"
-                         sourceDocumentName="SolrRefGuide-all.adoc"
-                         outputDirectory="${build.dir}/pdf-tmp"
-                         backend="pdf"
-                         />
-    <move file="${build.dir}/pdf-tmp/SolrRefGuide-all.pdf" tofile="${build.dir}/pdf-tmp/RAW-${pdf-filename}" />
-  </target>
-
-  <target name="-reduce-pdf-size" depends="build-init,build-tools-jar">
-    <java classname="ReducePDFSize"
-          failonerror="true"
-          fork="true">
-      <classpath refid="tools-run-classpath"/>
-      <arg value="${build.dir}/pdf-tmp/RAW-${pdf-filename}"/>
-      <arg value="${build.dir}/${pdf-filename}"/>
-    </java>
-  </target>
-
-
-
   <!-- ======= HTML Site Build =======
        Builds site with Jekyll.
        This (for now) assumes that Jekyll (http://jekyllrb.com) is installed locally. -->
@@ -297,7 +267,7 @@
           depends="build-init,build-nav-data-files" >
     <echo>Running Jekyll...</echo>
     <exec executable="jekyll" dir="${build.content.dir}" failonerror="true">
-      <arg value="build"/>
+      <arg value="build --verbose"/>
     </exec>
   </target>
 
@@ -334,10 +304,9 @@
 
   <target name="default"
           description="Builds both a PDF and HTML versions of the ref guide"
-          depends="-build-pdf-and-reduce-pdf,build-site">
+          depends="build-site">
     <!-- NOTE: we don't depend on build-pdf because then we'd also get the bare-bones HTML and do
          link validation twice -->
-    <echo>PDF: ${build.dir}/${pdf-filename}</echo>
     <echo>SITE: ${build.dir}/html-site/${main-page}.html</echo>
   </target>