Merge "Add pdf-docs env to tox.ini"
This commit is contained in:
commit
41b45f9e89
|
@ -271,11 +271,10 @@ class SupportMatrixDirective(rst.Directive):
|
||||||
def _build_backend_detail(self, matrix, content):
|
def _build_backend_detail(self, matrix, content):
|
||||||
|
|
||||||
detailstitle = nodes.subtitle(text="Backend Details")
|
detailstitle = nodes.subtitle(text="Backend Details")
|
||||||
|
|
||||||
content.append(detailstitle)
|
content.append(detailstitle)
|
||||||
|
content.append(nodes.paragraph())
|
||||||
|
|
||||||
for key in six.iterkeys(matrix.backends):
|
for key in six.iterkeys(matrix.backends):
|
||||||
|
|
||||||
content.append(
|
content.append(
|
||||||
nodes.subtitle(text=matrix.backends[key].title))
|
nodes.subtitle(text=matrix.backends[key].title))
|
||||||
content.append(
|
content.append(
|
||||||
|
@ -283,7 +282,7 @@ class SupportMatrixDirective(rst.Directive):
|
||||||
matrix.backends[key],
|
matrix.backends[key],
|
||||||
matrix))
|
matrix))
|
||||||
|
|
||||||
content.append(nodes.line())
|
content.append(nodes.paragraph())
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
@ -343,13 +342,11 @@ class SupportMatrixDirective(rst.Directive):
|
||||||
summary = nodes.table()
|
summary = nodes.table()
|
||||||
summary.set_class("table")
|
summary.set_class("table")
|
||||||
summary.set_class("table-condensed")
|
summary.set_class("table-condensed")
|
||||||
cols = len(list(six.iterkeys(matrix.backends)))
|
summarygroup = nodes.tgroup(cols=5)
|
||||||
cols += 2
|
|
||||||
summarygroup = nodes.tgroup(cols=cols)
|
|
||||||
summarybody = nodes.tbody()
|
summarybody = nodes.tbody()
|
||||||
summaryhead = nodes.thead()
|
summaryhead = nodes.thead()
|
||||||
|
|
||||||
for i in range(cols):
|
for i in range(5):
|
||||||
summarygroup.append(nodes.colspec(colwidth=1))
|
summarygroup.append(nodes.colspec(colwidth=1))
|
||||||
summarygroup.append(summaryhead)
|
summarygroup.append(summaryhead)
|
||||||
summarygroup.append(summarybody)
|
summarygroup.append(summarybody)
|
||||||
|
@ -377,6 +374,7 @@ class SupportMatrixDirective(rst.Directive):
|
||||||
blank = nodes.entry()
|
blank = nodes.entry()
|
||||||
blank.append(nodes.strong(text="Notes"))
|
blank.append(nodes.strong(text="Notes"))
|
||||||
header.append(blank)
|
header.append(blank)
|
||||||
|
|
||||||
summaryhead.append(header)
|
summaryhead.append(header)
|
||||||
|
|
||||||
grades = matrix.grades
|
grades = matrix.grades
|
||||||
|
|
|
@ -2,5 +2,12 @@
|
||||||
designate.conf
|
designate.conf
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
.. only:: html
|
||||||
|
|
||||||
.. literalinclude:: ../../_static/designate.conf.sample
|
.. literalinclude:: ../../_static/designate.conf.sample
|
||||||
:language: ini
|
:language: ini
|
||||||
|
|
||||||
|
.. only:: latex
|
||||||
|
|
||||||
|
Please refer to the online version of this documentation for a full
|
||||||
|
config file example.
|
||||||
|
|
|
@ -209,13 +209,15 @@ latex_elements = {
|
||||||
|
|
||||||
# Additional stuff for the LaTeX preamble.
|
# Additional stuff for the LaTeX preamble.
|
||||||
#'preamble': '',
|
#'preamble': '',
|
||||||
|
|
||||||
|
'preamble': r'\setcounter{tocdepth}{3}',
|
||||||
}
|
}
|
||||||
|
|
||||||
# Grouping the document tree into LaTeX files. List of tuples
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'designate.tex', u'Designate Documentation',
|
('index', 'doc-designate.tex', u'Designate Documentation',
|
||||||
u'Managed I.T.', 'manual'),
|
u'Designate Developers', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -236,8 +238,10 @@ latex_documents = [
|
||||||
#latex_appendices = []
|
#latex_appendices = []
|
||||||
|
|
||||||
# If false, no module index is generated.
|
# If false, no module index is generated.
|
||||||
#latex_domain_indices = True
|
latex_domain_indices = False
|
||||||
|
|
||||||
|
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
|
||||||
|
latex_use_xindy = False
|
||||||
|
|
||||||
# -- Options for manual page output --------------------------------------------
|
# -- Options for manual page output --------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -333,10 +333,10 @@ GMR Example
|
||||||
log-dir = /opt/stack/logs/designate
|
log-dir = /opt/stack/logs/designate
|
||||||
log-file = None
|
log-file = None
|
||||||
log-format = None
|
log-format = None
|
||||||
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[01;36m%(request_id)s [00;36m%(user)s %(tenant)s%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m
|
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[01;36m%(request_id)s [00;36m%(user)s %(tenant)s%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m
|
||||||
logging_debug_format_suffix = [00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d[00m
|
logging_debug_format_suffix = [00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d[00m
|
||||||
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[00;36m-%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m
|
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[00;36m-%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m
|
||||||
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s [01;35m%(instance)s[00m
|
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s [01;35m%(instance)s[00m
|
||||||
mdns-topic = mdns
|
mdns-topic = mdns
|
||||||
network_api = neutron
|
network_api = neutron
|
||||||
notification_driver =
|
notification_driver =
|
||||||
|
|
9
tox.ini
9
tox.ini
|
@ -65,6 +65,15 @@ commands =
|
||||||
rm -rf doc/build
|
rm -rf doc/build
|
||||||
sphinx-build -W -b html doc/source doc/build/html
|
sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
|
[testenv:pdf-docs]
|
||||||
|
basepython = python3
|
||||||
|
deps = {[testenv:docs]deps}
|
||||||
|
whitelist_externals =
|
||||||
|
make
|
||||||
|
commands =
|
||||||
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
|
make -C doc/build/pdf
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
setenv =
|
setenv =
|
||||||
|
|
Loading…
Reference in New Issue