Ensure docs directory exists before generating docs
- Also ignore errors will prevent issues with Sphinx from failing jobs without a good reason. Change-Id: I50380f0ff1504cc864599b8ff938c5214ea74af6
This commit is contained in:
parent
5a38a5b545
commit
04ba895e70
|
@ -31,7 +31,13 @@
|
|||
dest: "{{ artcl_docs_source_dir }}/index.rst"
|
||||
force: yes
|
||||
|
||||
- name: Ensure docs dir exists
|
||||
file:
|
||||
path: "{{ artcl_collect_dir }}/docs"
|
||||
state: directory
|
||||
|
||||
- name: Build docs with Sphinx
|
||||
shell: >
|
||||
sphinx-build -b html "{{ artcl_docs_source_dir }}"
|
||||
"{{ artcl_docs_build_dir }}" &> "{{ artcl_collect_dir }}/docs/sphinx_build.log"
|
||||
ignore_errors: yes
|
||||
|
|
Loading…
Reference in New Issue