Sha256: c3317c9230874c5d7efd14197c3f119fab9dfd082dbe93d409a4017daa2d35f3
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true module Kitchen module Directions # Bake directions for EOC suggested reading # module BakeSuggestedReading def self.v1(book:) book.chapters.each do |chapter| suggested_reading = chapter.search('section.suggested-reading').cut chapter.append(child: <<~HTML <div class="os-eoc os-suggested-reading-container" data-type="composite-page" data-uuid-key=".suggested-reading"> <h2 data-type="document-title"> <span class="os-text">#{I18n.t(:eoc_suggested_reading)}</span> </h2> #{suggested_reading.paste} </div> HTML ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems