Opened 16 years ago
Last modified 16 years ago
#4909 new enhancement
[PATCH] Add class documentation to appear in [[WikiMacros]] call
Reported by: | Owned by: | Shun-ichi Goto | |
---|---|---|---|
Priority: | low | Component: | TicketBoxMacro |
Severity: | trivial | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
As my users are ancouraged to make use of all the TracWiki magic they want to express themselves, I like to have all those possibilities well documented. However, when I looked at the WikiMacros Page after having installed TicketBoxMacro, I noticed that [[TicketBox]]
only had the word "None" showing up as documentation.
So I did a little hacking and basically just copied the doc lines from the beginning of TicketBox.py to just after the class definition, so it gets rendered by a [[WikiMacros]]
call.
I've svn-diffed it and attached it as a patch, though it's trivial after all. If you decide to use it, please remember to change all two instances of the documentation when you change sth therein. (Maybe one could put it in a variable to re-use it, but I'm all new to python as of now.)
Attachments (1)
Change History (2)
Changed 16 years ago by
Attachment: | wikimakros_doc.patch added |
---|
comment:1 Changed 16 years ago by
Darn, shoulda escaped that [[WikiMacros]]
in the upload description, too... sorry for that.
Re-used Macro documentation for class documentation to show up in a WikiMacros call