首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >狮身人面像被困在阅读源索引上

问狮身人面像被困在阅读源索引上
EN

Stack Overflow用户
提问于 2016-06-03 15:02:47
回答 2查看 1.3K关注 0票数 2

当我输入make html时,狮身人面像会被卡在读取段上。

通过更改"asp“中的名称,可以更改其固定的百分比。我的范围从100%到25%。下面是我在运行make html时在终端中看到的一个例子

代码语言:javascript
复制
make html
sphinx-build -b html -d _build/doctrees   . _build/html
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.2.1
loading pickled environment... done
building [html]: targets for 2 source files that are out of date
updating environment: 0 added, 2 changed, 0 removed
reading sources... [ 50%] asp                                                                                                  

如前所述,50%并不是固定不变的。通过更改asp.rst文件的名称,它将更改我获得的百分比。但它从来没有超越过它。

这是我的asp.rst文件:

代码语言:javascript
复制
 .. _asp:

 TEST123
 =======


.. automodule:: rcegui
.. module:: RCEController
.. autoclass:: RCE_Control_MainWindow
    :members:

这是我的index.rst文件:

代码语言:javascript
复制
Welcome to GUI's documentation!
===============================

Contents:

.. toctree::
   :maxdepth: 2

   asp

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

下面是conf.py:

代码语言:javascript
复制
import sys
import os
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.append(os.path.abspath('../'))

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
]

删除覆盖率扩展也更改了读取百分比。但还是卡住了。这似乎要归功于RCEController文件,该文件生成GUI并需要用户输入。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-06-03 21:26:48

所以我最后检查了--init-..py,它没有我调用的程序所需要的所有文件。所以在添加了丢失的文件并重新启动之后。狮身人面像没有错误地运行。我不知道是什么修复了它,但我觉得它是在将丢失的文件添加到-init-..py文件中。

票数 0
EN

Stack Overflow用户

发布于 2016-06-03 15:56:39

在.. _asp:开头添加一行asp.rst

代码语言:javascript
复制
.. _asp:

TEST123
=======

.. automodule:: rcegui
.. module:: RCEController
.. autoclass:: RCE_Control_MainWindow
   :members:

对于index.rst

代码语言:javascript
复制
Welcome to GUI's documentation!
===============================

Contents:

.. toctree::
   :maxdepth: 2

   asp

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

请按照正确的代码与正确的缩进和空格线。

例如,在rst中,标题和下划线组成应该具有相同的长度。

代码语言:javascript
复制
TEST123
=======
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37617719

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档