forked from docs/doc-exports
add pandoc version info (#8)
add pandoc version info emit pandoc version stick to particular pandoc version (through ensure-pandoc role) Reviewed-by: OpenTelekomCloud Bot <None>
This commit is contained in:
parent
166e05613f
commit
a4b8acc5d6
@ -1 +0,0 @@
|
|||||||
pandoc
|
|
@ -2,7 +2,9 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- ensure-python
|
- ensure-python
|
||||||
|
- ensure-pip
|
||||||
- ensure-virtualenv
|
- ensure-virtualenv
|
||||||
|
- ensure-pandoc
|
||||||
- ensure-gh
|
- ensure-gh
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install convertor
|
- name: Install convertor
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: "doc"
|
loop_var: "doc"
|
||||||
label: "{{ doc.label }}"
|
label: "{{ doc.label }}"
|
||||||
when: "git_log.stdout is search(doc.html_location) or git_log.stdout is search('otc_doc_convertor')"
|
when: "git_log.stdout is search(doc.html_location) or git_log.stdout is search('otc_doc_convertor') or git_log.stdout is search('playbooks')"
|
||||||
|
|
||||||
- name: Restore to the previous git state
|
- name: Restore to the previous git state
|
||||||
command: "git checkout HEAD^1"
|
command: "git checkout HEAD^1"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
- name: Emit pandoc version
|
||||||
|
command: "pandoc --version"
|
||||||
|
|
||||||
- name: Convert {{ doc_label | default('') }} HTML to RST
|
- name: Convert {{ doc_label | default('') }} HTML to RST
|
||||||
args:
|
args:
|
||||||
executable: "/bin/bash"
|
executable: "/bin/bash"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
name: otc-doc-exports-convert-base
|
name: otc-doc-exports-convert-base
|
||||||
parent: unittests
|
parent: unittests
|
||||||
abstract: true
|
abstract: true
|
||||||
nodeset: ubuntu-jammy
|
nodeset: vm
|
||||||
description: |
|
description: |
|
||||||
Convert doc exports from html to rst and generate corresponding rst diff
|
Convert doc exports from html to rst and generate corresponding rst diff
|
||||||
files.
|
files.
|
||||||
@ -45,6 +45,7 @@
|
|||||||
files:
|
files:
|
||||||
- otc_doc_convertor
|
- otc_doc_convertor
|
||||||
- docs/ecs
|
- docs/ecs
|
||||||
|
- roles
|
||||||
vars:
|
vars:
|
||||||
docs_update_data_file: "docs_compute.yaml"
|
docs_update_data_file: "docs_compute.yaml"
|
||||||
|
|
||||||
@ -57,6 +58,7 @@
|
|||||||
files:
|
files:
|
||||||
- otc_doc_convertor
|
- otc_doc_convertor
|
||||||
- docs/modelarts
|
- docs/modelarts
|
||||||
|
- roles
|
||||||
vars:
|
vars:
|
||||||
docs_update_data_file: "docs_big-data.yaml"
|
docs_update_data_file: "docs_big-data.yaml"
|
||||||
|
|
||||||
@ -97,6 +99,7 @@
|
|||||||
docs_rst_location: "docs"
|
docs_rst_location: "docs"
|
||||||
docs_base_location: "base"
|
docs_base_location: "base"
|
||||||
docs_new_location: "new"
|
docs_new_location: "new"
|
||||||
|
ensure_pandoc_version: "2.18"
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- otc-tox-pep8:
|
- otc-tox-pep8:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user