Sha256: d71e35dd0445b6f0081dee94d23aa809bc4424a8f4a06c66a71b4a000389c2d8

Contents?: true

Size: 1.26 KB

Versions: 16

Compression:

Stored size: 1.26 KB

Contents

##
# Create
##

- name: >-
    Make sure the `yard` opts file at `{{ yard_opts_file_path }}` contains
    the "-" line that separates options from args, creating if needed
  lineinfile:
    path: >-
      {{ yard_opts_file_path }}
    line: '-'
    insertafter: EOF
    create: true


- name: >-
    Stat README.md
  stat:
    path: >-
      {{ bundle_root | path_join( 'README.md' ) }}
  register: yard_setup_readme_stat


- when: >-
    yard_setup_readme_stat.stat.exists
  name: >-
    Add README.md to `{{ yard_opts_file_path }}`
  lineinfile:
    dest: >-
      {{ yard_opts_file_path }}
    line: README.md
    insertafter: '^\-\s?$'


- name: >-
    Add `doc/**/*.md` extra files to `{{ yard_opts_file_path }}`
  lineinfile:
    dest: >-
      {{ yard_opts_file_path }}
    line: 'doc/**/*.md'
    insertafter: '^\-\s?$'


- name: >-
    Set `plugin`, `markup-provider`, `output-dir` and `markup` settings in
    {{ yard_opts_file_path }}
  with_dict:
    output-dir: >-
      {{ yard_output_rel_dir }}
    plugin: yard-commonmarker
    markup-provider: commonmarker
    markup: markdown
  lineinfile:
    path: >-
      {{ yard_opts_file_path }}
    line: >-
      --{{ item.key }} {{ item.value }}
    regexp: '^--{{ item.key | regex_escape() }}[\ \=]'
    insertbefore: '^\-\s?$'

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qb-0.4.5 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.4.4 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.4.3 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.4.2 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.4.1 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.4.0 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.25 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.24 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.23 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.22 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.21 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.20 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.19 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.18 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.17 roles/qb/ruby/yard/setup/tasks/yardopts.yml
qb-0.3.16 roles/qb/ruby/yard/setup/tasks/yardopts.yml