Build PDF for deployment guides

Change-Id: I5a566942de5ce0ddc6d2d240c44e9781ddb23372
This commit is contained in:
Dmitriy Rabotyagov 2024-05-20 16:42:34 +02:00
parent 97ba42b524
commit 1bf60477da
4 changed files with 35 additions and 15 deletions

View File

@ -248,14 +248,17 @@ latex_elements = {
# 'pointsize': '10pt', # 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
# 'preamble': '', 'preamble': r'''
\setcounter{tocdepth}{3}
\let\cleardoublepage=\clearpage
''',
} }
# 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, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, target_name + '.tex', (master_doc, 'deploy-guide-' + target_name + '.tex',
title, author, 'manual'), title, author, 'manual'),
] ]

View File

@ -49,6 +49,14 @@ setenv =
deps = -r{toxinidir}/doc/requirements.txt deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html
[testenv:deploy-guide-pdf-docs]
deps = {[testenv:deploy-guide]deps}
allowlist_externals =
make
commands =
sphinx-build -W --keep-going -b latex deploy-guide/source deploy-guide/build/pdf
make -C deploy-guide/build/pdf
[testenv:pdf-docs] [testenv:pdf-docs]
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
allowlist_externals = allowlist_externals =

View File

@ -312,6 +312,25 @@
- ^ansible-role-requirements\.yml - ^ansible-role-requirements\.yml
- ^inventory\/group_vars\/*\/source_git\.yml - ^inventory\/group_vars\/*\/source_git\.yml
# Deploy guide job
- job:
name: openstack-ansible-build-openstack-deploy-guide
parent: build-openstack-deploy-guide
files:
- .gitreview
- ^deploy-guide/.*
- ansible-role-requirements.yml
- bindep.txt
- doc/requirements.txt
- test-requirements.txt
- tox.ini
vars:
tox_pdf_envlist: deploy-guide-pdf-docs
tox_skip_pdf: false
sphinx_pdf_files:
- "deploy-guide-{{ zuul.project.short_name }}.pdf"
# Ensuring hosts setup and healthcheck-hosts playbook is valid # Ensuring hosts setup and healthcheck-hosts playbook is valid
- job: - job:
name: openstack-ansible-deploy-hosts_lxc-validate name: openstack-ansible-deploy-hosts_lxc-validate

View File

@ -316,20 +316,10 @@
using a promote job. using a promote job.
check: check:
jobs: jobs:
- build-openstack-deploy-guide: - openstack-ansible-build-openstack-deploy-guide
files: &deploy-guide-triggers
- .gitreview
- ^deploy-guide/.*
- ansible-role-requirements.yml
- bindep.txt
- doc/requirements.txt
- test-requirements.txt
- tox.ini
gate: gate:
jobs: jobs:
- build-openstack-deploy-guide: - openstack-ansible-build-openstack-deploy-guide
files: *deploy-guide-triggers
promote: promote:
jobs: jobs:
- promote-deploy-guide: - openstack-ansible-build-openstack-deploy-guide
files: *deploy-guide-triggers