# built documents. from setup import versiondata fullversion = versiondata.get('DEFAULT', 'version') # The short X.Y version. version = '.'.join(fullversion.split('.')[:2]) # The full version, including alpha/beta/rc tags. release = fullversion # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' today_seconds = versiondata.getint('DEFAULT', 'timestamp') today = time.strftime('%B %d, %Y', time.localtime(today_seconds)) year = today.split()[-1] # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # substitute YEAR in the copyright string copyright = copyright.replace('%Y', year) # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text.
sys.path.insert(0, os.path.abspath('../../..')) from setup import versiondata fullversion = versiondata.get('DEFAULT', 'version') # The short X.Y version. version = '.'.join(fullversion.split('.')[:2]) # The full version, including alpha/beta/rc tags. release = fullversion # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' today_seconds = versiondata.getint('DEFAULT', 'timestamp') today = time.strftime('%B %d, %Y', time.localtime(today_seconds)) year = today.split()[-1] # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # substitute YEAR in the copyright string copyright = copyright.replace('%Y', year) # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text.
fullversion = versiondata.get("DEFAULT", "version") # sys.path.remove(os.path.abspath('../../..')) # The short X.Y version. version = ".".join(fullversion.split(".")[:2]) # The full version, including alpha/beta/rc tags. release = fullversion # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' today_seconds = versiondata.getint("DEFAULT", "timestamp") today = time.strftime("%B %d, %Y", time.localtime(today_seconds)) year = today.split()[-1] # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # substitute YEAR in the copyright string copyright = copyright.replace("%Y", year) # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all documents. # default_role = None # If true, '()' will be appended to :func: etc. cross-reference text.