Skip to content

Commit

Permalink
Add docs for run command
Browse files Browse the repository at this point in the history
  • Loading branch information
djsegal committed Mar 18, 2017
1 parent b772ae9 commit 8cb10b5
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Router.map(function() {
this.route('init');
this.route('new');
this.route('test');
this.route('run');
});
});

Expand Down
4 changes: 4 additions & 0 deletions docs/app/routes/commands/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
1 change: 1 addition & 0 deletions docs/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
{{#submenu-item active=(is-active "commands.init" currentRouteName) onClick=(transition-to "commands.init")}}Init{{/submenu-item}}
{{#submenu-item active=(is-active "commands.generate" currentRouteName) onClick=(transition-to "commands.generate")}}Generate{{/submenu-item}}
{{#submenu-item active=(is-active "commands.destroy" currentRouteName) onClick=(transition-to "commands.destroy")}}Destroy{{/submenu-item}}
{{#submenu-item active=(is-active "commands.run" currentRouteName) onClick=(transition-to "commands.run")}}Run{{/submenu-item}}
{{#submenu-item active=(is-active "commands.test" currentRouteName) onClick=(transition-to "commands.test")}}Test{{/submenu-item}}
{{/liquid-if}}
</div>
Expand Down
67 changes: 67 additions & 0 deletions docs/app/templates/commands/run.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{{#docs-body bodyTitle="The Run Command"}}

<h3>
Command:
</h3>


{{#code-block language='julia'}}

Julz.run()
{{/code-block}}

<br>

<h3>
Description:
</h3>

<p>

Run the main function.

</p>

<br>

{{paper-divider}}

<br>

<h3>
Parameter(s):
</h3>

{{#paper-data-table as |table|}}

{{#table.head as |head|}}
{{#head.column}}Name{{/head.column}}
{{#head.column}}Value{{/head.column}}
{{/table.head}}

{{#table.body as |body|}}

{{#body.row as |row|}}
{{#row.cell}} none {{/row.cell}}
{{#row.cell}} - {{/row.cell}}
{{/body.row}}

{{/table.body}}

{{/paper-data-table}}

<br>

<h3>
Source:
</h3>

<ul>
<li>
<a target="_blank" href="https://github.com/djsegal/Julz.jl/blob/master/src/functions/run.jl">
src/functions/run.jl
</a>
</li>
</ul>

{{/docs-body}}
13 changes: 11 additions & 2 deletions docs/app/templates/getting-started.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,16 @@ end
<br>

<p>
You can now run every {{link-to 'test' 'commands.test' }} using:
You can now {{link-to 'run' 'commands.run' }} your code using:
</p>

{{#code-block language='julia'}}

Julz.run()
{{/code-block}}

<p>
And {{link-to 'test' 'commands.test' }} everything using:
</p>

{{#code-block language='julia'}}
Expand All @@ -97,7 +106,7 @@ Julz.test()
{{/code-block}}

<p>
And when you get bored of the <code>foo</code> type, you can {{link-to 'destroy' 'commands.destroy' }} it with:
Then when you get bored of the <code>foo</code> type, you can {{link-to 'destroy' 'commands.destroy' }} it with:
</p>

{{#code-block language='julia'}}
Expand Down
11 changes: 11 additions & 0 deletions docs/tests/unit/routes/commands/run-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:commands/run', 'Unit | Route | commands/run', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});

0 comments on commit 8cb10b5

Please sign in to comment.