[Bf-docboard-svn] bf-manual: [7574] trunk/blender_docs/Makefile: Makefile: Add target to convert epub to pdf

Aaron Carlisle noreply at blender.org
Tue Jan 12 07:30:51 CET 2021


Revision: 7574
          https://developer.blender.org/rBM7574
Author:   Blendify
Date:     2021-01-12 07:30:51 +0100 (Tue, 12 Jan 2021)
Log Message:
-----------
Makefile: Add target to convert epub to pdf

This is primarly just for testing purposes.

Modified Paths:
--------------
    trunk/blender_docs/Makefile

Modified: trunk/blender_docs/Makefile
===================================================================
--- trunk/blender_docs/Makefile	2021-01-12 06:16:28 UTC (rev 7573)
+++ trunk/blender_docs/Makefile	2021-01-12 06:30:51 UTC (rev 7574)
@@ -87,6 +87,12 @@
 	@echo "To view, run:"
 	@echo "  "$(OPEN_CMD) $(shell pwd)"/$(BUILDDIR)/latex/blender_manual.pdf"
 
+epubpdf: .SPHINXBUILD_EXISTS
+	@$(SPHINXBUILD) -M epub "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+	@ebook-convert $(BUILDDIR)/epub/*.epub blender_manual.pdf \
+	--pdf-default-font-size 16 \
+	--pdf-mono-font-size 14
+
 readme:
 	@rst2html5 readme.rst > $(BUILDDIR)/readme.html
 	@echo "Build finished. The HTML page is in $(BUILDDIR)/readme.html."
@@ -127,6 +133,7 @@
 	@echo "=============="
 	@echo "Convenience targets provided for building docs"
 	@echo ""
+	@echo "- epubpdf              to convert an epub file to pdf"
 	@echo "- readme               to make a 'readme.html' file"
 	@echo "- clean                to delete all old build files"
 	@echo ""



More information about the Bf-docboard-svn mailing list