Module: Jets::Rdoc

Extended by:
Rdoc
Included in:
Rdoc
Defined in:
lib/jets/rdoc.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject

Use for both jets.gemspec and rake rdoc task



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/jets/rdoc.rb', line 4

def options
  exclude = %w[
    docs
    spec
    vendor
    core.rb
    .js
    templates
    commands
    internal
    support
    Dockerfile
    Dockerfile.base
    Gemfile
    Gemfile.lock
    Guardfile
    LICENSE
    Procfile
    Rakefile
    bin
  ]
  exclude = exclude.map { |word| ['-x', word] }.flatten
  ["-m", "README.md", "--markup", "tomdoc"] + exclude
end