Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d2f238

Browse files
committed
general updates
1 parent3268a47 commit1d2f238

File tree

10 files changed

+169
-100
lines changed

10 files changed

+169
-100
lines changed

‎_includes/build/build.html

Lines changed: 126 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,64 @@
11
<sectionid="build">
22

3-
<sectionid="commands">
4-
<divclass="container content-section">
5-
6-
<divclass="row">
7-
<divclass="col-lg-12">
8-
<!-- <hr class="section-heading-spacer"> -->
9-
<divclass="clearfix"></div>
10-
<divclass="lead">
11-
<divclass="row">
12-
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
13-
<code>> coderoad create</code>
14-
<br>
15-
<br>
16-
</div>
17-
<divclass="col-xs-6">Quickly setup a base project</div>
3+
<divclass="content-section-a">
4+
<br><br>
5+
<divclass="row">
6+
<divclass="col-lg-12">
7+
<divclass="clearfix"></div>
8+
<divclass="lead">
9+
<divclass="row">
10+
<divclass="col-xs-12">
11+
<ulclass="intro-social-buttons coderoad-cli">
12+
<li>
13+
<ahref="https://github.com/coderoad/coderoad-cli"target="_blank"class="btn btn-default btn-lg">
14+
<iclass="fa fa-github fa-fw"></i>
15+
<spanclass="network-name">CodeRoad-CLI
16+
<spanclass="version">v{{ site.cliVersion }}</span>
17+
</span>
18+
</a>
19+
<br><br>
20+
<codeclass="social-instructions">> npm i -g coderoad-cli</code>
21+
<br><br>
22+
<aclass="version"href="/docs/#install">Install Guide</a>
23+
</li>
24+
</ul>
1825
</div>
19-
<divclass="row">
20-
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
21-
<code>> coderoad build</code>
22-
<br>
23-
<br>
24-
</div>
25-
<divclass="col-xs-6">Parse markdown tutorial into<i>coderoad.json</i></div>
26+
</div>
27+
<br>
28+
<divclass="row">
29+
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
30+
<code>> coderoad create</code>
31+
<br>
32+
<br>
33+
</div>
34+
<divclass="col-xs-6">Quickly setup a base project</div>
35+
</div>
36+
<divclass="row">
37+
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
38+
<code>> coderoad build</code>
39+
<br>
40+
<br>
2641
</div>
27-
<divclass="row">
28-
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
29-
<code>> coderoad publish</code>
30-
<br>
31-
<br>
32-
</div>
33-
<divclass="col-xs-6">Publish tutorial version on<ahref="https://npmjs.org"target="_blank">NPM</a> with<i>coderoad-</i> prefix</div>
42+
<divclass="col-xs-6">Parse markdown tutorial into
43+
<i>coderoad.json</i>
3444
</div>
3545
</div>
36-
<divstyle="text-align:center">
37-
<ahref="/docs/#install"class="btn btn-default btn-lg"><spanclass="network-name">Learn More</span></a>
38-
<br><br>
46+
<divclass="row">
47+
<divclass="col-xs-5 col-xs-offset-1 col-md-4 col-md-offset-2">
48+
<code>> coderoad publish</code>
49+
<br>
50+
<br>
51+
</div>
52+
<divclass="col-xs-6">Publish tutorial version on
53+
<ahref="https://npmjs.org"target="_blank">NPM</a>
54+
with
55+
<i>coderoad-</i>
56+
prefix</div>
3957
</div>
4058
</div>
41-
4259
</div>
4360
</div>
44-
</section>
61+
</div>
4562

4663
<!-- /.container -->
4764

@@ -55,25 +72,40 @@
5572
<divclass="clearfix"></div>
5673
<h2class="section-heading">Build in Markdown</h2>
5774
<divclass="lead">Tutorials are compiled from markdown.
58-
59-
<br><br>
60-
<ahref="https://github.com/coderoad/coderoad-functional-school/blob/master/tutorial/1/01/filter.md"target="_blank"class="btn btn-default btn-sm"><spanclass="network-name">A Tutorial Example</span></a>
61-
<br>
62-
<br>Control the editor with a<ahref="/docs/#coderoad-API">simple API</a>:
6375
<br>
76+
<br>Control the editor with a simple API:
6477
<br>
6578
<br>
6679
<ul>
67-
<li><code>@import</code> load another markdown file</li>
80+
<li>
81+
<code>@import</code>
82+
load another markdown file</li>
6883
<br>
69-
<li><code>@test</code> load unit tests</li>
84+
<li>
85+
<code>@test</code>
86+
load unit tests</li>
7087
<br>
71-
<li><code>@action</code> open a file, set/insert text</li>
88+
<li>
89+
<code>@action</code>
90+
open a file, set/insert text</li>
7291
<br>
73-
<li><code>@hint</code> add helpful clues</li>
92+
<li>
93+
<code>@hint</code>
94+
add helpful clues</li>
7495
</ul>
7596
<br>
76-
<ahref="/docs/#tutorial"class="btn btn-default btn-lg"><spanclass="network-name">Learn More</span></a>
97+
<ulclass="banner-social-buttons">
98+
<li>
99+
<ahref="/docs/#tutorial"class="btn btn-default btn-sm">
100+
<spanclass="network-name">Tutorial Docs</span>
101+
</a>
102+
</li>
103+
<li>
104+
<ahref="https://github.com/coderoad/coderoad-functional-school/blob/master/tutorial/1/01/filter.md"target="_blank"class="btn btn-default btn-sm">
105+
<spanclass="network-name">Example</span>
106+
</a>
107+
</li>
108+
</ul>
77109
</div>
78110
</div>
79111
<divclass="col-lg-6 col-sm-pull-6 col-sm-6">
@@ -100,46 +132,64 @@ <h2 class="section-heading">Build in Markdown</h2>
100132
}
101133
```
102134
))
103-
</pre></code>
104-
</div>
135+
</pre>
136+
</code>
105137
</div>
106-
107138
</div>
108-
<!-- /.container -->
109139

110140
</div>
111-
<!-- /.content-section-b -->
141+
<!-- /.container -->
112142

113-
<divclass="content-section-a">
143+
</div>
144+
<!-- /.content-section-b -->
114145

115-
<divclass="container">
146+
<divclass="content-section-a">
147+
148+
<divclass="container">
149+
150+
<divclass="row">
151+
<divclass="col-lg-4 col-sm-6">
152+
<!-- <hr class="section-heading-spacer"> -->
153+
<divclass="clearfix"></div>
154+
<h2class="section-heading">Unit Test Feedback</h2>
155+
<divclass="lead">
156+
Write task feedback using unit tests.
157+
<br><br>
158+
<ahref="/docs/#test-snippets">Snippets</a>
159+
&
160+
<ahref="/docs/#test-examples">examples</a>
161+
make test writing easy.
162+
<br><br>
163+
Currently supported:
164+
<br>
165+
<ul>
166+
<li>#"diff-56e47283a18320471c05f45ee4d88e37332540011211d648c312f99bd80239d6-115-167-0" data-selected="false" role="gridcell" tabindex="-1" valign="top">
167+
<ahref="https://github.com/coderoad/mocha-coderoad"target="_blank">Mocha</a>
168+
</li>
169+
</ul>
170+
<br>
171+
<i>CodeRoad will eventually support more test frameworks and programming languages through easy to setup
172+
<ahref="/docs/#test-runners">test runners</a>
173+
</i>
174+
<br>
175+
<br>
176+
<ulclass="banner-social-buttons">
177+
<li>
178+
<ahref="/docs/#tests"class="btn btn-default btn-lg">
179+
<spanclass="network-name">Test Docs</span>
180+
</a>
181+
</li>
182+
<li>
183+
<ahref="https://github.com/coderoad/coderoad-functional-school/blob/master/tutorial/1/01/01-filter.spec.js"target="_blank"class="btn btn-default btn-lg">
184+
<spanclass="network-name">Example</span>
185+
</a>
186+
</li>
187+
</ul>
116188

117-
<divclass="row">
118-
<divclass="col-lg-4 col-sm-6">
119-
<!-- <hr class="section-heading-spacer"> -->
120-
<divclass="clearfix"></div>
121-
<h2class="section-heading">Unit Test Feedback</h2>
122-
<divclass="lead"> Write task feedback using unit tests.
123-
<br><br>
124-
<ahref="/docs/#test-snippets">Snippets</a> &<ahref="/docs/#test-examples">examples</a> make test writing easy.
125-
<br><br>
126-
<ahref="https://github.com/coderoad/coderoad-functional-school/blob/master/tutorial/1/01/01-filter.spec.js"target="_blank"class="btn btn-default btn-sm"><spanclass="network-name">A Unit Test Example</span></a>
127-
<br>
128-
<br>
129-
<br> Currently supported:
130-
<br>
131-
<ul>
132-
<li>#"diff-56e47283a18320471c05f45ee4d88e37332540011211d648c312f99bd80239d6-133-188-0" data-selected="false" role="gridcell" tabindex="-1" valign="top">133
-
</ul>
134-
<br>
135-
<i>CodeRoad will eventually support more test frameworks and programming languages through easy to setup<ahref="/docs/#test-runners">test runners</a></i>
136-
<br>
137-
<br>
138-
<ahref="/docs/#tests"class="btn btn-default btn-lg"><spanclass="network-name">Learn More</span></a>
139-
</div>
140189
</div>
141-
<divclass="col-lg-6 col-lg-offset-2 col-sm-6">
142-
<pre><codeclass="language-js">
190+
</div>
191+
<divclass="col-lg-6 col-lg-offset-2 col-sm-6">
192+
<pre><codeclass="language-js">
143193
describe('01 function isAda', function () {
144194

145195
it('doesn\'t exist', function () {

‎_includes/build/header.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
<sectionid="build-home">
22
<!-- Header -->
3-
<divclass="intro-header-build">
3+
<divclass="short-intro-header">
44

55
<divclass="container">
66

77
<divclass="row">
88
<divclass="col-lg-12">
9-
<divclass="intro-message">
9+
<divclass="short-intro-message">
1010
<h1>CodeRoad</h1>
1111
<h3>Build Interactive Tutorials</h3>
12-
<h3>With the Command Line Interface</h3>
13-
<hrclass="intro-divider">
14-
<ulclass="list-inline intro-social-buttons">
15-
<li>
16-
<ahref="https://github.com/coderoad/coderoad-cli"target="_blank"class="btn btn-default btn-lg"><iclass="fa fa-github fa-fw"></i><spanclass="network-name">CodeRoad-CLI
17-
<spanclass="version">v{{ site.cliVersion }}</span></span></a>
18-
<br><br>
19-
<codeclass="social-instructions">> npm i -g coderoad-cli</code>
20-
</li>
21-
</ul>
2212
</div>
2313

2414
</div>

‎_includes/docs/docs.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<linkrel="stylesheet"type="text/css"href="/css/docs.min.css"/>
2-
<linkrel="stylesheet"type="text/css"href="/css/dark-syntax.css"/>
3-
41
<sectionid="docs">
52
<divclass="container bs-docs-container">
63
<divclass="row">

‎_includes/docs/header.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
<linkrel="stylesheet"type="text/css"href="/css/docs.min.css"/>
2+
<linkrel="stylesheet"type="text/css"href="/css/dark-syntax.css"/>
3+
14
<sectionid="build-home">
25
<!-- Header -->
3-
<divclass="intro-header-docs">
6+
<divclass="short-intro-header">
47

58
<divclass="container">
69

710
<divclass="row">
811
<divclass="col-lg-12">
9-
<divclass="intro-message">
12+
<divclass="short-intro-message">
1013
<h1>CodeRoad</h1>
1114
<h3>Tutorial Development Docs</h3>
1215
</div>
13-
1416
</div>
1517
</div>
16-
1718
</div>
1819
<!-- /.container -->
1920

‎_layouts/start.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<htmllang="en">
3+
{% include head.html %}
4+
5+
<body>
6+
{% include nav.html %}
7+
{% include docs/header.html %}
8+
{% include docs/docs.html %}
9+
{% include docs/footer.html %}
10+
{% include js.html %}
11+
{% include docs/js.html %}
12+
</body>
13+
</html>

‎_posts/2016-01-05-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ loadJS('user-file.js');
3939
// adds file contents here
4040
```
4141

42-
You'll have to roll your own loader to fit your project, but there are example[loaders](#loaders) included later in the docs.
42+
You'll have to roll your own loader to fit your project, but there are example[loaders](#test-loaders) included later in the docs.
4343

4444
*Note: When using spies, stubs or mocks, initiate them above your loader call.*
4545

‎_posts/2016-01-06-loaders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout:docs
33
title:Loaders
4-
id:loaders-snippets
4+
id:test-loaders
55
file:2016-01-06-loaders.md
66
---
77

‎css/docs.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎css/landing-page.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ body, h1, h2, h3, h4, h5, h6 {
1313
font-family:"Lato","Helvetica Neue", Helvetica, Arial, sans-serif;
1414
font-weight:700;
1515
}
16+
a:hover {
17+
text-decoration: none;
18+
}
1619
.lead {
1720
font-size:18px;
1821
font-weight:400;
@@ -38,7 +41,7 @@ body, h1, h2, h3, h4, h5, h6 {
3841
), url(../img/coderoad-header.jpg) no-repeat center center;
3942
background-size: cover;
4043
}
41-
.intro-header-docs {
44+
.short-intro-header {
4245
padding-top:20px;
4346
/* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
4447
padding-bottom:0px;
@@ -49,7 +52,9 @@ body, h1, h2, h3, h4, h5, h6 {
4952
rgba(178,214,222,0.2)
5053
), url(../img/coderoad-header.jpg) no-repeat center center;
5154
background-size: cover;
55+
height:300px;
5256
}
57+
5358
.intro-message {
5459
position: relative;
5560
padding-top:20%;
@@ -60,6 +65,16 @@ body, h1, h2, h3, h4, h5, h6 {
6065
text-shadow:2px2px3pxrgba(0,0,0,0.6);
6166
font-size:5em;
6267
}
68+
.short-intro-message {
69+
position: relative;
70+
padding-top:8%;
71+
padding-bottom:2%;
72+
}
73+
.short-intro-message>h1 {
74+
margin:0;
75+
text-shadow:2px2px3pxrgba(0,0,0,0.6);
76+
font-size:5em;
77+
}
6378
.intro-divider {
6479
width:400px;
6580
border-top:1px solid#f8f8f8;
@@ -250,3 +265,6 @@ code {
250265
.requirementsa:link {
251266
color: white;
252267
}
268+
.coderoad-cli {
269+
text-align: center;
270+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp