16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/kitchen/directions/bake_further_research.rb', line 16
def bake(chapter:, metadata_source:, uuid_prefix: '.')
MoveCustomSectionToEocContainer.v1(
chapter: chapter,
metadata_source: metadata_source,
container_key: 'further-research',
uuid_key: "#{uuid_prefix}further-research",
section_selector: 'section.further-research',
append_to: nil
) do |further_research|
RemoveSectionTitle.v1(section: further_research)
title = EocSectionTitleLinkSnippet.v1(page: further_research.ancestor(:page))
further_research.prepend(child: title)
end
end
|