Sha256: ce77e87b230c70b93e1ed84b05076165377b364be06d0b8bbea3f5d3ae42de0d

Contents?: true

Size: 1.42 KB

Versions: 708

Compression:

Stored size: 1.42 KB

Contents

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

Version data entries

708 entries across 708 versions & 2 rubygems

Version Path
puppet-7.34.0 tasks/yard.rake
puppet-7.34.0-x86-mingw32 tasks/yard.rake
puppet-7.34.0-x64-mingw32 tasks/yard.rake
puppet-7.34.0-universal-darwin tasks/yard.rake
puppet-7.33.0 tasks/yard.rake
puppet-7.33.0-x86-mingw32 tasks/yard.rake
puppet-7.33.0-x64-mingw32 tasks/yard.rake
puppet-7.33.0-universal-darwin tasks/yard.rake
puppet-8.3.0 tasks/yard.rake
puppet-8.3.0-x86-mingw32 tasks/yard.rake
puppet-8.3.0-x64-mingw32 tasks/yard.rake
puppet-8.3.0-universal-darwin tasks/yard.rake
puppet-7.32.1 tasks/yard.rake
puppet-7.32.1-x86-mingw32 tasks/yard.rake
puppet-7.32.1-x64-mingw32 tasks/yard.rake
puppet-7.32.1-universal-darwin tasks/yard.rake
puppet-7.31.0 tasks/yard.rake
puppet-7.31.0-x86-mingw32 tasks/yard.rake
puppet-7.31.0-x64-mingw32 tasks/yard.rake
puppet-7.31.0-universal-darwin tasks/yard.rake