forked from docs/doc-exports
Tune docs header
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
parent
66988fd5d1
commit
ec8a6e1c27
@ -5,7 +5,6 @@
|
|||||||
- ensure-pip
|
- ensure-pip
|
||||||
- ensure-virtualenv
|
- ensure-virtualenv
|
||||||
- ensure-pandoc
|
- ensure-pandoc
|
||||||
- ensure-gh
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install convertor
|
- name: Install convertor
|
||||||
pip:
|
pip:
|
||||||
|
@ -9,13 +9,6 @@
|
|||||||
doc_exports_var: "{{ docs }}"
|
doc_exports_var: "{{ docs }}"
|
||||||
cacheable: true
|
cacheable: true
|
||||||
|
|
||||||
- name: Detect list of changes
|
|
||||||
command: "git log -1 --name-only --pretty="
|
|
||||||
args:
|
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
|
||||||
register: git_log
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: Generate RSTs
|
- name: Generate RSTs
|
||||||
include_role:
|
include_role:
|
||||||
name: "convert_doc"
|
name: "convert_doc"
|
||||||
@ -31,46 +24,3 @@
|
|||||||
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') or git_log.stdout is search('playbooks')"
|
|
||||||
|
|
||||||
# - name: Configure git user name
|
|
||||||
# command: "git config --global user.name 'OpenTelekomCloud Proposal Bot'"
|
|
||||||
#
|
|
||||||
# - name: Configure git user email
|
|
||||||
# command: "git config --global user.email otcbot@otc-service.com"
|
|
||||||
#
|
|
||||||
# - name: Restore to the previous git state
|
|
||||||
# command: "git checkout HEAD^1"
|
|
||||||
# args:
|
|
||||||
# chdir: "{{ zuul.project.src_dir }}"
|
|
||||||
#
|
|
||||||
# - name: Generate base RSTs
|
|
||||||
# include_role:
|
|
||||||
# name: "convert_doc"
|
|
||||||
# vars:
|
|
||||||
# doc_label: "{{ doc.label }}"
|
|
||||||
# dest: "{{ ansible_user_dir }}/{{ docs_rst_location }}/{{ doc.label }}/{{ docs_base_location }}"
|
|
||||||
# source: "{{ zuul.project.src_dir }}/{{ doc.html_location }}"
|
|
||||||
# loop: "{{ docs }}"
|
|
||||||
# loop_control:
|
|
||||||
# loop_var: "doc"
|
|
||||||
# label: "{{ doc.label }}"
|
|
||||||
# when: "git_log.stdout is search(doc.html_location) or git_log.stdout is search('otc_doc_convertor')"
|
|
||||||
#
|
|
||||||
# - name: Generate patch file
|
|
||||||
# include_role:
|
|
||||||
# name: "generate_doc_patch"
|
|
||||||
# vars:
|
|
||||||
# doc_label: "{{ doc.label }}"
|
|
||||||
# generate_doc_patch_base_location: "{{ docs_base_location }}"
|
|
||||||
# generate_doc_patch_new_location: "{{ docs_new_location }}"
|
|
||||||
# generate_doc_patch_repository: "{{ doc.repository }}"
|
|
||||||
# generate_doc_patch_project_location: "{{ doc.project_location }}"
|
|
||||||
# generate_doc_patch_base: "{{ ansible_user_dir }}/{{ docs_rst_location }}/{{ doc.label }}"
|
|
||||||
# generate_doc_patch_diff_patch_location: "{{ ansible_user_dir }}/{{ doc.label }}.patch"
|
|
||||||
# generate_doc_patch_git_patch_location: "{{ ansible_user_dir }}/{{ doc.label }}.git.patch"
|
|
||||||
# loop: "{{ docs }}"
|
|
||||||
# loop_control:
|
|
||||||
# loop_var: "doc"
|
|
||||||
# label: "{{ doc.label }}"
|
|
||||||
# when: "git_log.stdout is search(doc.html_location) or git_log.stdout is search('otc_doc_convertor')"
|
|
||||||
|
@ -71,7 +71,10 @@ html_theme = 'otcdocs'
|
|||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
# documentation.
|
# documentation.
|
||||||
html_theme_options = {}
|
html_theme_options = {
|
||||||
|
'disable_search': True,
|
||||||
|
'site_name': 'Internal Documentation Portal'
|
||||||
|
}
|
||||||
|
|
||||||
# The name for this set of Sphinx documents. If None, it defaults to
|
# The name for this set of Sphinx documents. If None, it defaults to
|
||||||
# "<project> v<release> documentation".
|
# "<project> v<release> documentation".
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
- docs/ecs
|
- docs/ecs
|
||||||
- docs/ims
|
- docs/ims
|
||||||
- roles
|
- roles
|
||||||
|
- templates
|
||||||
provides: otc-doc-exports-convert-compute
|
provides: otc-doc-exports-convert-compute
|
||||||
vars:
|
vars:
|
||||||
docs_update_data_file: "docs_compute.yaml"
|
docs_update_data_file: "docs_compute.yaml"
|
||||||
@ -36,6 +37,7 @@
|
|||||||
- otc_doc_convertor
|
- otc_doc_convertor
|
||||||
- docs/modelarts
|
- docs/modelarts
|
||||||
- roles
|
- roles
|
||||||
|
- templates
|
||||||
vars:
|
vars:
|
||||||
docs_update_data_file: "docs_big-data.yaml"
|
docs_update_data_file: "docs_big-data.yaml"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user