from datetime import datetime from pkg_resources import get_distribution import os import shutil version = get_distribution('aws_secretsmanager_caching').version project = u'AWS Secrets Manager Python Caching Client' # If you use autosummary, this ensures that any stale autogenerated files are # cleaned up first. if os.path.exists('_autosummary'): print("cleaning up stale autogenerated files...") shutil.rmtree('_autosummary') # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.napoleon', 'sphinx.ext.todo', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] source_suffix = '.rst' # The suffix of source filenames. master_doc = 'index' # The master toctree document. copyright = u'%s, Amazon.com' % datetime.now().year # The full version, including alpha/beta/rc tags. release = version # List of directories, relative to source directory, that shouldn't be searched # for source files. exclude_trees = ['_build', '_templates'] pygments_style = 'sphinx' autoclass_content = "both" autodoc_default_flags = ['show-inheritance', 'members', 'undoc-members'] autodoc_member_order = 'bysource' html_theme = 'haiku' html_static_path = ['_static'] htmlhelp_basename = '%sdoc' % project # autosummary autosummary_generate = True