Skip to content

Commit

Permalink
Merge pull request #2257 from Exirel/docs-reorganize-packages
Browse files Browse the repository at this point in the history
docs: split files into subfolders
  • Loading branch information
dgw authored May 13, 2022
2 parents d7dc478 + 42a7d7c commit cea42e1
Show file tree
Hide file tree
Showing 41 changed files with 269 additions and 250 deletions.
72 changes: 0 additions & 72 deletions docs/source/api.rst

This file was deleted.

27 changes: 0 additions & 27 deletions docs/source/config.rst

This file was deleted.

59 changes: 0 additions & 59 deletions docs/source/irc.rst

This file was deleted.

17 changes: 10 additions & 7 deletions docs/source/package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ Sopel Package API
.. toctree::
:titlesonly:

bot
trigger
config
db
api
irc
lifecycle
package/bot
package/trigger
package/config
package/db
package/tools
package/formatting
package/logger
package/irc
package/plugins
package/lifecycle
5 changes: 1 addition & 4 deletions docs/source/bot.rst → docs/source/package/bot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
The bot and its state
=====================

.. autoclass:: sopel.bot.Sopel
.. automodule:: sopel.bot
:members:
:inherited-members:
:show-inheritance:

.. autoclass:: sopel.bot.SopelWrapper
:members:
15 changes: 15 additions & 0 deletions docs/source/package/config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
===========================
Configuration functionality
===========================

.. toctree::

config/types
config/core_section

sopel.config
============

.. automodule:: sopel.config
:members:
:undoc-members:
7 changes: 7 additions & 0 deletions docs/source/package/config/core_section.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
============
Core Section
============

.. automodule:: sopel.config.core_section
:members:
:undoc-members:
7 changes: 7 additions & 0 deletions docs/source/package/config/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
============
Option Types
============

.. automodule:: sopel.config.types
:members:
:undoc-members:
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/package/formatting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
==========
Formatting
==========

.. automodule:: sopel.formatting
:members:
:undoc-members:
20 changes: 20 additions & 0 deletions docs/source/package/irc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
=======================
IRC Core Implementation
=======================

.. toctree::

irc/backends
irc/modes
irc/isupport
irc/utils

.. automodule:: sopel.irc
:members:
:undoc-members:
:inherited-members:
:show-inheritance:

.. autoclass:: AbstractBot
:members:
:undoc-members:
17 changes: 17 additions & 0 deletions docs/source/package/irc/backends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
============
IRC Backends
============

sopel.irc.abstract_backends
===========================

.. automodule:: sopel.irc.abstract_backends
:members:


sopel.irc.backends
==================

.. automodule:: sopel.irc.backends
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/package/irc/isupport.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
========
ISUPPORT
========

.. automodule:: sopel.irc.isupport
:members:
6 changes: 6 additions & 0 deletions docs/source/package/irc/modes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
=============
Mode Messages
=============

.. automodule:: sopel.irc.modes
:members:
6 changes: 6 additions & 0 deletions docs/source/package/irc/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
=======
Utility
=======

.. automodule:: sopel.irc.utils
:members:
File renamed without changes.
6 changes: 6 additions & 0 deletions docs/source/package/loader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
=============
Plugin Loader
=============

.. automodule:: sopel.loader
:members:
7 changes: 7 additions & 0 deletions docs/source/package/logger.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
======
Logger
======

.. automodule:: sopel.logger
:members:
:undoc-members:
18 changes: 18 additions & 0 deletions docs/source/package/plugins.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
=========================
Plugin Internal Machinery
=========================

.. important::

This section contains modules and classes used by Sopel internally. They are
subject to rapid changes between versions, without advance warning. This
section exists primarily for the aid of Sopel’s core development.

.. toctree::

loader
plugins/plugins
plugins/exceptions
plugins/handlers
plugins/jobs
plugins/rules
6 changes: 6 additions & 0 deletions docs/source/package/plugins/exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
========================
sopel.plugins.exceptions
========================

.. automodule:: sopel.plugins.exceptions
:members:
6 changes: 6 additions & 0 deletions docs/source/package/plugins/handlers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
======================
sopel.plugins.handlers
======================

.. automodule:: sopel.plugins.handlers
:members:
7 changes: 7 additions & 0 deletions docs/source/package/plugins/jobs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
==================
sopel.plugins.jobs
==================

.. automodule:: sopel.plugins.jobs
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/package/plugins/plugins.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
=============
sopel.plugins
=============

.. automodule:: sopel.plugins
:members:
Loading

0 comments on commit cea42e1

Please sign in to comment.