-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathupdate-gitbook.yml
More file actions
36 lines (36 loc) · 930 Bytes
/
update-gitbook.yml
File metadata and controls
36 lines (36 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# How to use
# update:gitbook --directory="/path/to/drupal-console/gitbook-repository/"
command:
name: update:gitbook
description: 'Update gitbook'
commands:
- command: 'module:install'
arguments:
module:
- rest
- taxonomy
- locale
- migrate
- simpletest
- breakpoint
- node
- views
- features
- command: 'develop:translation:sync'
{% set languages = ['en', 'ca', 'es', 'fr', 'hi', 'hu', 'ja', 'mr', 'pt-br', 'ro', 'ru', 'vn' , 'zh-hans'] %}
{% for language in languages %}
- command: settings:set
arguments:
name: language
value: {{ language }}
- command: exec
arguments:
bin: 'rm -Rf {{ directory }}/{{ language }}/commands'
- command: develop:doc:gitbook
options:
path: '{{ directory }}/{{ language }}'
{% endfor %}
- command: settings:set
arguments:
name: language
value: en