Fix guides generator
Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
This commit is contained in:
parent
1fd0bc1094
commit
1be5e790eb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user