diff --git a/roles/prepare-docs-for-afs/README.rst b/roles/prepare-docs-for-afs/README.rst index 0c593fe0..60e1eb91 100644 --- a/roles/prepare-docs-for-afs/README.rst +++ b/roles/prepare-docs-for-afs/README.rst @@ -1 +1,11 @@ -Prepare built openstack docs to be published to the OpenStack AFS cell. +Prepare built OpenStack docs to be published to the OpenStack AFS cell. + +.. zuul:rolevar:: zuul_work_dir + :default: {{ zuul.project.src_dir }} + + Directory to build documentation in. + +.. zuul:rolevar:: doc_build_dir + :default: {{ zuul_work_dir }}/doc/build + + Directory that contains the built documentation. diff --git a/roles/prepare-docs-for-afs/defaults/main.yaml b/roles/prepare-docs-for-afs/defaults/main.yaml index 189d518f..775dccc4 100644 --- a/roles/prepare-docs-for-afs/defaults/main.yaml +++ b/roles/prepare-docs-for-afs/defaults/main.yaml @@ -1 +1,2 @@ zuul_work_dir: "src/{{ zuul.project.canonical_name }}" +doc_build_dir: "{{ zuul_work_dir }}/doc/build" diff --git a/roles/prepare-docs-for-afs/tasks/main.yaml b/roles/prepare-docs-for-afs/tasks/main.yaml index 3dc217f6..44066f52 100644 --- a/roles/prepare-docs-for-afs/tasks/main.yaml +++ b/roles/prepare-docs-for-afs/tasks/main.yaml @@ -1,7 +1,3 @@ -- name: Set build dir fact - set_fact: - doc_build_dir: "{{ zuul_work_dir }}/doc/build" - - name: Write marker text copy: dest: "{{ doc_build_dir }}/html/.root-marker"