如何在不下载的情况下查看 GitHub 上的文档
How to View Documentation on GitHub without Downloading
这实际上是我经常遇到的问题,但我终于感到沮丧,在这里寻找答案。
我一直在研究如何使用 PyBluez Python package on GitHub. I want to view the documentation so I go to the repo's docs/index.html 页面,我能看到的只有这个。
我已经尝试了很长时间让这个作为 HTML 页面打开,但它就是不会 - none 的按钮似乎提供了该功能,但我还没有找到许多类似的投诉。然而,有一个值得注意的例外。我确实发现 this page 我认为我可以通过转到
查看文档
https://docs.google.com/a/[DOMINIO]/viewer?url=[FILE_URL]
或
https://docs.google.com/a/[DOMINIO]/viewer?url=[FILE_URL]
但我不知道 [DOMINO]
应该是什么,我不知道相关文件引用(即 <frame src="public/toc.html" name="moduleListFrame">
)是否仍可在 GoogleDocs 中使用。另外,每次我想查看某些内容时,url 对文件 URL 进行编码似乎很麻烦。
现在我要下载 repo 并保留文档,以便我可以查看它们,但以供将来参考 如何在不下载 repo 的情况下查看这些文档?
编辑 - 他们不可能让这更烦人
感谢 YCFlame 给我的有趣建议,我查看了页面源代码以查看 GitHub 是否引用了 URL 用于呈现文本的实际文档。
不幸的是(有趣的是)GitHub 上显示的文档实际上是 HTML table
由 JavaScript 图书馆填充的!! !
这是包含 HTML 文本的 div 的来源。
<div itemprop="text" class="blob-wrapper data type-html">
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tr>
<td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
<td id="LC1" class="blob-code blob-code-inner js-file-line"><!DOCTYPE HTML PUBLIC <span class="pl-s">"-//W3C//DTD HTML 4.01 Frameset//EN"</span>></td>
</tr>
<tr>
<td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
<td id="LC2" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">html</span>></td>
</tr>
<tr>
<td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
<td id="LC3" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">head</span>></td>
</tr>
<tr>
<td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
<td id="LC4" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">title</span>> API Documentation </<span class="pl-ent">title</span>></td>
</tr>
<tr>
<td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
<td id="LC5" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">head</span>></td>
</tr>
<tr>
<td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
<td id="LC6" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">frameset</span> <span class="pl-e">cols</span>=<span class="pl-s"><span class="pl-pds">"</span>20%,80%<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
<td id="LC7" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frameset</span> <span class="pl-e">rows</span>=<span class="pl-s"><span class="pl-pds">"</span>30%,70%<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
<td id="LC8" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/toc.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>moduleListFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
<td id="LC9" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/toc-everything.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>moduleFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
<td id="LC10" class="blob-code blob-code-inner js-file-line"> </<span class="pl-ent">frameset</span>></td>
</tr>
<tr>
<td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
<td id="LC11" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/bluetooth-module.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>mainFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
<td id="LC12" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">frameset</span>></td>
</tr>
<tr>
<td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
<td id="LC13" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">html</span>></td>
</tr>
</table>
</div>
如果您不介意放弃 Google Docs Viewer,您可以尝试 http://htmlpreview.github.io 预览 Github 存储库中的网页而无需下载它们。
这实际上是我经常遇到的问题,但我终于感到沮丧,在这里寻找答案。
我一直在研究如何使用 PyBluez Python package on GitHub. I want to view the documentation so I go to the repo's docs/index.html 页面,我能看到的只有这个。
我已经尝试了很长时间让这个作为 HTML 页面打开,但它就是不会 - none 的按钮似乎提供了该功能,但我还没有找到许多类似的投诉。然而,有一个值得注意的例外。我确实发现 this page 我认为我可以通过转到
查看文档https://docs.google.com/a/[DOMINIO]/viewer?url=[FILE_URL]
或
https://docs.google.com/a/[DOMINIO]/viewer?url=[FILE_URL]
但我不知道 [DOMINO]
应该是什么,我不知道相关文件引用(即 <frame src="public/toc.html" name="moduleListFrame">
)是否仍可在 GoogleDocs 中使用。另外,每次我想查看某些内容时,url 对文件 URL 进行编码似乎很麻烦。
现在我要下载 repo 并保留文档,以便我可以查看它们,但以供将来参考 如何在不下载 repo 的情况下查看这些文档?
编辑 - 他们不可能让这更烦人
感谢 YCFlame 给我的有趣建议,我查看了页面源代码以查看 GitHub 是否引用了 URL 用于呈现文本的实际文档。
不幸的是(有趣的是)GitHub 上显示的文档实际上是 HTML table
由 JavaScript 图书馆填充的!! !
这是包含 HTML 文本的 div 的来源。
<div itemprop="text" class="blob-wrapper data type-html">
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tr>
<td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
<td id="LC1" class="blob-code blob-code-inner js-file-line"><!DOCTYPE HTML PUBLIC <span class="pl-s">"-//W3C//DTD HTML 4.01 Frameset//EN"</span>></td>
</tr>
<tr>
<td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
<td id="LC2" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">html</span>></td>
</tr>
<tr>
<td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
<td id="LC3" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">head</span>></td>
</tr>
<tr>
<td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
<td id="LC4" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">title</span>> API Documentation </<span class="pl-ent">title</span>></td>
</tr>
<tr>
<td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
<td id="LC5" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">head</span>></td>
</tr>
<tr>
<td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
<td id="LC6" class="blob-code blob-code-inner js-file-line"><<span class="pl-ent">frameset</span> <span class="pl-e">cols</span>=<span class="pl-s"><span class="pl-pds">"</span>20%,80%<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
<td id="LC7" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frameset</span> <span class="pl-e">rows</span>=<span class="pl-s"><span class="pl-pds">"</span>30%,70%<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
<td id="LC8" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/toc.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>moduleListFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
<td id="LC9" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/toc-everything.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>moduleFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
<td id="LC10" class="blob-code blob-code-inner js-file-line"> </<span class="pl-ent">frameset</span>></td>
</tr>
<tr>
<td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
<td id="LC11" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">frame</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>public/bluetooth-module.html<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>mainFrame<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
<td id="LC12" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">frameset</span>></td>
</tr>
<tr>
<td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
<td id="LC13" class="blob-code blob-code-inner js-file-line"></<span class="pl-ent">html</span>></td>
</tr>
</table>
</div>
如果您不介意放弃 Google Docs Viewer,您可以尝试 http://htmlpreview.github.io 预览 Github 存储库中的网页而无需下载它们。