# 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', '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