collect all directives

13 views
Skip to first unread message

Brett Dixon

unread,
May 20, 2015, 1:08:33 PM5/20/15
to sphin...@googlegroups.com
I wasn't sure ho to phrase this or even what to search for.  I would like to be able to add a custom directive to my docstrings, then have another extension keep track of all of these and add them to an index page.

The use case is tool documentation.  I will document the tool ui in the module and add images, etc.  However these are all over and could be deep within my project so discovering the page would be bad for users.  I'd like to have something curate these for me instead of having to link them in a maintained doc.

an example

path/to/foo.py

...
"""
  .. tooldoc::
  
    This is my tool and it does things

    .. image:: /path/to/image1.png
...
other/path/to/bar.py

...
"""
.. tooldoc:: 

    This is my other tool and it does nothing

    .. image:: /path/to/image2.png
...

index.rst

.. autotooldoc::


Utlimately index.html would render out links to foo.py and bar.py


Hope that makes sense.  Is there an extension that does something similar I can look at?

Thanks

Brett Dixon

unread,
May 21, 2015, 1:46:19 PM5/21/15
to sphin...@googlegroups.com
should have read the tutorial a bit more, the todolist does this :/
Reply all
Reply to author
Forward
0 new messages