File: yard.rake

package info (click to toggle)
puppet 3.7.2-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 18,912 kB
  • ctags: 13,168
  • sloc: ruby: 210,410; sh: 2,050; xml: 1,554; lisp: 300; makefile: 142; python: 108; sql: 103; yacc: 72
file content (59 lines) | stat: -rw-r--r-- 1,457 bytes parent folder | download | duplicates (10)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
begin
  require 'yard'

  namespace :doc do
    desc "Clean up generated documentation"
    task :clean do
      rm_rf "doc"
    end

    desc "Generate public documentation pages for the API"
    YARD::Rake::YardocTask.new(:api) do |t|
      t.files = ['lib/**/*.rb']
      t.options = %w{
        --protected
        --private
        --verbose
        --markup markdown
        --readme README.md
        --tag status
        --transitive-tag status
        --tag comment
        --hide-tag comment
        --tag dsl:"DSL"
        --no-transitive-tag api
        --template-path yardoc/templates
        --files README_DEVELOPER.md,CO*.md,api/**/*.md
        --api public
        --api private
        --hide-void-return
      }
    end

    desc "Generate documentation pages for all of the code"
    YARD::Rake::YardocTask.new(:all) do |t|
      t.files = ['lib/**/*.rb']
      t.options = %w{
        --verbose
        --markup markdown
        --readme README.md
        --tag status
        --transitive-tag status
        --tag comment
        --hide-tag comment
        --tag dsl:"DSL"
        --no-transitive-tag api
        --template-path yardoc/templates
        --files README_DEVELOPER.md,CO*.md,api/**/*.md
        --api public
        --api private
        --no-api
        --hide-void-return
      }
    end
  end
rescue LoadError => e
  if verbose
    STDERR.puts "Document generation not available without yard. #{e.message}"
  end
end