如何找到 Read-the-docs 项目的 PDF 版本
How to find the PDF version of a Read-the-docs project
我没看到什么? RTD features 页面显示:
PDF Generation
When you build your project on RTD, we automatically build a PDF of
your project’s documentation. We also build them for every version
that you upload, so we can host the PDFs of your latest documentation,
as well as your latest stable releases as well.
但是你怎么找到PDF版本的呢?网络搜索发现这个 2012 blog post 作者说:
Here, for example, is the url to Django-Tastypie’s PDF docs:
http://media.readthedocs.org/pdf/django-tastypie/latest/django-tastypie.pdf
You can replace django-tastypie with the slug for any Read the Docs
project.
但是,RTD 不允许用户通过 URL 浏览网站的目录树:http://media.readthedocs.org/pdf/[project slug]/
,让我 403 FORBIDDEN
!至少对于 CookieCutter 项目而言。
出于安全原因,许多网站不允许您浏览网络服务器上的目录列表;因此 403.
无论如何,我猜你正在寻找这些:
- https://media.readthedocs.org/pdf/cookiecutter/latest/cookiecutter.pdf
- https://media.readthedocs.org/pdf/cookiecutter/stable/cookiecutter.pdf
通常,您不必自己构建此 URL。 RtD 的导航栏里有一个link。你只需要知道在哪里可以找到它。
请注意页面左下角的 'Read the Docs' 标签(以及版本指示器)。单击它,将打开一个面板。
在面板中,您可以select想要的版本。 'PDF' link 导航到 PDF 文件。 RtD 的构建系统应自动使此文件与文档源保持最新。
注意:PDF 生成可能无法在某些托管自己的 RtD 副本的网站上运行。
一个例子是Haskell Stack;另见这个问题:
how to download the docs as PDF
我发现使用 pdf link 打开面板的 Read the Docs
标签更可取。但是,如果不存在,另一种方法是进行网络搜索。
例如,搜索
readthedocs cookiecutter pdf
我看到的第一个结果(截至 2020 年 7 月 8 日)是 pdf 的 link:https://readthedocs.org/projects/cookiecutter/downloads/pdf/latest/
截至 2020 年 7 月 8 日,cookiecutter readthedocs 确实具有带有 pdf link 的可扩展面板。然而,
当我查看 readthedocs for pipenv 时,没有 ReadTheDocs
可单击以打开面板。但是如果我在 Google 中搜索
readthedocs pipenv pdf
第一个结果是 pdf 的 link:https://media.readthedocs.org/pdf/pipenv/latest/pipenv.pdf
我没看到什么? RTD features 页面显示:
PDF Generation
When you build your project on RTD, we automatically build a PDF of your project’s documentation. We also build them for every version that you upload, so we can host the PDFs of your latest documentation, as well as your latest stable releases as well.
但是你怎么找到PDF版本的呢?网络搜索发现这个 2012 blog post 作者说:
Here, for example, is the url to Django-Tastypie’s PDF docs:
http://media.readthedocs.org/pdf/django-tastypie/latest/django-tastypie.pdf
You can replace django-tastypie with the slug for any Read the Docs project.
但是,RTD 不允许用户通过 URL 浏览网站的目录树:http://media.readthedocs.org/pdf/[project slug]/
,让我 403 FORBIDDEN
!至少对于 CookieCutter 项目而言。
出于安全原因,许多网站不允许您浏览网络服务器上的目录列表;因此 403.
无论如何,我猜你正在寻找这些:
- https://media.readthedocs.org/pdf/cookiecutter/latest/cookiecutter.pdf
- https://media.readthedocs.org/pdf/cookiecutter/stable/cookiecutter.pdf
通常,您不必自己构建此 URL。 RtD 的导航栏里有一个link。你只需要知道在哪里可以找到它。
请注意页面左下角的 'Read the Docs' 标签(以及版本指示器)。单击它,将打开一个面板。
在面板中,您可以select想要的版本。 'PDF' link 导航到 PDF 文件。 RtD 的构建系统应自动使此文件与文档源保持最新。
注意:PDF 生成可能无法在某些托管自己的 RtD 副本的网站上运行。 一个例子是Haskell Stack;另见这个问题: how to download the docs as PDF
我发现使用 pdf link 打开面板的 Read the Docs
标签更可取。但是,如果不存在,另一种方法是进行网络搜索。
例如,搜索
readthedocs cookiecutter pdf
我看到的第一个结果(截至 2020 年 7 月 8 日)是 pdf 的 link:https://readthedocs.org/projects/cookiecutter/downloads/pdf/latest/
截至 2020 年 7 月 8 日,cookiecutter readthedocs 确实具有带有 pdf link 的可扩展面板。然而,
当我查看 readthedocs for pipenv 时,没有 ReadTheDocs
可单击以打开面板。但是如果我在 Google 中搜索
readthedocs pipenv pdf
第一个结果是 pdf 的 link:https://media.readthedocs.org/pdf/pipenv/latest/pipenv.pdf