module Kitchen::Directions::BakeCompositeChapters

Public Class Methods

v1(book:) click to toggle source
# File lib/kitchen/directions/bake_composite_chapters.rb, line 6
def self.v1(book:)
  book.composite_chapters.each do |chapter|
    chapter.first("[data-type='document-title']").id =
      "composite-chapter-#{chapter.count_in(:book)}"
  end
end