【问题标题】:Relative link in readme broken if readme viewed automatically by repo如果 repo 自动查看自述文件,则自述文件中的相对链接已损坏
【发布时间】:2017-01-19 14:24:42
【问题描述】:

我在 github 上有一个 repo 作为组织的一部分。例如:

MYORGANIZATION/MyRepository

repo 包含一个 README.md 文件。

在这个 README.md 文件中,我有一个链接,因此另一个 .md 文件位于与 README.md 相同的文件夹中的同一仓库中:

/README.md /anotherMarkdown.md

README.md 包含另一个Markdown.md 的相对链接(如下所述:https://help.github.com/articles/relative-links-in-readmes/):

[This is my relative link](anotherMarkdown.md)

如果我使用此 URL 打开自述文件,则相对链接有效:

https://github.com/MYORGANIZATION/MyRepository/blob/master/README.md

链接指向:

https://github.com/MYORGANIZATION/MyRepository/blob/master/anotherMarkdown.md

如果我打开 Repository-URL https://github.com/MYORGANIZATION/MyRepository/,则会显示存储库的根目录,以及文件列表下方的自述文件。

但上述相对链接现在已损坏(给出 404)并指向:

https://github.com/MYORGANIZATION/MyRepository/anotherMarkdown.md

这是预期的行为吗?我的链接有什么问题?

【问题讨论】:

  • 我遇到了同样的问题。可能是一个临时的 Github 问题。
  • 这里也有类似的问题。 emoji 也不适合我。 def 似乎是 github 方面的东西。
  • 我也看到了。我自己向 github 提出了支持请求。

标签: github markdown readme


【解决方案1】:

似乎已由 github 修复。再次在我身边工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-24
    • 1970-01-01
    • 2014-07-23
    • 1970-01-01
    • 1970-01-01
    • 2021-04-06
    • 1970-01-01
    • 2021-07-12
    相关资源
    最近更新 更多