Enhance doc of irclib and callbacks.

This commit is contained in:
Valentin Lorentz 2013-02-01 17:52:54 +01:00
parent e50cfad04d
commit f76f54dec8
4 changed files with 57 additions and 15 deletions

View File

@ -216,3 +216,4 @@ man_pages = [
]
autodoc_default_flags = ['show-inheritance']
primary_domain = 'py'

View File

@ -4,15 +4,36 @@
supybot.callbacks
*****************
Most used classes
=================
.. _supybot-callbacks-plugin:
supybot.callbacks-plugin
------------------------
Plugin
======
.. autoclass:: supybot.callbacks.Plugin
:members:
:inherited-members:
.. _supybot-callbacks-pluginregexp:
PluginRegexp
============
.. autoclass:: supybot.callbacks.PluginRegexp
:members:
:inherited-members:
.. _supybot-callbacks-tokenize:
tokenize
========
.. autofunction:: supybot.callbacks.tokenize
Other classes
=============
.. automodule:: supybot.callbacks
:members:
:undoc-members:
:exclude-members: Plugin, tokenize

View File

@ -7,7 +7,7 @@ Developping plugins for Limnoria
Doc provided with Supybot:
.. toctree::
:maxdepth: 2
:maxdepth: 1
../import/PLUGIN_TUTORIAL.rst
../import/USING_WRAP.rst

View File

@ -4,13 +4,10 @@
supybot.irclib
**************
Most used classes
=================
.. _supybot-irclib-irc:
supybot.irclib.Irc
------------------
Irc
===
It is usually the `irc` object given to plugin commands.
@ -18,11 +15,27 @@ It is usually the `irc` object given to plugin commands.
:members:
:inherited-members:
.. attribute:: zombie
Whether or not this object represents a living IRC connection.
:type: bool
.. attribute:: network
The name of the network this object is connected to.
:type: str
.. attribute:: startedAt
:type: float
.. _supybot-irclib-ircstate:
supybot.irclib.IrcState
-----------------------
IrcState
========
Used mainly as the `state` attribute of :py:class:`supybot.irclib.Irc` objects.
@ -33,8 +46,8 @@ Used mainly as the `state` attribute of :py:class:`supybot.irclib.Irc` objects.
.. _supybot-irclib-channelstate:
supybot.irclib.ChannelState
---------------------------
ChannelState
============
Used mainly as the `channels['#chan']` attribute of
:py:class:`supybot.irclib.Irc` objects.
@ -42,3 +55,10 @@ Used mainly as the `channels['#chan']` attribute of
.. autoclass:: supybot.irclib.ChannelState
:members:
:inherited-members:
Other classes
=============
.. automodule:: supybot.irclib
:members:
:exclude-members: Irc, IrcState, ChannelState