Browse Source

back out with-doc option

JimMarlowe 9 years ago
parent
commit
6666b6fcb1

+ 0 - 1
Build/Scripts/Bootstrap.js

@@ -26,7 +26,6 @@ function printHelp() {
     console.log("--debug         : Build debug version of the editor and associated platform runtimes")
     console.log("--noclean       : Do not clean before building, useful during development")
     console.log("--nonet         : Build without AtomicNET C# scripting support")
-    console.log("--with-docs     : Build and install API documents into the editor")
     console.log("--with-examples : Install examples into the editor")
     console.log("--------------------------")
 

+ 2 - 34
Build/Scripts/BuildCommon.js

@@ -7,11 +7,8 @@ var glob = require('glob');
 
 var Tslint = require("tslint");
 
-var fso = require('fs');
-var buildInfoDir = atomicRoot + "Source/AtomicBuildInfo/";
 var editorAppFolder = host.artifactsRoot + "AtomicEditor/";
 var toolDataFolder = editorAppFolder + "Resources/ToolData/";
-var jsDocFolder = host.artifactsRoot + "Build/JSDoc/";
 
 namespace('build', function() {
 
@@ -213,38 +210,7 @@ namespace('build', function() {
 
     });
 
- 
-  task('gendocs', {
-    async: true
-    }, function() {
-
-    fs.copySync(atomicRoot + "Build/Docs/Readme.md", jsDocFolder + "Readme.md");
-    fs.copySync(atomicRoot + "Build/Docs/atomic-theme", jsDocFolder + "atomic-theme");
-
-    cmds = [
-      "cd " + jsDocFolder + " && echo {} > package.json", // newer versions of npm require package.json to be in the folder or else it searches up the heirarchy
-      "cd " + jsDocFolder + " && npm install typedoc",
-      "cd " + jsDocFolder + " && ./node_modules/.bin/typedoc --out out " + toolDataFolder + "TypeScriptSupport/Atomic.d.ts --module commonjs --includeDeclarations --mode file --theme atomic-theme --name 'Atomic Game Engine' --readme ./Readme.md",
-    ];
-
-    jake.exec(cmds, function() {
-        
-      common.cleanCreateDir( toolDataFolder + "Docs");
-
-      fs.copySync(jsDocFolder + "out", toolDataFolder + "Docs/JSDocs");
-    
-      complete();
-
-      console.log( "completed installing API documentation" );
-
-    }, {
-        
-      printStdout: true
-
-    });
 
-  });
-  
   task('genexamples', {
     async: true
     }, function() {
@@ -256,9 +222,11 @@ namespace('build', function() {
     ];
 
     jake.exec(cmds, function() {
+        
       fs.removeSync( toolDataFolder + "AtomicExamples/.git" );
 
       complete();
+      
       console.log( "completed installing example programs" )
 
         }, {

+ 0 - 5
Build/Scripts/BuildLinux.js

@@ -105,7 +105,6 @@ namespace('build', function() {
 
         var android = options["with-android"] ? true : false;
         var cleanBuild = options["noclean"] ? false : true;
-        var installDocs = options["with-docs"] ? true : false;
         var installExamples = options["with-examples"] ? true : false;
         debug = options["debug"] ? true : false;
         config = debug ? "Debug" : "Release";
@@ -156,10 +155,6 @@ namespace('build', function() {
             rootTask.addListener('complete', function () {
                 console.log("\n\nAtomic Editor built to " + editorAppFolder + "\n\n");
 
-                if (installDocs) {
-                    jake.Task['build:gendocs'].invoke();
-                }
-
                 if (installExamples) {
                     jake.Task['build:genexamples'].invoke();
                 }

+ 0 - 5
Build/Scripts/BuildMac.js

@@ -89,7 +89,6 @@ namespace('build', function() {
         var android = options["with-android"] ? true : false;
         var ios = options["with-ios"] ? true : false;
         var cleanBuild = options["noclean"] ? false : true;
-        var installDocs = options["with-docs"] ? true : false;
         var installExamples = options["with-examples"] ? true : false;
         debug = options["debug"] ? true : false;
         config = debug ? "Debug" : "Release";
@@ -147,10 +146,6 @@ namespace('build', function() {
             rootTask.addListener('complete', function () {
                 console.log("\n\nAtomic Editor built to " + editorAppFolder + "\n\n");
 
-                if (installDocs) {
-                    jake.Task['build:gendocs'].invoke();
-                }
-
                 if (installExamples) {
                     jake.Task['build:genexamples'].invoke();
                 }

+ 0 - 5
Build/Scripts/BuildWindows.js

@@ -88,7 +88,6 @@ namespace('build', function() {
 
         var android = options["with-android"] ? true : false;
         var cleanBuild = options["noclean"] ? false : true;
-        var installDocs = options["with-docs"] ? true : false;
         var installExamples = options["with-examples"] ? true : false;
         debug = options["debug"] ? true : false;
         config = debug ? "Debug" : "Release";
@@ -134,10 +133,6 @@ namespace('build', function() {
             rootTask.addListener('complete', function () {
                 console.log("\n\nAtomic Editor built to " + editorAppFolder + "\n\n");
 
-                if (installDocs) {
-                    jake.Task['build:gendocs'].invoke();
-                }
-
                 if (installExamples) {
                     jake.Task['build:genexamples'].invoke();
                 }