8000 Inconsistent URLs built from :web-home · Issue #6 · tomfaulhaber/autodoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Inconsistent URLs built from :web-home #6
Open
@fxt

Description

@fxt

The :wiki-url built for the namespace-index-info does not insert a "/" between the :web-home and the namespace file name (it assumes the given :web-home has a trailing "/").
The :wiki-url built for the var-index-info does insert a "/" between the :web-home and the var file name (it assumes the given :web-home does not end in "/").

You can easily see it in the generated index.clj. Search for :wiki-url. Either the ones in the :namespaces section have one "/" correctly and the ones in the :vars section have a "//" in the middle of the URL, or the former are missing the "/" and the latter are correct.

Inserting "/" at line 493 of build_html.clj would fix the problem.
Even better, adding a normalization step to turn "//" and things like "/./" into "/" would make things even cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0