Changeset 18a1f2b in sasview for docs


Ignore:
Timestamp:
Aug 16, 2016 8:01:19 AM (8 years ago)
Author:
wojciech
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:
b86e4ba
Parents:
fa1cbee
Message:

Adding magnetism folder to the sphinx build

File:
1 edited

Legend:

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

    reff1a8fc r18a1f2b  
    3535#/sasview-local-trunk/docs/sphinx-docs/build_sphinx.py 
    3636SASMODELS_SOURCE_PROLOG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc") 
     37SASMODELS_SOURCE_MAGNETISM = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "magnetism") 
    3738SASMODELS_SOURCE_REF_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "models") 
    3839SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model") 
     
    187188                    shutil.copy(fromhere,tohere) 
    188189 
     190    if os.path.exists(SASMODELS_SOURCE_MAGNETISM): 
     191        print "Found docs folder SASMODELS_SOURCE_MAGNETISM at ", SASMODELS_SOURCE_MAGNETISM 
     192        if os.path.exists(SASMODELS_DEST_REF_MODELS): 
     193            print "Found docs folder SASMODELS_DEST_REF_MODELS   at ", SASMODELS_DEST_REF_MODELS 
     194            print "Copying sasmodels model toctree files..." 
     195            for files in os.listdir(SASMODELS_SOURCE_MAGNETISM): 
     196                if files.endswith(".rst"): 
     197                    fromhere=os.path.join(SASMODELS_SOURCE_MAGNETISM,files) 
     198                    tohere=os.path.join(SASMODELS_DEST_REF_MODELS,files) 
     199                    shutil.copy(fromhere,tohere) 
     200 
    189201    if os.path.exists(SASMODELS_SOURCE_REF_MODELS): 
    190202        print "Found docs folder SASMODELS_SOURCE_REF_MODELS at ", SASMODELS_SOURCE_REF_MODELS 
Note: See TracChangeset for help on using the changeset viewer.