# Path: libconfig/_version.py
# def get_versions():
#     """Get version information or return default if unable to do so."""
#     # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have
#     # __file__, we can work backwards from there to the root. Some
#     # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which
#     # case we can only use expanded keywords.
# 
#     cfg = get_config()
#     verbose = cfg.verbose
# 
#     try:
#         return git_versions_from_keywords(get_keywords(), cfg.tag_prefix,
#                                           verbose)
#     except NotThisMethod:
#         pass
# 
#     try:
#         root = os.path.realpath(__file__)
#         # versionfile_source is the relative path from the top of the source
#         # tree (where the .git directory might live) to this file. Invert
#         # this to find the root from __file__.
#         for i in cfg.versionfile_source.split('/'):
#             root = os.path.dirname(root)
#     except NameError:
#         return {"version": "0+unknown", "full-revisionid": None,
#                 "dirty": None,
#                 "error": "unable to find root of source tree",
#                 "date": None}
# 
#     try:
#         pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose)
#         return render(pieces, cfg.style)
#     except NotThisMethod:
#         pass
# 
#     try:
#         if cfg.parentdir_prefix:
#             return versions_from_parentdir(cfg.parentdir_prefix, root, verbose)
#     except NotThisMethod:
#         pass
# 
#     return {"version": "0+unknown", "full-revisionid": None,
#             "dirty": None,
#             "error": "unable to compute version", "date": None}


import sphinx_bootstrap_theme
import matplotlib as mpl
from libconfig._version import get_versions
plot_include_source = True
plot_formats = [("png", 90)]
plot_html_show_formats = False
plot_html_show_source_link = False

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates', '_templates/autosummary']
numpydoc_show_inherited_class_members = False

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'libconfig'
copyright = u'2018, Jaume Bonet'
author = u'Jaume Bonet'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = get_versions()['version'].split("+")[0]
# The full version, including alpha/beta/rc tags.

# Path: libconfig/_version.py
# def get_versions():
#     """Get version information or return default if unable to do so."""
#     # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have
#     # __file__, we can work backwards from there to the root. Some
#     # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which
#     # case we can only use expanded keywords.
# 
#     cfg = get_config()
#     verbose = cfg.verbose
# 
#     try:
#         return git_versions_from_keywords(get_keywords(), cfg.tag_prefix,
#                                           verbose)
#     except NotThisMethod:
#         pass
# 
#     try:
#         root = os.path.realpath(__file__)
#         # versionfile_source is the relative path from the top of the source
#         # tree (where the .git directory might live) to this file. Invert
#         # this to find the root from __file__.
#         for i in cfg.versionfile_source.split('/'):
#             root = os.path.dirname(root)
#     except NameError:
#         return {"version": "0+unknown", "full-revisionid": None,
#                 "dirty": None,
#                 "error": "unable to find root of source tree",
#                 "date": None}
# 
#     try:
#         pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose)
#         return render(pieces, cfg.style)
#     except NotThisMethod:
#         pass
# 
#     try:
#         if cfg.parentdir_prefix:
#             return versions_from_parentdir(cfg.parentdir_prefix, root, verbose)
#     except NotThisMethod:
#         pass
# 
#     return {"version": "0+unknown", "full-revisionid": None,
#             "dirty": None,
#             "error": "unable to compute version", "date": None}


# Path: sphinx-docs/source/conf.py
import sphinx_bootstrap_theme
import matplotlib as mpl
from libconfig._version import get_versions

plot_include_source = True
plot_formats = [("png", 90)]
plot_html_show_formats = False
plot_html_show_source_link = False

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates', '_templates/autosummary']
numpydoc_show_inherited_class_members = False

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'libconfig'
copyright = u'2018, Jaume Bonet'
author = u'Jaume Bonet'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = get_versions()['version'].split("+")[0]
# The full version, including alpha/beta/rc tags.

release = get_versions()['version'].split("+")[0]