weixin_39908263 2020-11-30 16:30
浏览 0

Enable relative linking from one Markdown document to another

Originally reported on Google Code with ID 324


For documentation purposes, I want to add several markdown files to my repository. 
 I find that if I put them all in the repo's root directory, then I can link between
them with no problems:

/README.md  -- page with links to analysis.md
/analysis.md

with links that look like:

[Link 1](http://localhost:8080/blob/test.git/HEAD/analysis.md)
or
[Link 2](/blob/test.git/HEAD/analysis.md)

This works fine.   However, if I want to group the documentation into a subdirectory
'doc':

/README.md
/doc/analysis.md

.. then I can't get any of the following links to work:

[Link 1](doc/analysis.md)
[Link 2](http://localhost:8080/blob/test.git/HEAD/doc/analysis.md)
[Link 3](/blob/test.git/HEAD/doc/analysis.md)
[Link 4](/blob/test.git/doc/HEAD/analysis.md)

(Obviously one workaround is to only link to markdown files in the root directory,
but that's a shame from the perspective of keeping things tidy)

I've reproduced this behaviour using GitBlit 1.3.2 on both Windows XP and Linux.

See forum post: https://groups.google.com/forum/#!topic/gitblit/bkVY4gaHv28

Reported by duncan.jauncey on 2013-10-15 12:27:37

该提问来源于开源项目:gitblit/gitblit

  • 写回答

12条回答 默认 最新

  • weixin_39908263 2020-11-30 16:30
    关注
    
    I was just about to attempt this as well. I would definitely be keen on being able to
    create a main readme that is simply a tree of docs that point to other .md files.
    

    Reported by chase.com on 2013-10-20 22:18:43

    评论

报告相同问题?