Changeset c22c5e3 in sasview for docs/sphinx-docs
- Timestamp:
- May 8, 2015 2:15:19 PM (10 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:
- ac7be54
- Parents:
- c23de6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/build_sphinx.py
r7168b8b rc22c5e3 11 11 import shutil 12 12 import imp 13 from glob import glob 13 14 14 15 from distutils.dir_util import copy_tree … … 32 33 SPHINX_SOURCE_MODELS = os.path.join(SPHINX_SOURCE, "user", "models") 33 34 SPHINX_SOURCE_PERSPECTIVES = os.path.join(SPHINX_SOURCE, "user", "perspectives") 35 36 BUMPS_DOCS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", 37 "bumps", "doc", "guide") 38 BUMPS_TARGET = os.path.join(SPHINX_SOURCE_PERSPECTIVES, "fitting") 34 39 35 40 def _remove_dir(dir_path): … … 82 87 copy_tree(docs, dest_dir) 83 88 89 def retrieve_bumps_docs(): 90 """ 91 Copies select files from the bumps documentation into fitting perspective 92 """ 93 if os.path.exists(BUMPS_DOCS): 94 print "=== Retrieve BUMPS Docs ===" 95 filenames = [os.path.join(BUMPS_DOCS, "optimizer.rst")] 96 filenames += glob(os.path.join(BUMPS_DOCS, "dream-*.png")) 97 filenames += glob(os.path.join(BUMPS_DOCS, "fit-*.png")) 98 for f in filenames: 99 print "Copying file", f 100 shutil.copy(f, BUMPS_TARGET) 101 else: 102 print """ 103 *** Error *** missing directory %s 104 The documentation will not include the optimizer selection section. 105 Checkout the bumps source tree and rebuild the docs. 106 107 108 """ % BUMPS_DOCS 109 84 110 def apidoc(): 85 111 """ … … 115 141 clean() 116 142 retrieve_user_docs() 143 retrieve_bumps_docs() 117 144 apidoc() 118 145 build()
Note: See TracChangeset
for help on using the changeset viewer.