提交 71ec8744 编写于 作者: C Cleber Rosa

docs: revert attempt to fetch and build avocado-virt API documentation

Commit 120345aa attempted to download and build avocado-virt API
documentation together with the avocado API. While this was reliable
offline, it succeeded only on the very first version builds at
readthedocs.org.

So, let's revert back that hackish form of combining the docs. Further
commits will add API documentation generation to avocado-virt itself,
and link avocado and avocado-virt by means of the intersphinx mapping
feature and readthedocs.org sub-project support.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 42f5a7f7
......@@ -2,7 +2,6 @@
import sys
import os
import shutil
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
......@@ -22,14 +21,6 @@ _sphinx_apidoc = path.find_command('sphinx-apidoc')
_output_dir = os.path.join(root_path, 'docs', 'source', 'api')
_api_dir = os.path.join(root_path, 'avocado')
if ON_RTD:
git = path.find_command('git', False)
if git is not False:
cmd = "%s clone git://github.com/avocado-framework/avocado-virt.git %s"
process.run(cmd % (git, os.path.join(root_path, 'avocado-virt')))
shutil.move(os.path.join(root_path, 'avocado-virt', 'avocado', 'virt'),
_api_dir)
process.run("%s -o %s %s" % (_sphinx_apidoc, _output_dir, _api_dir))
extensions = ['sphinx.ext.autodoc',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册