A MkDocs hook turns links like [incidents/](incidents/) — which Gitea renders as a directory listing but a static site would resolve against the page URL — into links to the generated landing page for that directory.