Ensure 'make' can be execute in top dir.
[promise.git] / etc / conf.py
1 import datetime
2 import sys
3 import os
4
5 try:
6     __import__('imp').find_module('sphinx.ext.numfig')
7     extensions = ['sphinx.ext.numfig']
8 except ImportError:
9     # 'pip install sphinx_numfig'
10     extensions = ['sphinx_numfig']
11
12 # plantuml
13 extensions.append('sphinxcontrib.plantuml')
14 plantuml = ['java', '-jar', 'plantuml.jar']
15
16 # numfig:
17 number_figures = True
18 figure_caption_prefix = "Fig."
19
20 source_suffix = '.rst'
21 master_doc = 'index'
22 pygments_style = 'sphinx'
23 html_use_index = False
24
25 pdf_documents = [('index', u'Promise', u'Promise Project', u'OPNFV')]
26 pdf_fit_mode = "shrink"
27 pdf_stylesheets = ['sphinx','kerning','a4']
28 #latex_domain_indices = False
29 #latex_use_modindex = False
30
31 latex_elements = {
32     'printindex': '',
33 }
34
35 project = u'Promise: Resource Management'
36 copyright = u'%s, OPNFV' % datetime.date.today().year
37 version = u'1.0.0'
38 release = u'1.0.0'
39
40 # TODO(r-mibu): remove the following line to index.rst
41 latex_appendices = ['07-schemas']