# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


import sys, os
import sys
from build_scripts.version import get_git_version

# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it.  The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''

# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None

# Output file base name for HTML help builder.
htmlhelp_basename = 'dipplannerdoc'


# -- Options for LaTeX output --------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#'preamble': '',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
  ('index', 'dipplanner.tex', u'dipplanner Documentation',

# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


# Path: docs/conf.py
import sys, os
import sys
from build_scripts.version import get_git_version


# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it.  The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''

# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None

# Output file base name for HTML help builder.
htmlhelp_basename = 'dipplannerdoc'


# -- Options for LaTeX output --------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#'preamble': '',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
  ('index', 'dipplanner.tex', u'dipplanner Documentation',

   u'Thomas Chiroux', 'manual'),