From 80b4a0bf95fc816511966f79c91c6e16eda74b79 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 15 May 2020 13:54:15 +0200 Subject: [PATCH] doc: Update sphinx config and add sima.mpdclient.MPD --- doc/source/conf.py | 8 ++++---- doc/source/dev/mpdclient.rst | 7 +++++++ doc/source/index.rst | 3 +-- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 doc/source/dev/mpdclient.rst diff --git a/doc/source/conf.py b/doc/source/conf.py index 0fb2bdd..6f553a0 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -15,7 +15,6 @@ import sys import os -import shlex # If extensions (or modules to document with autodoc) are in another directory, @@ -23,7 +22,7 @@ import shlex # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('../../')) -from sima.info import __version__ +from sima.info import __version__, __author__ # -- General configuration ------------------------------------------------ @@ -54,8 +53,9 @@ master_doc = 'index' # General information about the project. project = 'MPD_sima' -copyright = '2015-2017, kaliko' -author = 'kaliko' +from datetime import datetime +copyright = '2009-{}, {}'.format(datetime.now().year, __author__) +author = __author__ # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/doc/source/dev/mpdclient.rst b/doc/source/dev/mpdclient.rst new file mode 100644 index 0000000..43c952f --- /dev/null +++ b/doc/source/dev/mpdclient.rst @@ -0,0 +1,7 @@ +MPD Client +=========== + +.. autoclass:: sima.mpdclient.MPD + :members: + :show-inheritance: + diff --git a/doc/source/index.rst b/doc/source/index.rst index db6bd96..bd31cac 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -16,13 +16,12 @@ Development documentation :maxdepth: 2 :titlesonly: + dev/mpdclient dev/meta dev/lastfm dev/cache - - Indices and tables ================== -- 2.39.2