Issue #4 new

Cannot build tox's document

Takafumi Arakaki
created an issue

I tried to build tox's document with this setup: https://bitbucket.org/tkf/tox/commits/c14c7ffaa470852e726322abcf398687b9b02796

But I got this error:

# Sphinx version: 1.1.3
# Python version: 2.7.2+
# Docutils version: 0.9.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/.../lib/python2.7/site-packages/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/.../lib/python2.7/site-packages/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/.../lib/python2.7/site-packages/sphinx/builders/__init__.py", line 191, in build_update
    self.build(['__all__'], to_build)
  File "/.../lib/python2.7/site-packages/sphinx/builders/__init__.py", line 252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/.../lib/python2.7/site-packages/sphinx/builders/texinfo.py", line 160, in write
    docwriter.write(doctree, destination)
  File "/.../lib/python2.7/site-packages/docutils/writers/__init__.py", line 77, in write
    self.translate()
  File "/.../lib/python2.7/site-packages/sphinx/writers/texinfo.py", line 113, in translate
    self.document.walkabout(visitor)
  File "/.../lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/.../lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/.../lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/.../lib/python2.7/site-packages/docutils/nodes.py", line 165, in walkabout
    visitor.dispatch_visit(self)
  File "/.../lib/python2.7/site-packages/docutils/nodes.py", line 1611, in dispatch_visit
    return method(node)
  File "/.../lib/python2.7/site-packages/sphinx/writers/texinfo.py", line 615, in visit_target
    next = node.parent.parent[node.parent.parent.index(node.parent)]
AttributeError: 'NoneType' object has no attribute 'index'

I tried both Sphinx v1.1.3 and tip of your sphinx-info, but results are the same.

Comments (1)

  1. Log in to comment