PDF build and doc reshuffle
Add PDF builder Reshuffle the client doc building
This commit is contained in:
parent
f223f5b1b1
commit
1612b65263
7
doc/client/index.rst
Normal file
7
doc/client/index.rst
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Libra Command Line Client
|
||||||
|
=========================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
command
|
13
doc/conf.py
13
doc/conf.py
@ -26,7 +26,7 @@ import datetime
|
|||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# 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.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
@ -49,12 +49,13 @@ copyright = u'2012, Andrew Hutchings, David Shrewsbury'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = "%d.%02d" % (
|
version = "%d-%02d-%02d-alpha1" % (
|
||||||
datetime.datetime.now().year,
|
datetime.datetime.now().year,
|
||||||
datetime.datetime.now().month
|
datetime.datetime.now().month,
|
||||||
|
datetime.datetime.now().day
|
||||||
)
|
)
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = "%d.%02d.%02d" % (
|
release = "%d-%02d-%02d-alpha1" % (
|
||||||
datetime.datetime.now().year,
|
datetime.datetime.now().year,
|
||||||
datetime.datetime.now().month,
|
datetime.datetime.now().month,
|
||||||
datetime.datetime.now().day
|
datetime.datetime.now().day
|
||||||
@ -192,6 +193,10 @@ latex_documents = [
|
|||||||
u'Andrew Hutchings and David Shrewsbury', 'manual'),
|
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 name of an image file (relative to this directory) to place at the top of
|
||||||
# the title page.
|
# the title page.
|
||||||
#latex_logo = None
|
#latex_logo = None
|
||||||
|
@ -4,5 +4,5 @@ Load Balancer as a Service Device Tools
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 3
|
:maxdepth: 3
|
||||||
|
|
||||||
client
|
client/index
|
||||||
worker/index
|
worker/index
|
||||||
|
2
setup.py
2
setup.py
@ -34,7 +34,7 @@ try:
|
|||||||
|
|
||||||
class local_BuildDoc(BuildDoc):
|
class local_BuildDoc(BuildDoc):
|
||||||
def run(self):
|
def run(self):
|
||||||
for builder in ['html', 'man']:
|
for builder in ['html', 'man', 'pdf']:
|
||||||
self.builder = builder
|
self.builder = builder
|
||||||
self.finalize_options()
|
self.finalize_options()
|
||||||
BuildDoc.run(self)
|
BuildDoc.run(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user