# Path: netjsonconfig/version.py
# VERSION = (0, 9, 1, 'final')
# 
# def get_version():
#     version = '%s.%s' % (VERSION[0], VERSION[1])
#     if VERSION[2]:
#         version = '%s.%s' % (version, VERSION[2])
#     if VERSION[3:] == ('alpha', 0):
#         version = '%s pre-alpha' % version
#     else:
#         if VERSION[3][0:4] == 'post':
#             version = '%s.%s' % (version, VERSION[3])
#         elif VERSION[3] != 'final':
#             try:
#                 rev = VERSION[4]
#             except IndexError:
#                 rev = 0
#             version = '%s%s%s' % (version, VERSION[3][0:1], rev)
#     return version


import datetime
import os
import shlex
import sys
from netjsonconfig.version import VERSION, get_version
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
]

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

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

# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'netjsonconfig'
copyright = u'{0}, OpenWISP.org'.format(datetime.date.today().year)
author = u'Federico Capoano'

# 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.

# Path: netjsonconfig/version.py
# VERSION = (0, 9, 1, 'final')
# 
# def get_version():
#     version = '%s.%s' % (VERSION[0], VERSION[1])
#     if VERSION[2]:
#         version = '%s.%s' % (version, VERSION[2])
#     if VERSION[3:] == ('alpha', 0):
#         version = '%s pre-alpha' % version
#     else:
#         if VERSION[3][0:4] == 'post':
#             version = '%s.%s' % (version, VERSION[3])
#         elif VERSION[3] != 'final':
#             try:
#                 rev = VERSION[4]
#             except IndexError:
#                 rev = 0
#             version = '%s%s%s' % (version, VERSION[3][0:1], rev)
#     return version


# Path: docs/source/conf.py
import datetime
import os
import shlex
import sys
from netjsonconfig.version import VERSION, get_version

# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
]

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

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

# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'netjsonconfig'
copyright = u'{0}, OpenWISP.org'.format(datetime.date.today().year)
author = u'Federico Capoano'

# 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 = '{0}.{1}'.format(VERSION[0], VERSION[1])