Permalink
Browse files

help tweaks

  • Loading branch information...
cadorn committed May 2, 2012
1 parent 342ba9c commit 31a904e34b06d729646ac9c819f9a1d7911fb90f
Showing with 26 additions and 57 deletions.
  1. +21 −0 HELP.md
  2. +1 −1 README.md
  3. +0 −52 README_NEW.md
  4. +4 −4 scripts/help.js
View
21 HELP.md
@@ -0,0 +1,21 @@
+
+# Update dependencies:
+
+sm update
+
+# Setup dependency for editing:
+
+sm status
+sm edit <dependency>
+
+# Start IDE:
+
+bin/cloud9.sh -w ~/git/myproject
+
+# To commit & push:
+
+sm fix
+
+# All clean?:
+
+sm status
View
@@ -47,7 +47,7 @@ Optionally, you may specify the directory you'd like to edit:
bin/cloud9.sh -w ~/git/myproject
-Cloud9 will be started as a web server on port `3131`, you can access it by
+Cloud9 will be started as a web server on port `-p 3131`, you can access it by
pointing your browser to: [http://localhost:3131](http://localhost:3131)
## Updating
View
@@ -1,52 +0,0 @@
-Cloud9 IDE
-==========
-
-The open source Cloud 9 IDE.
-
-
-Development Setup & Workflow
-============================
-
-Requirements:
-
- * NodeJS >= 0.6.15
- * Sourcemint: `npm install -g sm`
-
-Setup:
-
- sm clone --dev https://github.com/ajaxorg/cloud9/tree/plugins2 cloud9
- cd cloud9
-
-Workflow:
-
- # Update dependencies:
-
- sm update
-
- # Setup dependency for editing:
-
- sm status
- sm edit <dependency>
-
- # Start IDE:
-
- npm start
-
- # To commit:
-
- sm fix
-
- # All clean?:
-
- sm status
-
-Run it:
-
-```bash
-$ node server.js
-```
-
-Options:
-
-* `-w /path/to/project` Open a different workspace (broken)
-* `-p 1234` Listen on a different port, default is 3131
View
@@ -7,11 +7,11 @@ exports.main = function(options) {
var TERM = options.TERM;
- var readmePath = PATH.join(__dirname, "../README_NEW.md");
+ var readmePath = PATH.join(__dirname, "../HELP.md");
var readme = FS.readFileSync(readmePath).toString();
- // TODO: Use proper markdown parsing here.
- var workflow = readme.match(/\n\nWorkflow:\n\n([\s\S\n]*?)\n\n/);
+// // TODO: Use proper markdown parsing here.
+// var workflow = readme.match(/\n\nWorkflow:\n\n([\s\S\n]*?)\n\n/);
- TERM.stdout.writenl(workflow[1]);
+ TERM.stdout.writenl(" " + readme.replace(/(^\n*|\n*$)/g, "").split("\n").join("\n "));
}

0 comments on commit 31a904e

Please sign in to comment.