Method: Metanorma::CollectionRenderer#section_split_cover
- Defined in:
- lib/metanorma/collection_fileprocess.rb
#section_split_cover(col, ident) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/metanorma/collection_fileprocess.rb', line 58 def section_split_cover(col, ident) dir = File.dirname(col.file) @compile.collection_setup(nil, dir) CollectionRenderer.new(col, dir, output_folder: "#{ident}_collection", format: i(html), coverpage: File.join(dir, "cover.html")).coverpage FileUtils.mv "#{ident}_collection/index.html", File.join(dir, "#{ident}_index.html") FileUtils.rm_rf "#{ident}_collection" "#{ident}_index.html" end |