def run(self): ''' First builds the sasmodels documentation if the directory is present. Then builds the sasview docs. ''' ### AJJ - Add code for building sasmodels docs here: # check for doc path SASMODELS_DOCPATH = os.path.abspath( os.path.join(os.getcwd(), '..', 'sasmodels', 'doc')) print("========= check for sasmodels at", SASMODELS_DOCPATH, "============") if os.path.exists(SASMODELS_DOCPATH): if os.path.isdir(SASMODELS_DOCPATH): # if available, build sasmodels docs print( "============= Building sasmodels model documentation ===============" ) smdocbuild = subprocess.call( ["make", "-C", SASMODELS_DOCPATH, "html"]) else: # if not available warning message print( "== !!WARNING!! sasmodels directory not found. Cannot build model docs. ==" ) #Now build sasview (+sasmodels) docs sys.path.append("docs/sphinx-docs") import build_sphinx build_sphinx.rebuild()
def run(self): ''' First builds the sasmodels documentation if the directory is present. Then builds the sasview docs. ''' ### AJJ - Add code for building sasmodels docs here: # check for doc path SASMODELS_DOCPATH = os.path.abspath(os.path.join(os.getcwd(), '..', 'sasmodels', 'doc')) print("========= check for sasmodels at", SASMODELS_DOCPATH, "============") if os.path.exists(SASMODELS_DOCPATH): if os.path.isdir(SASMODELS_DOCPATH): # if available, build sasmodels docs print("============= Building sasmodels model documentation ===============") smdocbuild = subprocess.call(["make", "-C", SASMODELS_DOCPATH, "html"]) else: # if not available warning message print("== !!WARNING!! sasmodels directory not found. Cannot build model docs. ==") #Now build sasview (+sasmodels) docs sys.path.append("docs/sphinx-docs") import build_sphinx build_sphinx.rebuild()
def run(self): sys.path.append("docs/sphinx-docs") import build_sphinx build_sphinx.rebuild()