updating documentation
This commit is contained in:
@@ -39,6 +39,7 @@ extensions = [
|
|||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx_click.ext',
|
'sphinx_click.ext',
|
||||||
|
'sphinx.ext.intersphinx'
|
||||||
]
|
]
|
||||||
|
|
||||||
# -- Napoleon Settings -----------------------------------------------------
|
# -- Napoleon Settings -----------------------------------------------------
|
||||||
@@ -60,7 +61,7 @@ autodoc_member_order = 'bysource'
|
|||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
||||||
# The master toctree document.
|
# The master toctree document.
|
||||||
master_doc = 'introduction'
|
master_doc = 'index'
|
||||||
|
|
||||||
# List of patterns, relative to source directory, that match files and
|
# List of patterns, relative to source directory, that match files and
|
||||||
# directories to ignore when looking for source files.
|
# directories to ignore when looking for source files.
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
=============
|
||||||
Introduction
|
Introduction
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
#####
|
||||||
|
Test
|
||||||
|
#####
|
||||||
|
|
||||||
|
testing
|
||||||
|
|
||||||
|
test code::
|
||||||
|
|
||||||
|
some test code
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
|
||||||
|
self
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
:caption: Overview
|
:caption: Overview
|
||||||
:titlesonly:
|
:titlesonly:
|
||||||
|
|
||||||
@@ -7,14 +11,14 @@
|
|||||||
changelog
|
changelog
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 4
|
:maxdepth: 2
|
||||||
:caption: Modules
|
:caption: Modules
|
||||||
:titlesonly:
|
:titlesonly:
|
||||||
|
|
||||||
modules/musicbrainzapi.rst
|
modules/musicbrainzapi.rst
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 4
|
:maxdepth: 2
|
||||||
:caption: Submodules
|
:caption: Submodules
|
||||||
:titlesonly:
|
:titlesonly:
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,22 @@ class LyricsClickDirector:
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self._builder = None
|
self._builder = None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _get_product(builder_inst: LyricsBuilder) -> Lyrics:
|
||||||
|
"""Returns the constructed Lyrics object
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
----------
|
||||||
|
builder_inst : LyricsBuilder
|
||||||
|
Builder class for Lyrics object
|
||||||
|
|
||||||
|
Returns
|
||||||
|
-------
|
||||||
|
Lyrics
|
||||||
|
Lyrics object
|
||||||
|
"""
|
||||||
|
return builder_inst._product
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def builder(self) -> LyricsBuilder:
|
def builder(self) -> LyricsBuilder:
|
||||||
return self._builder
|
return self._builder
|
||||||
@@ -156,19 +172,3 @@ class LyricsClickDirector:
|
|||||||
self.builder._product.show_summary()
|
self.builder._product.show_summary()
|
||||||
self.builder._product.show_summary_statistics(group_by='year')
|
self.builder._product.show_summary_statistics(group_by='year')
|
||||||
return self
|
return self
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def _get_product(builder_inst: LyricsBuilder) -> Lyrics:
|
|
||||||
"""Returns the constructed Lyrics object
|
|
||||||
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
builder_inst : LyricsBuilder
|
|
||||||
Builder class for Lyrics object
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
Lyrics
|
|
||||||
Lyrics object
|
|
||||||
"""
|
|
||||||
return builder_inst._product
|
|
||||||
|
|||||||
Reference in New Issue
Block a user