Changeset 354524d in sasview for docs/sphinx-docs/build_sphinx.py


Ignore:
Timestamp:
Mar 19, 2016 6:51:12 AM (9 years ago)
Author:
smk78
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
66f21cd
Parents:
34e0c32
Message:

Now copying sasmodels rst files to sasview and building

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/build_sphinx.py

    rb7a2ebfd r354524d  
    3535#/sasview-local-trunk/docs/sphinx-docs/build_sphinx.py 
    3636 
    37 SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "sasmodels", "models") 
    38 SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "sasmodels", "models", "img") 
    39 SASMODELS_DEST_MODELS = os.path.join(SASVIEW_SRC, "sas", "models", "media") 
     37SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model") 
     38SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model", "img") 
     39SASMODELS_DEST_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media") 
    4040SASMODELS_DEST_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media", "img") 
    4141 
     
    7979    _remove_dir(SPHINX_SOURCE_TEST) 
    8080 
     81 
    8182def retrieve_user_docs(): 
    8283    """ 
     
    114115#    print os.path.abspath(SASVIEW_TEST) 
    115116#    print os.path.abspath(SPHINX_SOURCE_TEST) 
     117    print "=== Including Test Data Docs ===" 
    116118    if os.path.exists(SASVIEW_TEST): 
    117119       print "Found docs folder at ", SASVIEW_TEST 
    118120       shutil.copytree(SASVIEW_TEST, SPHINX_SOURCE_TEST)        
    119         
     121 
     122    print "=== And the Sasmodels Docs ==="  
    120123    # Make sure we have the relevant images for the new sasmodels documentation 
    121124    if os.path.exists(SASMODELS_SOURCE_IMG): 
     
    128131                shutil.copy(fromhere,tohere) 
    129132 
    130     # And the relevant .py files with the rst descriptions for the new sasmodels documentation 
     133    # And the relevant rst descriptions for the new sasmodels documentation 
    131134    if os.path.exists(SASMODELS_SOURCE_MODELS): 
    132135        print "Found docs folder SASMODELS_SOURCE_MODELS at ", SASMODELS_SOURCE_MODELS 
     
    134137            print "Found docs folder SASMODELS_DEST_MODELS   at ", SASMODELS_DEST_MODELS 
    135138            for files in os.listdir(SASMODELS_SOURCE_MODELS): 
    136                 if files.endswith(".py"): 
     139                if files.endswith(".rst"): 
    137140                    fromhere=os.path.join(SASMODELS_SOURCE_MODELS,files) 
    138141                    tohere=os.path.join(SASMODELS_DEST_MODELS,files) 
Note: See TracChangeset for help on using the changeset viewer.