Merge "Update fetch sphinx output to use sphinx vars"

This commit is contained in:
Zuul 2017-11-22 18:39:46 +00:00 committed by Gerrit Code Review
commit 8f589ac0dd
2 changed files with 14 additions and 2 deletions

View File

@ -11,9 +11,19 @@ to the log root of the executor.
The destination directory on the executor. By default, the log
root.
.. zuul:rolevar:: sphinx_build_dir
:default: doc/build
Directory relative to zuul_work_dir where build output will be put.
.. zuul:rolevar:: sphinx_output_src
:default: src/{{ zuul.project.canonical_name }}/doc/build/html
:default: {{ zuul_work_dir }}/{{ sphinx_build_dir }}/html
The location on the worker from which to fetch the generated sphinx
content. By default, the HTML doc build dir of the current
project.
.. zuul:rolevar:: zuul_work_dir
:default: {{ zuul.project.src_dir }}
The location of the main working directory of the job.

View File

@ -1,3 +1,5 @@
---
zuul_executor_dest: "{{ zuul.executor.log_root }}"
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html"
zuul_work_dir: "{{ zuul.project.src_dir }}"
sphinx_build_dir: doc/build
sphinx_output_src: "{{ zuul_work_dir }}/{{ sphinx_build_dir }}/html"