-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug fix #21
base: master
Are you sure you want to change the base?
bug fix #21
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,16 +167,14 @@ def writeIndexHTMLMenu(): | |
|
||
readmeString, readmeIframeString, readmeFilename = writeReadme() | ||
depSVGString = writeDepSVG() | ||
|
||
#fill the HTML template with the constructed tag structure | ||
wbuildPath = pathlib.Path(wbuild.__file__).parent | ||
|
||
template = open(str(wbuildPath / "template.html")).read() | ||
template = open(str(wbuildPath / "html/template.html")).read() | ||
template = Template(template).substitute(menu=menuString, title=pageTitle, rf=getRecentMenu(), | ||
readme=readmeString, readmeIframe=readmeIframeString, readmeFilename=readmeFilename | ||
, depSVG=depSVGString) | ||
|
||
|
||
try: | ||
filename_index = conf.get("htmlIndex") | ||
except AttributeError as e: | ||
|
@@ -186,12 +184,12 @@ def writeIndexHTMLMenu(): | |
indexWithFolderName = conf.get("indexWithFolderName") | ||
except: | ||
indexWithFolderName = False | ||
|
||
if indexWithFolderName: | ||
abs_path = str(os.path.abspath(scriptsPath)) | ||
name = abs_path.split("/")[-2] | ||
filename_index = name + "_" + filename_index | ||
|
||
f = open(htmlOutputPath + '/' + filename_index, 'w') | ||
f.write(template) | ||
f.close() | ||
|
@@ -206,4 +204,8 @@ def ci(): | |
|
||
if os.path.exists(libDir): | ||
shutil.rmtree(libDir) | ||
shutil.copytree('.wBuild/lib', libDir) | ||
|
||
|
||
wbuildPath = pathlib.Path(wbuild.__file__).parent | ||
shutil.copytree(str(wbuildPath) + "/html/lib", libDir) ### quick fix for line below | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be just htmlOutputPath + '/lib' instead of wbuildPath + "/html/lib" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that's correct, since we want to copy from |
||
#shutil.copytree('.wBuild/lib', libDir) ######### .wBuild/llib exitiert nicht mehr, in wBRender.R: file.copy(paste0(wBuildPath,"/html/lib"), file.path(tmp_output_dir), recursive=TRUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below, analogous