Sha256: 441687b6d12807238309f45c9ccbaf2699fb081006d1cf549595f69b2a5e671b

Contents?: true

Size: 569 Bytes

Versions: 38

Compression:

Stored size: 569 Bytes

Contents

include T('default/layout/html')

def init
  super

  @topfile = options.readme
  if options.files
    if @topfile
      @toptitle = @topfile.attributes[:title] || "Documentation Overview"
    end
    if @file == options.readme
      @page_title = options.title
    else
      @page_title = @file.title
    end

    index = options.files.index(@file)
    if index
      @prevfile = index > 0 ? (options.files[index - 1] || options.readme) : nil
      @nextfile = options.files[index + 1]
    end
  end
end

def diskfile
  options.including_object = @object
  super
end

Version data entries

38 entries across 33 versions & 7 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/templates/guide/layout/html/setup.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/templates/guide/layout/html/setup.rb
yard-0.9.5 templates/guide/layout/html/setup.rb
yard-0.9.4 templates/guide/layout/html/setup.rb
yard-0.9.3 templates/guide/layout/html/setup.rb
yard-0.9.2 templates/guide/layout/html/setup.rb
yard-0.9.1 templates/guide/layout/html/setup.rb
yard-0.9.0 templates/guide/layout/html/setup.rb
yard-0.8.7.6 templates/guide/layout/html/setup.rb
yard-0.8.7.5 templates/guide/layout/html/setup.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
yard-0.8.7.4 templates/guide/layout/html/setup.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/templates/guide/layout/html/setup.rb