updating documentation

This commit is contained in:
2020-03-08 14:35:24 +00:00
parent 263cf33cf6
commit d89c738c97
4 changed files with 35 additions and 20 deletions

View File

@@ -39,6 +39,7 @@ extensions = [
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx_click.ext',
'sphinx.ext.intersphinx'
]
# -- Napoleon Settings -----------------------------------------------------
@@ -60,7 +61,7 @@ autodoc_member_order = 'bysource'
templates_path = ['_templates']
# The master toctree document.
master_doc = 'introduction'
master_doc = 'index'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.

View File

@@ -1,3 +1,13 @@
=============
Introduction
=============
#####
Test
#####
testing
test code::
some test code

View File

@@ -1,5 +1,9 @@
.. toctree::
:maxdepth: 1
self
.. toctree::
:maxdepth: 2
:caption: Overview
:titlesonly:
@@ -7,14 +11,14 @@
changelog
.. toctree::
:maxdepth: 4
:maxdepth: 2
:caption: Modules
:titlesonly:
modules/musicbrainzapi.rst
.. toctree::
:maxdepth: 4
:maxdepth: 2
:caption: Submodules
:titlesonly:

View File

@@ -15,6 +15,22 @@ class LyricsClickDirector:
def __init__(self) -> 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
def builder(self) -> LyricsBuilder:
return self._builder
@@ -156,19 +172,3 @@ class LyricsClickDirector:
self.builder._product.show_summary()
self.builder._product.show_summary_statistics(group_by='year')
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