PDF build and doc reshuffle

Add PDF builder
Reshuffle the client doc building
This commit is contained in:
Andrew Hutchings 2012-10-25 13:40:15 +01:00
parent f223f5b1b1
commit 1612b65263
5 changed files with 18 additions and 6 deletions

7
doc/client/index.rst Normal file
View File

@ -0,0 +1,7 @@
Libra Command Line Client
=========================
.. toctree::
:maxdepth: 2
command

View File

@ -26,7 +26,7 @@ import datetime
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = []
extensions = ['rst2pdf.pdfbuilder']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@ -49,12 +49,13 @@ copyright = u'2012, Andrew Hutchings, David Shrewsbury'
# built documents.
#
# The short X.Y version.
version = "%d.%02d" % (
version = "%d-%02d-%02d-alpha1" % (
datetime.datetime.now().year,
datetime.datetime.now().month
datetime.datetime.now().month,
datetime.datetime.now().day
)
# The full version, including alpha/beta/rc tags.
release = "%d.%02d.%02d" % (
release = "%d-%02d-%02d-alpha1" % (
datetime.datetime.now().year,
datetime.datetime.now().month,
datetime.datetime.now().day
@ -192,6 +193,10 @@ latex_documents = [
u'Andrew Hutchings and David Shrewsbury', 'manual'),
]
pdf_documents = [('index', u'Libra', u'Libra Client, Worker and Pool Manager Documentation', u'Andrew Hutchings and David Shrewsbury')]
#pdf_break_level = 1
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None

View File

@ -4,5 +4,5 @@ Load Balancer as a Service Device Tools
.. toctree::
:maxdepth: 3
client
client/index
worker/index

View File

@ -34,7 +34,7 @@ try:
class local_BuildDoc(BuildDoc):
def run(self):
for builder in ['html', 'man']:
for builder in ['html', 'man', 'pdf']:
self.builder = builder
self.finalize_options()
BuildDoc.run(self)