Sha256: 6f172a94dc061aafee03b1729940f39cf4cf44f0595357a516aabdf78ee20848

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 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

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 templates/guide/layout/html/setup.rb
deg-yard-0.8.7.3 templates/guide/layout/html/setup.rb
deg-yard-0.8.7.1 templates/guide/layout/html/setup.rb