Changeset 7556019 in sasview for docs/sphinx-docs/source/conf.py


Ignore:
Timestamp:
Feb 2, 2019 9:27:09 PM (6 years ago)
Author:
butler
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
5fcb814
Parents:
839f70f7
Message:

Move all remaining version specific parameters to sasview.init

Edit sphinx config to also use version and dates from sasview's init.
This should put all version specific variables into
src.sas.sasview.init.py so that we only need to change these
parameters in one place
adresses #946

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/conf.py

    rf38ff0b r7556019  
    2525print("-- path --") 
    2626print("\n".join(sys.path)) 
     27 
     28#need to import src.sas.sasview init to access version number and dates 
     29#use abspath as above to locate then import 
     30sasview_path = os.path.abspath('../../../src/sas') 
     31sys.path.append(sasview_path) 
     32import sas.sasview 
    2733 
    2834# -- General configuration ----------------------------------------------------- 
     
    7177 
    7278# General information about the project. 
     79copyright_date = sas.sasview.__release_date__ 
    7380project = u'SasView' 
    74 copyright = u'2019, The SasView Project' 
     81copyright = u'%s, The SasView Project' % copyright_date 
    7582 
    7683# The version info for the project you're documenting, acts as replacement for 
     
    7986# 
    8087# The short X.Y version. 
    81 version = '4.2' 
     88version = sas.sasview.__major_version__ + "." + sas.sasview.__minor_version__ 
    8289# The full version, including alpha/beta/rc tags. 
    83 release = '4.2.1' 
     90release = sas.sasview.__version__ 
    8491 
    8592# The language for content autogenerated by Sphinx. Refer to documentation 
Note: See TracChangeset for help on using the changeset viewer.