将HTML下载为单独的页面 [英] Download HTML as separate pages

查看:92
本文介绍了将HTML下载为单独的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为项目使用阅读文档".一切似乎都可以在网上正常运行.但是,当我下载HTML以供脱机使用时,我发现文档全部塞进了一个HTML文件(index.html).是否可以下载文档,使其具有与具有单独链接页面的在线文档相同的外观和感觉?

我尝试在三个选项(Sphinx Html,Sphinx HtmlDir和Sphinx单页HTML)之间的RTD管理>设置页面中更改文档类型,但是这些似乎都没有明显改变在线内容或下载的HTML结构.

Python的文档由Sphinx生成确实有单独的HTML文件.然而,阅读文档本身的文档也会下载为单个HTML文件. >

我错过了什么吗?或者这是阅读文档"的限制吗?

解决方案

HTTrack 可以很好地进行镜像阅读文档:

httrack 'http://doc.scrapy.org/en/1.0/' -O scrapy-1.0

I'm using Read The Docs for a project. Everything seems to be working well online. However, when I download the HTML for offline use, I find that the documentation is all crammed into a single HTML file (index.html). Is it possible to download the documentation so that it has the same look and feel as the online docs with separate, linked pages?

I tried changing the documentation type from the RTD Admin > Settings page between the three options (Sphinx Html, Sphinx HtmlDir, and Sphinx Single Page HTML), but none of these seem to visibly change either the online content or the downloaded HTML structure.

Python's documentation from generated from Sphinx does have separate HTML files. Yet Read The Docs's own documentation also downloads as a single HTML file.

Am I missing something, or is this a limitation of Read The Docs?

解决方案

HTTrack does a good job of mirroring Read the Docs:

httrack 'http://doc.scrapy.org/en/1.0/' -O scrapy-1.0

这篇关于将HTML下载为单独的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆