bitprophet / releases

A powerful Sphinx changelog-generating extension.
http://releases.readthedocs.io/
BSD 2-Clause "Simplified" License
176 stars 41 forks source link

Doctree has no children. #8

Closed myusuf3 closed 11 years ago

myusuf3 commented 11 years ago

Whenever I try to generate my docs I am getting the following error.

# Sphinx version: 1.2b2
# Python version: 2.7.2
# Docutils version: 0.11 release
# Jinja2 version: 2.7.1
Traceback (most recent call last):
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/cmdline.py", line 247, in main
    app.build(force_all, filenames)
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/application.py", line 212, in build
    self.builder.build_update()
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 214, in build_update
    'out of date' % len(to_build))
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 234, in build
    purple, length):
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 134, in status_iterator
    for item in iterable:
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/environment.py", line 470, in update_generator
    self.read_doc(docname, app=app)
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/environment.py", line 639, in read_doc
    app.emit('doctree-read', doctree)
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/sphinx/application.py", line 358, in emit
    results.append(callback(self, *args))
  File "/Users/myusuf3/.virtualenvs/delorean/lib/python2.7/site-packages/releases/__init__.py", line 264, in generate_changelog
    source = doctree.children[0]
IndexError: list index out of range
bitprophet commented 11 years ago

We discussed this on IRC, Yusuf had been mislead by my not-clear-enough README and didn't have the right setup re: a changelog.rst. At least I think this is the same problem :)