couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject git commit: More work on the PDF targeet
Date Sat, 06 Oct 2012 11:30:08 GMT
Updated Branches:
  refs/heads/docs 21b1cb20b -> 70a3d93f3


More work on the PDF targeet


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/70a3d93f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/70a3d93f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/70a3d93f

Branch: refs/heads/docs
Commit: 70a3d93f3d35bac40073fb2ceb8226a3327899e1
Parents: 21b1cb2
Author: Noah Slater <nslater@apache.org>
Authored: Sat Oct 6 12:27:52 2012 +0100
Committer: Noah Slater <nslater@apache.org>
Committed: Sat Oct 6 12:27:52 2012 +0100

----------------------------------------------------------------------
 share/doc/build/Makefile.am |   19 +++++++++++++------
 share/doc/src/conf.py       |    9 +++++++++
 2 files changed, 22 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/70a3d93f/share/doc/build/Makefile.am
----------------------------------------------------------------------
diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am
index fefebfc..05c051f 100644
--- a/share/doc/build/Makefile.am
+++ b/share/doc/build/Makefile.am
@@ -110,11 +110,16 @@ html_files = \
     html/searchindex.js \
     html/ssl.html
 
-nobase_dist_localdoc_DATA = \
-	$(html_files)
+pdf_files = latex/manual.pdf.gz
+
+nobase_dist_localdoc_DATA = $(html_files)
+
+dist_localdoc_DATA = $(pdf_files)
 
 $(html_files): sphinx-html
 
+$(pdf_files): sphinx-pdf
+
 # @@ seems to get called twice during the build
 .PHONY: sphinx-html
 sphinx-html: ../src/_static
@@ -122,8 +127,9 @@ sphinx-html: ../src/_static
 
 .PHONY: sphinx-pdf
 sphinx-pdf:
-	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
-	#@ $(MAKE) -C $(BUILDDIR)/latex all-pdf
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex
+	$(MAKE) -C latex all-pdf
+	-gzip -9 < latex/manual.pdf > latex/manual.pdf.gz
 
 # @@ figure out how to remove this _static dir
 ../src/_static:
@@ -134,6 +140,7 @@ sphinx-pdf:
 
 # @@ check that maintainer-clean works for help2man
 maintainer-clean-local:
-	mkdir ../src/_static
-	rm -fr html
+	rmdir ../src/_static
 	rm -fr doctrees
+	rm -fr html
+	rm -fr latex

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70a3d93f/share/doc/src/conf.py
----------------------------------------------------------------------
diff --git a/share/doc/src/conf.py b/share/doc/src/conf.py
index d738428..140ee42 100644
--- a/share/doc/src/conf.py
+++ b/share/doc/src/conf.py
@@ -47,3 +47,12 @@ html_logo = ""
 html_favicon = ""
 
 html_use_opensearch = ""
+
+latex_documents = [(
+	"index",
+	"CouchDB.tex",
+	"",
+	"",
+	"manual",
+	True
+)]
\ No newline at end of file


Mime
View raw message