forked from docs/doc-exports
Support sync with deletion
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com> Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
zuul_work_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
||||
zuul_work_virtualenv: "{{ ansible_user_dir }}/.venv"
|
||||
convert_params: ""
|
||||
|
||||
@ -8,8 +8,28 @@
|
||||
|
||||
- name: Add title to parameters
|
||||
ansible.builtin.set_fact:
|
||||
convert_params: "{{ convert_params }} --title '{{ title }}'"
|
||||
when: "title is defined"
|
||||
convert_params: "{{ convert_params }} --title '{{ doc_title }}'"
|
||||
when: "doc_title is defined"
|
||||
|
||||
- name: Add service to parameters
|
||||
ansible.builtin.set_fact:
|
||||
convert_params: "{{ convert_params }} --service '{{ doc_service }}'"
|
||||
when: "doc_service is defined"
|
||||
|
||||
- name: Add repo_name to parameters
|
||||
ansible.builtin.set_fact:
|
||||
convert_params: "{{ convert_params }} --repo-name '{{ doc_repo_name }}'"
|
||||
when: "doc_repo_name is defined"
|
||||
|
||||
- name: Add pdf_name to parameters
|
||||
ansible.builtin.set_fact:
|
||||
convert_params: "{{ convert_params }} --pdf-name {{ doc_pdf_name }}"
|
||||
when: "doc_pdf_name is defined"
|
||||
|
||||
- name: Add templates-location to parameters
|
||||
ansible.builtin.set_fact:
|
||||
convert_params: "{{ convert_params }} --templates-location {{ zuul_work_dir }}/templates"
|
||||
|
||||
|
||||
- name: Convert {{ doc_label | default('') }} HTML to RST
|
||||
args:
|
||||
|
||||
@ -38,6 +38,6 @@
|
||||
url: "{{ fetch_doc_artifacts_name }}.tar.gz"
|
||||
metadata:
|
||||
type: docs_archive
|
||||
doc_service: "{{ doc.service }}"
|
||||
doc_type: "{{ doc.type }}"
|
||||
doc_service: "{{ doc.service_type }}"
|
||||
doc_type: "{{ doc.doc_type }}"
|
||||
doc_label: "{{ fetch_doc_artifacts_name }}"
|
||||
|
||||
@ -27,6 +27,6 @@
|
||||
url: "{{ fetch_doc_artifacts_name }}.{{ patch_type }}.patch"
|
||||
metadata:
|
||||
type: "patch"
|
||||
doc_service: "{{ doc.service }}"
|
||||
doc_type: "{{ doc.type }}"
|
||||
doc_service: "{{ doc.service_type }}"
|
||||
doc_type: "{{ doc.doc_type }}"
|
||||
patch_type: "{{ patch_type }}"
|
||||
|
||||
Reference in New Issue
Block a user