Changeset 2804 for trunk/docs


Ignore:
Timestamp:
Apr 23, 2017 10:14:20 PM (6 years ago)
Author:
toby
Message:

change docs to list the version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/source/conf.py

    r2802 r2804  
    108108# documentation root, use os.path.abspath to make it absolute, like shown here.
    109109#sys.path.insert(0, os.path.abspath('.'))
    110 os.path.abspath(os.path.join('..', '..'))
    111110sys.path.insert(0, os.path.abspath(os.path.join('..', '..')))
    112111sys.path.insert(1, os.path.abspath(os.path.join('..', '..','exports')))
    113112sys.path.insert(1, os.path.abspath(os.path.join('..', '..','imports')))
    114 print(sys.path)
     113#print(sys.path)
     114import glob
     115for fil in glob.glob(os.path.abspath(os.path.join('..', '..','*.py'))):
     116    pkg = os.path.splitext(os.path.split(fil)[1])[0]
     117    exec('import '+pkg)
     118import GSASIIpath
     119version = GSASIIpath.GetVersionNumber()
     120print('Found highest version as {}'.format(version))
    115121# -- General configuration -----------------------------------------------------
    116122
     
    136142# General information about the project.
    137143project = u'GSAS-II'
    138 copyright = u'2013, Von Dreele and Toby for Argonne National Laboratory'
     144copyright = u'2013-2017, Von Dreele and Toby for Argonne National Laboratory'
    139145
    140146# The version info for the project you're documenting, acts as replacement for
     
    143149#
    144150# The short X.Y version.
    145 version = '0.2.0'
     151#version = '0.2.0'
    146152# The full version, including alpha/beta/rc tags.
    147 release = '0.2.0'
     153release = 'version {}'.format(version)
    148154
    149155# The language for content autogenerated by Sphinx. Refer to documentation
Note: See TracChangeset for help on using the changeset viewer.