- Timestamp:
- Mar 19, 2016 1:14:40 PM (9 years ago)
- 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:
- 756e8ce
- Parents:
- 8cb0692 (diff), a728658 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/build_sphinx.py
r354524d ra728658 34 34 # We are currently here: 35 35 #/sasview-local-trunk/docs/sphinx-docs/build_sphinx.py 36 36 SASMODELS_SOURCE_PROLOG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc") 37 #SASMODELS_SOURCE_REF_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "ref", "models") 37 38 SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model") 38 39 SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model", "img") 40 SASMODELS_DEST_PROLOG = os.path.join(CURRENT_SCRIPT_DIR, "source") 41 SASMODELS_DEST_REF_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "source", "user") 39 42 SASMODELS_DEST_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media") 40 43 SASMODELS_DEST_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media", "img") 41 44 45 #if os.path.exists(SASMODELS_SOURCE_PROLOG): 46 # print "Found models prolog folder at ", SASMODELS_SOURCE_PROLOG 47 #if os.path.exists(SASMODELS_SOURCE_REF_MODELS): 48 # print "Found models ref folder at ", SASMODELS_SOURCE_REF_MODELS 42 49 #if os.path.exists(SASMODELS_SOURCE_MODELS): 43 50 # print "Found models folder at ", SASMODELS_SOURCE_MODELS 44 51 #if os.path.exists(SASMODELS_SOURCE_IMG): 45 52 # print "Found img folder at ", SASMODELS_SOURCE_IMG 53 #if os.path.exists(SASMODELS_DEST_REF_MODELS): 54 # print "Found models ref folder at ", SASMODELS_DEST_REF_MODELS 46 55 #if os.path.exists(SASMODELS_DEST_MODELS): 47 56 # print "Found models folder at ", SASMODELS_DEST_MODELS 48 57 #if os.path.exists(SASMODELS_DEST_IMG): 49 58 # print "Found img folder at ", SASMODELS_DEST_IMG 59 #sys.exit() 50 60 51 61 SPHINX_BUILD = os.path.join(CURRENT_SCRIPT_DIR, "build") … … 126 136 if os.path.exists(SASMODELS_DEST_IMG): 127 137 print "Found img folder SASMODELS_DEST_IMG at ", SASMODELS_DEST_IMG 138 print "Copying sasmodels model image files..." 128 139 for files in os.listdir(SASMODELS_SOURCE_IMG): 129 140 fromhere=os.path.join(SASMODELS_SOURCE_IMG,files) … … 131 142 shutil.copy(fromhere,tohere) 132 143 144 # And the rst prolog with the unit substitutions 145 if os.path.exists(SASMODELS_SOURCE_PROLOG): 146 print "Found prolog folder SASMODELS_SOURCE_PROLOG at ", SASMODELS_SOURCE_PROLOG 147 if os.path.exists(SASMODELS_DEST_PROLOG): 148 print "Found docs folder SASMODELS_DEST_PROLOG at ", SASMODELS_DEST_PROLOG 149 print "Copying sasmodels rst_prolog file..." 150 for files in os.listdir(SASMODELS_SOURCE_PROLOG): 151 if files.startswith("rst"): 152 fromhere=os.path.join(SASMODELS_SOURCE_PROLOG,files) 153 tohere=os.path.join(SASMODELS_DEST_PROLOG,files) 154 shutil.copy(fromhere,tohere) 155 156 # ACTUALLY IT TURNED OUT WE NEED TO EDIT THE TOCTREES SO THIS COPY WASN'T USEFUL IN THE END! 133 157 # And the relevant rst descriptions for the new sasmodels documentation 158 # if os.path.exists(SASMODELS_SOURCE_REF_MODELS): 159 # print "Found docs folder SASMODELS_SOURCE_REF_MODELS at ", SASMODELS_SOURCE_REF_MODELS 160 # if os.path.exists(SASMODELS_DEST_REF_MODELS): 161 # print "Found docs folder SASMODELS_DEST_REF_MODELS at ", SASMODELS_DEST_REF_MODELS 162 # print "Copying sasmodels model toctree files..." 163 # for files in os.listdir(SASMODELS_SOURCE_REF_MODELS): 164 # if files.endswith(".rst"): 165 # fromhere=os.path.join(SASMODELS_SOURCE_REF_MODELS,files) 166 # tohere=os.path.join(SASMODELS_DEST_REF_MODELS,files) 167 # shutil.copy(fromhere,tohere) 168 134 169 if os.path.exists(SASMODELS_SOURCE_MODELS): 135 170 print "Found docs folder SASMODELS_SOURCE_MODELS at ", SASMODELS_SOURCE_MODELS 136 171 if os.path.exists(SASMODELS_DEST_MODELS): 137 172 print "Found docs folder SASMODELS_DEST_MODELS at ", SASMODELS_DEST_MODELS 173 print "Copying sasmodels model files..." 138 174 for files in os.listdir(SASMODELS_SOURCE_MODELS): 139 175 if files.endswith(".rst"):
Note: See TracChangeset
for help on using the changeset viewer.