[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26361] trunk/blender/source/blender/ python/sphinx_doc_gen.py: minor changes needed for PDF generation

Campbell Barton ideasman42 at gmail.com
Thu Jan 28 11:48:17 CET 2010


Revision: 26361
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26361
Author:   campbellbarton
Date:     2010-01-28 11:48:17 +0100 (Thu, 28 Jan 2010)

Log Message:
-----------
minor changes needed for PDF generation

Modified Paths:
--------------
    trunk/blender/source/blender/python/sphinx_doc_gen.py

Modified: trunk/blender/source/blender/python/sphinx_doc_gen.py
===================================================================
--- trunk/blender/source/blender/python/sphinx_doc_gen.py	2010-01-28 07:26:21 UTC (rev 26360)
+++ trunk/blender/source/blender/python/sphinx_doc_gen.py	2010-01-28 10:48:17 UTC (rev 26361)
@@ -27,6 +27,13 @@
 Generate html docs  by running...
     
     sphinx-build source/blender/python/doc/sphinx-in source/blender/python/doc/sphinx-out
+
+
+For PDF generation
+
+    sphinx-build -b latex source/blender/python/doc/sphinx-in source/blender/python/doc/sphinx-out
+    cd source/blender/python/doc/sphinx-out
+    make
 '''
 
 
@@ -215,6 +222,10 @@
     fw("copyright = u'Blender Foundation'\n")
     fw("version = '%s'\n" % bpy.app.version_string)
     fw("release = '%s'\n" % bpy.app.version_string)
+    fw("\n")
+    # needed for latex, pdf gen
+    fw("latex_documents = [ ('contents', 'contents.tex', 'Blender Index', 'Blender Foundation', 'manual'), ]\n")
+    fw("latex_paper_size = 'a4paper'\n")
     file.close()
 
 





More information about the Bf-blender-cvs mailing list