<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://zxdd.com/index.php?action=history&amp;feed=atom&amp;title=ReadTheDocs</id>
	<title>ReadTheDocs - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zxdd.com/index.php?action=history&amp;feed=atom&amp;title=ReadTheDocs"/>
	<link rel="alternate" type="text/html" href="https://zxdd.com/index.php?title=ReadTheDocs&amp;action=history"/>
	<updated>2026-06-02T19:45:02Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://zxdd.com/index.php?title=ReadTheDocs&amp;diff=206&amp;oldid=prev</id>
		<title>Eric：​创建页面，内容为“ReadTheDocs提供免费的文档托管服务。ReadTheDocs常与GitHub和Sphinx搭配使用，构建项目文档。  ==使用== ===手动构建文档=== *登…”</title>
		<link rel="alternate" type="text/html" href="https://zxdd.com/index.php?title=ReadTheDocs&amp;diff=206&amp;oldid=prev"/>
		<updated>2020-09-19T17:22:48Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“ReadTheDocs提供免费的文档托管服务。ReadTheDocs常与&lt;a href=&quot;/GitHub&quot; title=&quot;GitHub&quot;&gt;GitHub&lt;/a&gt;和&lt;a href=&quot;/Sphinx&quot; title=&quot;Sphinx&quot;&gt;Sphinx&lt;/a&gt;搭配使用，构建项目文档。  ==使用== ===手动构建文档=== *登…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ReadTheDocs提供免费的文档托管服务。ReadTheDocs常与[[GitHub]]和[[Sphinx]]搭配使用，构建项目文档。&lt;br /&gt;
&lt;br /&gt;
==使用==&lt;br /&gt;
===手动构建文档===&lt;br /&gt;
*登录[https://readthedocs.org/ ReadTheDocs官网]&lt;br /&gt;
*点击导入项目&lt;br /&gt;
*填入项目地址，如：https://github.com/yourname/project.git&lt;br /&gt;
*文档可以在根目录project下，也可以在docs中，ReadTheDocs会自动拉取。&lt;br /&gt;
*文档修改后在ReadTheDocs中点击构建。&lt;br /&gt;
&lt;br /&gt;
===使用webhook自动构建===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===可能遇到错误===&lt;br /&gt;
*docs/contents.rst not found&lt;br /&gt;
由于Sphinx版本不同，当前ReadTheDocs服务器上构建文档的Sphinx版本默认为Sphinx v1.8.5。以下2种解决办法：&lt;br /&gt;
#在conf.py文件加入 master_doc = &amp;#039;index&amp;#039; &lt;br /&gt;
#或者通过设置[https://docs.readthedocs.io/en/stable/guides/specifying-dependencies.html requirements.txt]，定义Sphinx的版本和本地一样。&lt;br /&gt;
{{了解更多&lt;br /&gt;
|[https://github.com/readthedocs/readthedocs.org/issues/2569 GitHub：readthedocs/readthedocs.org-Sphinx error]&lt;br /&gt;
}}&lt;br /&gt;
==构建过程==&lt;br /&gt;
ReadTheDocs构建文档过程如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;git clone --no-single-branch --depth 50 https://github.com/yourname/project.git .&lt;br /&gt;
git checkout --force origin/master&lt;br /&gt;
git clean -d -f -f&lt;br /&gt;
python3.7 -mvirtualenv  /home/docs/checkouts/readthedocs.org/user_builds/yourproject/envs/latest&lt;br /&gt;
/home/docs/checkouts/readthedocs.org/user_builds/yourproject/envs/latest/bin/python -m pip install --upgrade --no-cache-dir pip&lt;br /&gt;
/home/docs/checkouts/readthedocs.org/user_builds/yourproject/envs/latest/bin/python -m pip install --upgrade --no-cache-dir Pygments==2.3.1 setuptools==41.0.1 docutils==0.14 mock==1.0.1 pillow==5.4.1 alabaster&amp;gt;=0.7,&amp;lt;0.8,!=0.7.5 commonmark==0.8.1 recommonmark==0.5.0 sphinx&amp;lt;2 sphinx-rtd-theme&amp;lt;0.5 readthedocs-sphinx-ext&amp;lt;1.1&lt;br /&gt;
cat docs/conf.py&lt;br /&gt;
python /home/docs/checkouts/readthedocs.org/user_builds/yourproject/envs/latest/bin/sphinx-build -T -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==资源==&lt;br /&gt;
===官网===&lt;br /&gt;
*[https://readthedocs.org/ ReadTheDocs 官网]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[分类:编程工具]]&lt;/div&gt;</summary>
		<author><name>Eric</name></author>
	</entry>
</feed>