【问题标题】:ReadTheDocs badge red on Github, but should be green在 Github 上 ReadTheDocs 徽章是红色的,但应该是绿色的
【发布时间】:2016-01-11 12:31:33
【问题描述】:

编辑徽章现在也在 GitHub 上显示为绿色。会不会和 GitHub 做的缓存有关?


编辑 2 哦,又是红色的。


ReadTheDocs 项目here 中的徽章是绿色的。

但是当我将徽章 HTML 或 Markdown 代码粘贴到我的 GitHub repositorie's README.md 文件中时,它总是显示为红色。

  • 我已经检查了大约 20 次,现在徽章代码是正确的。它在其他地方显示为绿色(例如,当我将徽章代码粘贴到 http://www.ctrlshift.net/project/markdowneditor/ 时)。
  • 我也用另一个互联网浏览器和我的手机打开了 GitHub 页面,但它仍然是红色的,所以这不是客户端缓存问题。
  • 当我直接去徽章图片源时,我也得到一个绿色徽章。

这到底是怎么回事?


README.md

<h1>
  <span>nr.c4d - Cinema 4D Python Toolbox</span>
  <a href='http://nrc4d.readthedocs.org/en/latest/?badge=latest'>
    <img src='https://readthedocs.org/projects/nrc4d/badge/?version=latest' alt='Documentation Status' />
  </a>
</h1>

This module is the successor of `c4dtools` and is currently being
developed to version 2.0.0. You can find the older versions of the
`c4dtools` package in the other branches.

【问题讨论】:

    标签: github markdown read-the-docs


    【解决方案1】:

    Github 使用图像缓存,因此如果它在构建失败时捕获图像,它会在页面上保留一段时间。

    【讨论】:

      【解决方案2】:

      这是由于您的浏览器的缓存。如果你清理缓存,用其他浏览器访问,或者使用隐身模式,那么它会变成绿色。

      【讨论】:

      • Quote: > 我也用另一个互联网浏览器和我的手机打开了 GitHub 页面,但它仍然是红色的,所以这不是客户端缓存问题。
      • 无论如何,这个问题似乎无法重现了。
      猜你喜欢
      • 2023-02-24
      • 2011-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多