diff --git a/spec/static_documentation_generator_spec.cr b/spec/static_documentation_generator_spec.cr index df86a42c..811ea441 100644 --- a/spec/static_documentation_generator_spec.cr +++ b/spec/static_documentation_generator_spec.cr @@ -20,7 +20,7 @@ Dir # Compare results result = format_xml( - Mint::StaticDocumentationGenerator.generate([ast])["Test.html"].call + Mint::StaticDocumentationGenerator.generate([ast])["/Test.html"].call ).sub("\n", "").strip rescue error : Mint::Error fail error.to_terminal.to_s diff --git a/src/static_documentation_generator.cr b/src/static_documentation_generator.cr index 9632e9d6..1a87a2be 100644 --- a/src/static_documentation_generator.cr +++ b/src/static_documentation_generator.cr @@ -47,7 +47,7 @@ module Mint live_reload : Bool ) : {String, Proc(String)} { - href(entity), + "/#{href(entity)}", ->do layout entity.name, entities, live_reload do |builder| article do