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

Commit658fd0d

Browse files
committed
docs improved, fix code formatting
1 parent1d2f238 commit658fd0d

File tree

13 files changed

+191
-133
lines changed

13 files changed

+191
-133
lines changed

‎_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ video: DbLpdgrYVOU
1818

1919
# Build settings
2020
markdown:kramdown
21-
highlighter:rouge
2221
kramdown:
2322
input:GFM
23+
syntax_highlighter:rouge
2424
permalink:pretty
2525

2626
gems:

‎_includes/build/build.html

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -132,64 +132,66 @@ <h2 class="section-heading">Build in Markdown</h2>
132132
}
133133
```
134134
))
135-
</pre>
135+
136136
</code>
137+
</pre>
138+
</div>
137139
</div>
140+
138141
</div>
142+
<!-- /.container -->
139143

140144
</div>
141-
<!-- /.container -->
145+
<!-- /.content-section-b -->
142146

143-
</div>
144-
<!-- /.content-section-b -->
145-
146-
<divclass="content-section-a">
147+
<divclass="content-section-a">
147148

148-
<divclass="container">
149+
<divclass="container">
149150

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

191+
</div>
189192
</div>
190-
</div>
191-
<divclass="col-lg-6 col-lg-offset-2 col-sm-6">
192-
<pre><codeclass="language-js">
193+
<divclass="col-lg-6 col-lg-offset-2 col-sm-6">
194+
<pre><codeclass="language-js">
193195
describe('01 function isAda', function () {
194196

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

‎_includes/docs/docs.html

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,56 @@ <h1 id="overview" class="page-header">Overview</h1>
1212
CodeRoad aims to make building & sharing interactive coding tutorials as easy as possible.
1313
</blockquote>
1414

15-
<divclass="lead">We hope to create fun and maintainable code tutorials that actually improve with time. We hope to see programming students become teachers, teachers become empowered, and coders become better, faster. But first, let's get some interactive coding tutorials built.
16-
That's where you come in.</div>
15+
<divclass="lead">We hope to create fun and maintainable code tutorials that actually improve with time. We hope to see programming students become teachers, teachers become empowered, and coders become better, faster. But first, let's get some
16+
interactive coding tutorials built.That's where you come in.</div>
1717

18-
<ahref="/build"class="btn btn-default btn-lg"><iclass="fa fa-road fa-fw"></i><spanclass="network-name">Read an Overview of Building a Tutorial</span></a>
18+
<ahref="/build"class="btn btn-default btn-lg">
19+
<iclass="fa fa-road fa-fw"></i>
20+
<spanclass="network-name">Read an Overview of Building a Tutorial</span>
21+
</a>
1922
<br><br>
2023
<divid="mc_embed_signup">
21-
<formclass="form-inline"action="//herokuapp.us11.list-manage.com/subscribe/post?u=324732fa284e63ca555b47978&amp;id=5f3f4f5086"method="post"id="mc-embedded-subscribe-form"name="mc-embedded-subscribe-form"class="validate"target="_blank"novalidate>
22-
<labelclass="sr-only"style="text-align:center">Subscribe to our mailing list</label>
23-
<divclass="form-group">
24-
<inputtype="email"value=""class="form-control"name="EMAIL"class="email"id="mce-EMAIL"placeholder="email address"style="font-family: Lato,Helvetica,Arial,sans-serif"required>
25-
<buttontype="submit"name="subscribe"id="mc-embedded-subscribe"class="btn btn-default">
26-
<iclass="fa fa-envelope-o fa-fw"></i>
27-
<spanclass="network-name"> Subscribe To Mail List</span>
28-
</button>
29-
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
30-
<divstyle="position: absolute; left: -5000px;"aria-hidden="true">
31-
<inputtype="text"name="b_324732fa284e63ca555b47978_5f3f4f5086"tabindex="-1"value="">
32-
</div>
33-
</div>
34-
</form>
35-
</div>
24+
<form
25+
class="form-inline"
26+
action="//herokuapp.us11.list-manage.com/subscribe/post?u=324732fa284e63ca555b47978&amp;id=5f3f4f5086"
27+
method="post"
28+
id="mc-embedded-subscribe-form"
29+
name="mc-embedded-subscribe-form"
30+
class="validate"
31+
target="_blank"
32+
novalidate>
33+
<labelclass="sr-only"style="text-align:center">Subscribe to our mailing list</label>
34+
<divclass="form-group">
35+
<inputtype="email"value=""class="form-control"name="EMAIL"class="email"id="mce-EMAIL"placeholder="email address"style="font-family: Lato,Helvetica,Arial,sans-serif"required/>
36+
<buttontype="submit"name="subscribe"id="mc-embedded-subscribe"class="btn btn-default">
37+
<iclass="fa fa-envelope-o fa-fw"></i>
38+
<spanclass="network-name">
39+
Subscribe To Mail List</span>
40+
</button>
41+
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
42+
<divstyle="position: absolute; left: -5000px;"aria-hidden="true">
43+
<inputtype="text"name="b_324732fa284e63ca555b47978_5f3f4f5086"tabindex="-1"value=""/>
44+
</div>
45+
</div>
46+
</form>
47+
</div>
3648
</section>
49+
3750
{% for post in site.posts reversed %}
38-
<sectionid="{{ post.id }}"class="bs-docs-section">
39-
<h2class="section-heading">{{ post.title }}</h2>
40-
<divclass="lead">{{ post.content }}</div>
51+
<sectionid="{{ post.id }}"class="bs-docs-section">
52+
<h2class="section-heading">{{ post.title }}</h2>
53+
<divclass="lead">{{ post.content }}</div>
54+
<br>
55+
<ahref="https://github.com/coderoad/coderoad.github.io/edit/master/_posts/{{post.file}}"class="btn btn-default btn-xs">
56+
<iclass="fa fa-pencil fa-fw"></i>
57+
<spanclass="network-name">
58+
Edit {{post.title}} Docs</span>
59+
</a>
60+
</section>
4161
<br>
42-
<ahref="https://github.com/coderoad/coderoad.github.io/edit/master/_posts/{{ post.file}}"class="btn btn-default btn-xs"><iclass="fa fa-pencil fa-fw"></i><spanclass="network-name"> Edit {{post.title}} Docs</span></a>
43-
</section>
44-
<br> {% endfor %}
62+
{% endfor %}
4563
</div>
4664

4765
</div>
66+
</div>
4867
</section>

‎_includes/docs/header.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="build-home">
52
<!-- Header -->
63
<divclass="short-intro-header">

‎_includes/docs/js.html

Lines changed: 67 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,84 @@
11
<script>
2-
$(function(){
3-
// build side menu
4-
varhtml='';
2+
$(function(){
3+
// build side menu
4+
varhtml='';
55

6-
$('.bs-docs-section').each(function(){
7-
varh1=$(this).find('h1[id]').first(),
6+
$('.bs-docs-section').each(function(){
7+
varh1=$(this).find('h1[id]').first(),
88
h23=$(this).find('h2[id], h3[id]');
99

10-
if(h1.length){
11-
html+='<li><a href="#'+h1[0].id+'">'+h1.clone().children().remove().end().text()+'</a>';
10+
if(h1.length){
11+
html+='<li><a href="#'+h1[0].id+'">'+h1.clone().children().remove().end().text()+'</a>';
1212

13-
if(h23.length){
14-
html+='<ul class="nav">';
15-
h23.each(function(){
16-
html+='<li><a href="#'+this.id+'">'+$(this).clone().children().remove().end().text()+'</a></li>';
17-
});
18-
html+='</ul>';
13+
if(h23.length){
14+
html+='<ul class="nav">';
15+
h23.each(function(){
16+
html+='<li><a href="#'+this.id+'">'+$(this).clone().children().remove().end().text()+'</a></li>';
17+
});
18+
html+='</ul>';
19+
}
20+
21+
html+='</li>';
1922
}
23+
});
2024

21-
html+='</li>';
25+
if(html==''){
26+
$('[role=complementary]').hide();
27+
$('[role=main]').toggleClass('col-md-9 col-md-12');
28+
}else{
29+
$('.bs-docs-sidenav').html(html);
2230
}
23-
});
2431

25-
if(html==''){
26-
$('[role=complementary]').hide();
27-
$('[role=main]').toggleClass('col-md-9 col-md-12');
28-
}
29-
else{
30-
$('.bs-docs-sidenav').html(html);
31-
}
32-
33-
$('[data-bootbox]').on('click',function(){
34-
var$target=$('#'+$(this).data('bootbox'));
35-
bootbox.alert({
36-
title:$target.attr('title'),
37-
message:$target.html()
32+
$('[data-bootbox]').on('click',function(){
33+
var$target=$('#'+$(this).data('bootbox'));
34+
bootbox.alert({title:$target.attr('title'),message:$target.html()});
3835
});
39-
});
4036

41-
/*!
37+
/*!
4238
* JavaScript for Bootstrap's docs (http://getbootstrap.com)
4339
* Copyright 2011-2014 Twitter, Inc.
4440
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
4541
* details, see http://creativecommons.org/licenses/by/3.0/.
4642
*/
47-
!function(a){a(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){varb=document.createElement("style");b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(b)}{varc=a(window),d=a(document.body);a(".navbar").outerHeight(!0)+10}d.scrollspy({target:".bs-docs-sidebar"}),c.on("load",function(){d.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){varb=a(".bs-docs-sidebar");b.affix({offset:{top:function(){varc=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();returnthis.top=c-e-d},bottom:function(){returnthis.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100)})}(jQuery);
48-
});
43+
!function(a){
44+
a(function(){
45+
if(navigator.userAgent.match(/IEMobile\/10\.0/)){
46+
varb=document.createElement("style");
47+
b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),
48+
document.querySelector("head").appendChild(b)
49+
}
50+
{
51+
varc=a(window),
52+
d=a(document.body);
53+
a(".navbar").outerHeight(!0)+10
54+
}
55+
d.scrollspy({target:".bs-docs-sidebar"}),
56+
c.on("load",function(){
57+
d.scrollspy("refresh")
58+
}),
59+
a(".bs-docs-container [href=#]").click(function(a){
60+
a.preventDefault()
61+
}),
62+
setTimeout(function(){
63+
varb=a(".bs-docs-sidebar");
64+
b.affix({
65+
offset:{
66+
top:function(){
67+
varc=b.offset().top,
68+
d=parseInt(b.children(0).css("margin-top"),10),
69+
e=a(".bs-docs-nav").height();
70+
returnthis.top=c-e-d
71+
},
72+
bottom:function(){
73+
returnthis.bottom=a(".bs-docs-footer").outerHeight(!0)
74+
}
75+
}
76+
})
77+
},100),
78+
setTimeout(function(){
79+
a(".bs-top").affix()
80+
},100)
81+
})
82+
}(jQuery);
83+
});
4984
</script>

‎_includes/docs/nav.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<linkrel="stylesheet"type="text/css"href="/css/docs.min.css"/>
2+
<linkrel="stylesheet"type="text/css"href="/css/dark-syntax.css"/>
3+
14
<!-- Navigation -->
25
<navclass="navbar navbar-default navbar-collapse"role="navigation">
36
<divclass="container">

‎_includes/head.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<head>
22

3-
<metacharset="utf-8">
4-
<metahttp-equiv="X-UA-Compatible"content="IE=edge">
5-
<metaname="viewport"content="width=device-width, initial-scale=1">
6-
<metaname="description"content="{{ site.description }}">
7-
<metaname="author"content="{{ site.author }}">
3+
<metacharset="utf-8"/>
4+
<metahttp-equiv="X-UA-Compatible"content="IE=edge"/>
5+
<metaname="viewport"content="width=device-width, initial-scale=1"/>
6+
<metaname="description"content="{{ site.description }}"/>
7+
<metaname="author"content="{{ site.author }}"/>
88
<metaname="google-site-verification"content="VJIgsbPgP-hRknYcXCVkjVBR0QZg6MaS-kpa9Gp0XY8"/>
99
<metaname="msvalidate.01"content="1094FA9F7A148483624E60DBEE3DDC89"/>
1010

1111
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
1212

1313
<!-- Bootstrap Core CSS -->
14-
<linkhref="/css/bootstrap.min.css"rel="stylesheet">
14+
<linkhref="/css/bootstrap.min.css"rel="stylesheet"/>
1515

1616
<!-- Custom CSS -->
17-
<linkhref="/css/landing-page.min.css"rel="stylesheet">
18-
<linkhref="/css/prism.min.css"rel="stylesheet">
17+
<linkhref="/css/landing-page.min.css"rel="stylesheet"/>
18+
<linkhref="/css/prism.min.css"rel="stylesheet"/>
1919

2020
<!-- Custom Fonts -->
21-
<linkhref="/css/font-awesome-4.1.0/css/font-awesome.min.css"rel="stylesheet"type="text/css">
22-
<linkhref="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"rel="stylesheet"type="text/css">
21+
<linkhref="/css/font-awesome-4.1.0/css/font-awesome.min.css"rel="stylesheet"type="text/css"/>
22+
<linkhref="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"rel="stylesheet"type="text/css"/>
2323
<linkhref="/fonts/firacode-webfont/FiraCode-Regular.css"rel="stylesheet"type="text/css"/>
2424

2525
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp