----
+:Documentation: https://musicplayerdaemon.codeberg.page/python-musicpdaio/
:MPD Protocol: https://www.musicpd.org/doc/html/protocol.html
:Code: https://codeberg.org/MusicPlayerDaemon/python-musicpdaio.git
:Dependencies: None
`Semantic Versioning`_. is used.
-Unreleased
-----------
-
-
-.. _Semantic Versioning: https://semver.org/spec/v2.0.0.html
+|version| Unreleased
+--------------------
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
+import os
+import sys
+
+sys.path.insert(0, os.path.abspath('../../'))
+from mpdaio.const import VERSION
project = 'musicpdaio'
copyright = '2024, kaliko'
author = 'kaliko'
-release = '0.0.1'
+
+version = VERSION
+release = VERSION
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
html_theme = 'alabaster'
html_static_path = ['_static']
+html_baseurl= 'https://musicplayerdaemon.codeberg.page/python-musicpdaio/'
html_theme_options = {
'page_width' : '1024px',
'fixed_sidebar': 'true',
+ 'base_bg': '#eee',
+ 'pre_bg': '#fff',
}
+rst_epilog = """
+.. _asyncio: https://docs.python.org/3/library/asyncio.html
+.. _Diátaxis: https://diataxis.fr/
+.. _MPD protocol documentation: http://www.musicpd.org/doc/protocol/
+.. _python-musicpd: https://kaliko.gitlab.io/python-musicpd
+.. _Semantic Versioning: https://semver.org/spec/v2.0.0.html
+.. _snake case: https://en.wikipedia.org/wiki/Snake_case
+
+"""
+
# -- Options for intersphinx extension ---------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#configuration
await client.ping() # A connection is made and kept open
client.connections # Returns a list; [Connection<example.org:6600>]
-
-.. _snake case: https://en.wikipedia.org/wiki/Snake_case
-.. _MPD protocol documentation: http://www.musicpd.org/doc/protocol/
-.. _asyncio: https://docs.python.org/3/library/asyncio.html
-.. _python-musicpd: https://kaliko.gitlab.io/python-musicpd
-
.. vim: spell spelllang=en
-Welcome to musicpdaio's documentation!
-======================================
+musicpdaio's documentation
+==========================
The documentation is structured by following the `Diátaxis`_ principles:
tutorials and explanation are mainly useful to discover and learn, howtos and
changelog
-
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
-
-.. _Diátaxis: https://diataxis.fr/
.. literalinclude:: tutorial/tutorial-01.py
-
-.. _MPD protocol documentation: http://www.musicpd.org/doc/protocol/
.. vim: spell spelllang=en
SUCCESS = 'OK'
NEXT = 'list_OK'
#: Module version
-VERSION = '0.1.b0'
+VERSION = '0.1.0b0'
#: Seconds before a connection attempt times out
#: (overriden by :envvar:`MPD_TIMEOUT` env. var.)
CONNECTION_TIMEOUT = 30