Hi,
Hooking doctree-read event may solve it.
In your extension (djangodocs.py in your case), define an event hander
as:
def populate_index_to_rebuilds(app, doctree):
app.builder.env.files_to_rebuild['index'] = set([])
Then hook it in setup():
def setup(app):
app.connect('doctree-read', populate_index_to_rebuilds)
...
This is a monkeypatch, though.
---
Yasushi Masuda
Jacob Kaplan-Moss wrote:
> Hey all --
>
> The Django docs have a "nice" index page[1] that's separate from the
> main ToC[2]. I find this a lot more usable, but it has one downside.
> Every time I build, I get:
>
> WARNING: /home/jacob/django-docs/docs/index.txt:: document isn't
> included in any toctree
>
> This wouldn't be quite as annoying if I wasn't building on a automatic
> task after SVN commits; I get this nice message emailed to me every
> time someone commits.
>
> Is there a way to silence this warning short of sending stderr to
> /dev/null? I've been all through the source and can't seem to find a
> way to fix it. I'm using 0.4.2, FWIW, but there doesn't seem to be any
> changes in this area in 0.5.
>
> Jacob
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---