Skip to content

Commit

Permalink
Fix paths in documentation server.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Nov 16, 2024
1 parent 8a72288 commit 64e1590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/static_documentation_generator_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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("<?xml version=\"1.0\"?>\n", "").strip
rescue error : Mint::Error
fail error.to_terminal.to_s
Expand Down
2 changes: 1 addition & 1 deletion src/static_documentation_generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64e1590

Please sign in to comment.