Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Dynamic js files fix #3

Merged
merged 2 commits into from

3 participants

@jeffheifetz

Now we can actually run jsdoc without it crashing.

Jeffrey Heifetz added some commits
@cpinzon

Looks good, especially the first commit (72bbc09) will prevent the return of an error message claiming that BBTemplate is not a valid template

@cdelcol cdelcol merged commit b01562e into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 2, 2011
  1. Updating the way files are copied dynamically to check that the direc…

    Jeffrey Heifetz authored
    …tory exists first
  2. Removing debug statements

    Jeffrey Heifetz authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 16 deletions.
  1. +12 −16 build/BBTemplate/publish.js
View
28 build/BBTemplate/publish.js
@@ -126,24 +126,21 @@ function publish(symbolSet) {
// COPY FILES
//CSS files
- var cssFiles = IO.ls(publish.conf.templatesDir+"/"+publish.conf.cssDir);
- for(var i = 0;i<cssFiles.length;i++){
- IO.copyFile(cssFiles[i], publish.conf.outDir+"/"+publish.conf.cssDir);
- }
+ copyFiles(publish.conf.templatesDir+"/"+publish.conf.cssDir,publish.conf.outDir+"/"+publish.conf.cssDir );
//Static files
- var staticFiles = IO.ls(publish.conf.templatesDir+"/"+publish.conf.staticDir);
- for(var i = 0;i<staticFiles.length;i++){
- IO.copyFile(staticFiles[i], publish.conf.outDir);
- }
+ copyFiles(publish.conf.templatesDir+"/"+publish.conf.staticDir,publish.conf.outDir );
//Image Files
- var imageFiles = IO.ls(publish.conf.templatesDir+"/"+publish.conf.imagesDir);
- for(var i = 0;i<imageFiles.length;i++){
- IO.copyFile(imageFiles[i], publish.conf.outDir+"/"+publish.conf.imagesDir);
- }
+ copyFiles(publish.conf.templatesDir+"/"+publish.conf.imagesDir,publish.conf.outDir+"/"+publish.conf.imagesDir );
//JS Files
- var jsFiles = IO.ls(publish.conf.templatesDir+"/"+publish.conf.jsDir);
- for(var i = 0;i<jsFiles.length;i++){
- IO.copyFile(jsFiles[i], publish.conf.outDir+"/"+publish.conf.jsDir);
+ copyFiles(publish.conf.templatesDir+"/"+publish.conf.jsDir,publish.conf.outDir+"/"+publish.conf.jsDir );
+}
+
+function copyFiles(srcDir,destDir){
+ if(IO.exists(srcDir)){
+ var files = IO.ls(srcDir);
+ for(var i = 0;i<files.length;i++){
+ IO.copyFile(files[i], destDir);
+ }
}
}
@@ -309,7 +306,6 @@ var tableNo = "<td class=\"apiTd apiNo\">&nbsp;</td>";
function resolveSupport(symbol){
if(symbol && symbol.comment){
- print("Resolving support for "+ symbol.alias);
symbol.supportStrings = [];
symbol.supportTag = "";
Something went wrong with that request. Please try again.