Sha256: f6dfbcebbc6017a5341b0eca34905b5d9850f9a267cd8abdb99a4a7b620c7d15

Contents?: true

Size: 1.01 KB

Versions: 13

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

module Kitchen
  module Directions
    module BakeChapterIntroductions
      def self.v1(book:)
        V1.new.bake(
          book: book
        )
      end

      def self.v2(
        book:,
        strategy_options: {
          strategy: :default, bake_chapter_outline: false, introduction_order: :v1
        }
      )
        V2.new.bake(
          book: book,
          strategy_options: strategy_options
        )
      end

      def self.bake_chapter_objectives(chapter:, strategy:)
        BakeChapterObjectives.new.bake(
          chapter: chapter,
          strategy: strategy
        )
      end

      def self.bake_chapter_outline(chapter_objectives_html:)
        BakeChapterOutline.new.bake(
          chapter_objectives_html: chapter_objectives_html
        )
      end

      def self.v1_update_selectors(something_with_selectors)
        something_with_selectors.selectors.title_in_introduction_page =
          ".intro-text > [data-type='document-title']"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openstax_kitchen-19.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-18.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-17.1.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-17.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-16.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-15.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-14.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-13.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-12.2.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-12.1.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-12.0.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-11.2.0 lib/kitchen/directions/bake_chapter_introductions/main.rb
openstax_kitchen-11.1.0 lib/kitchen/directions/bake_chapter_introductions/main.rb