Skip to content

Commit

Permalink
Add more autogen rest api items back to docgen.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkraljevic committed Oct 13, 2013
1 parent efa78c4 commit d598307
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ endif

dw_1:
rm -fr $(BUILD_WEBSITE_DIR)
rm -fr h2odocs/source/developuser/links
mkdir -p h2odocs/source/developuser/links
cd h2odocs/source/developuser/links && java -cp $(TOPDIR)/target/h2o.jar water.api.DocGen
rm -fr h2odocs/source/developuser/DocGen
mkdir -p h2odocs/source/developuser/DocGen
cd h2odocs/source/developuser/DocGen && java -cp $(TOPDIR)/target/h2o.jar water.api.DocGen

# If this fails, you might need to do the following:
# $ (possibly sudo) easy_install pip
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/water/api/DocGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import water.util.Log;

import hex.gbm.*;
import hex.glm.*;
import hex.KMeans2;

/**
* Auto-gen doc support, for JSON & REST API docs
Expand All @@ -35,8 +37,13 @@ public static void createReSTFilesInCwd() {
createFile("ImportFiles2.rst", new ImportFiles2().ReSTHelp());
createFile("Parse2.rst", new Parse2().ReSTHelp());
*/

createFile("ImportFiles2.rst", new ImportFiles2().ReSTHelp());
createFile("Parse2.rst", new Parse2().ReSTHelp());
createFile("GBM.rst", new GBM().ReSTHelp());
createFile("DRF.rst", new DRF().ReSTHelp());
createFile("DRF2.rst", new DRF().ReSTHelp());
createFile("GLM2.rst", new GLM2().ReSTHelp());
createFile("KMeans2.rst", new KMeans2().ReSTHelp());
}

public static void main(String[] args) throws Exception {
Expand Down

0 comments on commit d598307

Please sign in to comment.