forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com> Co-committed-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com>
18 lines
585 B
YAML
18 lines
585 B
YAML
- name: Emit pandoc version
|
|
command: "pandoc --version"
|
|
|
|
- name: Add destination to parameters
|
|
ansible.builtin.set_fact:
|
|
convert_params: "{{ convert_params }} --dest {{ dest }}"
|
|
when: "dest is defined"
|
|
|
|
- name: Add title to parameters
|
|
ansible.builtin.set_fact:
|
|
convert_params: "{{ convert_params }} --title '{{ title }}'"
|
|
when: "title is defined"
|
|
|
|
- name: Convert {{ doc_label | default('') }} HTML to RST
|
|
args:
|
|
executable: "/bin/bash"
|
|
ansible.builtin.shell: "source {{ zuul_work_virtualenv }}/bin/activate; otc-convert-doc {{ convert_params }} {{ source }}"
|