Fix guides generator

Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
This commit is contained in:
zzak 2023-02-21 13:43:25 +09:00
parent 1fd0bc1094
commit 1be5e790eb
No known key found for this signature in database
GPG Key ID: 213927DFCF4FF102

@ -26,6 +26,7 @@ def initialize(edge:, version:, all:, only:, epub:, language:, direction: nil)
@epub = epub
@language = language
@direction = direction || "ltr"
@view = ActionView::Base.with_empty_template_cache
if @epub
register_special_mime_types
@ -132,7 +133,7 @@ def generate_guide(guide, output_file)
puts "Generating #{guide} as #{output_file}"
layout = @epub ? "epub/layout" : "layout"
view = ActionView::Base.with_empty_template_cache.with_view_paths(
view = @view.with_view_paths(
[@source_dir],
edge: @edge,
version: @version,