Skip to content

Commit

Permalink
fix: wrong linking in backrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Jul 13, 2024
1 parent a9949bf commit b941c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DocGen4/Output/References.lean
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ open scoped DocGen4.Jsx
def refItem (ref : BibItem) (backrefs : Array BackrefItem) : BaseHtmlM Html := do
let backrefs := backrefs.filter (fun x => x.citekey == ref.citekey)
let toHtml (i : Fin backrefs.size) (backref : BackrefItem) : BaseHtmlM (Array Html) := do
let href := s!"{moduleNameToFile "" backref.modName}#_backref_{backref.index}"
let href := s!"{← moduleNameToLink backref.modName}#_backref_{backref.index}"
let title := s!"File: {backref.modName}" ++
if backref.funName.isEmpty then "" else s!"\nLocation: {backref.funName}"
pure #[.raw " ", <a href={href} title={title}>{.text s!"[{i.1 + 1}]"}</a>]
Expand Down

0 comments on commit b941c42

Please sign in to comment.