Changeset 578a11d in sasview for docs/sphinx-docs/build_sphinx.py


Ignore:
Timestamp:
Oct 6, 2016 2:20:19 PM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
850a498
Parents:
f1cbae7
Message:

Implement sasmodels documantation on SANS to SESANS conversion in
sasview aswell.

File:
1 edited

Legend:

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

    r8096b446 r578a11d  
    3535#/sasview-local-trunk/docs/sphinx-docs/build_sphinx.py 
    3636SASMODELS_SOURCE_PROLOG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc") 
     37SASMODELS_SOURCE_SESANS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "sesans") 
    3738SASMODELS_SOURCE_MAGNETISM = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "magnetism") 
    3839SASMODELS_SOURCE_MAGIMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "magnetism", "mag_img") 
     
    7172SPHINX_SOURCE_PERSPECTIVES = os.path.join(SPHINX_SOURCE, "user", "sasgui", "perspectives") 
    7273SPHINX_SOURCE_TEST = os.path.join(SPHINX_SOURCE, "test") 
     74SPHINX_SOURCE_USER = os.path.join(SPHINX_SOURCE, "user") 
    7375 
    7476BUMPS_DOCS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", 
     
    190192                    shutil.copy(fromhere,tohere) 
    191193 
     194    if os.path.exists(SASMODELS_SOURCE_SESANS): 
     195        print "Found docs folder SASMODELS_SOURCE_SESANS at ", SASMODELS_SOURCE_SESANS 
     196        if os.path.exists(SPHINX_SOURCE_USER): 
     197            print "Found docs folder SPHINX_SOURCE_USER      at ", SPHINX_SOURCE_USER 
     198            print "Copying sasmodels sesans files..." 
     199            for files in os.listdir(SASMODELS_SOURCE_SESANS): 
     200                if files.endswith(".rst"): 
     201                    fromhere=os.path.join(SASMODELS_SOURCE_SESANS,files) 
     202                    tohere=os.path.join(SPHINX_SOURCE_USER,files) 
     203                    shutil.copy(fromhere,tohere) 
     204 
    192205    if os.path.exists(SASMODELS_SOURCE_MAGNETISM): 
    193206        print "Found docs folder SASMODELS_SOURCE_MAGNETISM at ", SASMODELS_SOURCE_MAGNETISM 
Note: See TracChangeset for help on using the changeset viewer.