Sha256: a850305ef907695df2393dd13140301a0c7ac2fb7a03143a50cd2f23bf663e4f
Contents?: true
Size: 438 Bytes
Versions: 30
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true @solution2 = Kitchen::BookRecipe.new do |doc| book = doc.book book.chapters.each do |chapter| chapter.prepend(child: <<~HTML <h1 data-type="document-title">Chapter #{chapter.count_in(:book)}</h1> HTML ) chapter.pages.each do |page| page.title .set(:name, 'h2') .prepend(child: "#{chapter.count_in(:book)}.#{page.count_in(:chapter)} ") end end end
Version data entries
30 entries across 30 versions & 1 rubygems