Re: Implementation of a ToDo directive

2008-11-09 Thread Georg Brandl
[EMAIL PROTECTED] schrieb: Thanks for your quick help. I managed to make todos show up as 'Todo: content of todo'. It did not work by simply putting 'Todo' in the argument list. It showed up then as 'Note: Todo:'. I needed to create a new node type 'todoNode' and add appropriate visitors.

Re: Implementation of a ToDo directive

2008-11-09 Thread dbn
Thanks for the resolve_references() in environment.py hint. I followed that code and inserted my own references. Unfortunately the docutils/ writers/html4css1/__init__.py chokes on that. The assertion below fails: def visit_reference(self, node): atts = {'class': 'reference'}

Re: Implementation of a ToDo directive

2008-11-09 Thread dbn
Great! Thanks, Daniel On Nov 9, 6:40 pm, Georg Brandl [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Yes. That did the trick. I have cleaned up the code and have put a new version here: http://pastebin.com/f71ba7373 It works quite well. And I think it is nearly finished.

RE: Implementation of a ToDo directive

2008-11-09 Thread Yarko
Thanks for all your effort on this. I will put it to use immediately on our project. Yarko -Original Message- From: [EMAIL PROTECTED] Sent: Sunday, November 09, 2008 8:24 AM To: sphinx-dev sphinx-dev@googlegroups.com Subject: Re: Implementation of a ToDo directive Yes. That did

Re: Implementation of a ToDo directive

2008-11-09 Thread Georg Brandl
Yarko schrieb: Thanks for all your effort on this. I will put it to use immediately on our project. Sphinx itself uses it too; see e.g. http://sphinx.pocoo.org/ext/coverage.html. Georg --~--~-~--~~~---~--~~ You received this message because you are

Re: Implementation of a ToDo directive

2008-11-08 Thread Yarko T
Ok - I've gotten a little further on this - if I put a try / except in process_todo_nodes() in the node.replace_self() call and just pass on the exception, things seem to be ok for todo output. Now, in htmlwriter.py, I get an unkown_visit() call for 'todolist' - still trying to figure this

Implementation of a ToDo directive

2008-11-06 Thread dbn
Dear all, first of all I want to thank the Sphinx developers for this great tool. I ported the developers manual for our openWNS (open Wireless Network Simulator) to Sphinx. I am still surprised how easy and intuitively the work with Sphinx is. So, thanks for that! During the work on the