Skip to content

Commit d9fdd03

Browse files
committed
apply doc template
1 parent 743ff21 commit d9fdd03

22 files changed

+39
-61
lines changed

_includes/docs.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<br />
2+
<br />
3+
<section id="{{ include.id }}">
4+
<h2>{{ include.title }}</h2>
5+
<div>{{ include.content }}</div>
6+
<br>
7+
<a class="button" href="{{ include.editPath }}/{{ include.file }}">
8+
<i class="fa fa-pencil fa-fw"></i>
9+
<span class="network-name">
10+
Edit {{ include.title }} Docs
11+
</span>
12+
</a>
13+
</section>

_posts/atom-coderoad/2016-01-01-explanation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: What is Atom-CodeRoad?
43
id: explanation
54
file: 2016-01-01-explanation.md

_posts/atom-coderoad/2016-01-02-installation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Quick Start
43
id: install
54
file: 2016-01-02-installation.md

_posts/builder-coderoad/2016-01-01-explanation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: What is Builder-CodeRoad?
43
id: explanation
54
file: 2016-01-01-explanation.md

_posts/builder-coderoad/2016-01-02-installation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Quick Start
43
id: install
54
file: 2016-01-02-installation.md

_posts/builder-coderoad/2016-01-03-development.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Development
43
id: development
54
file: 2016-01-02-development.md

_posts/tutorial-docs/2016-01-01-tutorial.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Tutorial Markdown
43
id: tutorial-md
54
file: 2016-01-01-tutorial.md

_posts/tutorial-docs/2016-01-02-coderoad-api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: CodeRoad API
43
id: coderoad-API
54
file: 2016-01-02-coderoad-api.md

_posts/tutorial-docs/2016-01-03-tests.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Unit Testing
43
id: tests
54
file: 2016-01-03-tests.md

_posts/tutorial-docs/2016-01-04-loaders.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Loaders
43
id: test-loaders
54
file: 2016-01-04-loaders.md

_posts/tutorial-docs/2016-01-05-test-snippets.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Test Snippets
43
id: test-snippets
54
file: 2016-01-05-test-snippets.md

_posts/tutorial-docs/2016-01-06-test-examples.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Test Examples
43
id: test-examples
54
file: 2016-01-06-test-examples.md

_posts/tutorial-docs/2016-01-07-config.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Config
43
id: config
54
file: 2016-01-07-config.md

_posts/tutorial-docs/2016-01-08-publish.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Publishing
43
id: publish
54
file: 2016-01-08-publish.md

_posts/tutorial-docs/2016-01-09-test-runner.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Test Runners
43
id: test-runners
54
file: 2016-01-09-test-runner.md

_posts/tutorial-docs/2016-01-10-roadmap.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: docs
32
title: Roadmap
43
id: roadmap
54
file: 2016-01-10-roadmap.md

_posts/tutorials/2016-01-01-functional-school.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: tutorial
32
title: Functional School
43
file: 2016-01-01-functional-school.md
54
language: JS

_posts/tutorials/2016-01-02-es2015.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
layout: tutorial
32
title: ES2015
43
file: 2016-01-02-es2015.md
54
language: JS

atom-coderoad.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@
44
tagline: Play Interactive Tutorials
55
---
66

7-
{% for post in site.categories.atom-coderoad reversed %}
8-
<br />
9-
<br />
10-
<section id="{{ post.id }}">
11-
<h2>{{ post.title }}</h2>
12-
<div>{{ post.content }}</div>
13-
<br>
14-
<a class="button" href="https://github.com/coderoad/coderoad.github.io/edit/master/_posts/atom-coderoad/{{post.file}}">
15-
<i class="fa fa-pencil fa-fw"></i>
16-
<span class="network-name">
17-
Edit {{post.title}} Docs
18-
</span>
19-
</a>
20-
</section>
7+
{% for doc in site.categories.atom-coderoad reversed %}
8+
{% include docs.html
9+
id=doc.id
10+
title=doc.title
11+
content=doc.content
12+
editPath="//github.com/coderoad/coderoad.github.io/edit/master/_posts/atom-coderoad"
13+
file=doc.file
14+
%}
2115
{% endfor %}

builder-coderoad.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,14 @@
44
tagline: Create Interactive Tutorials
55
---
66

7-
{% for post in site.categories.builder-coderoad reversed %}
8-
<br />
9-
<br />
10-
<section id="{{ post.id }}">
11-
<h2>{{ post.title }}</h2>
12-
<div>{{ post.content }}</div>
13-
<br>
14-
<a class="button" href="https://github.com/coderoad/coderoad.github.io/edit/master/_posts/builder-coderoad/{{post.file}}">
15-
<i class="fa fa-pencil fa-fw"></i>
16-
<span class="network-name">
17-
Edit {{post.title}} Docs
18-
</span>
19-
</a>
20-
</section>
7+
{% for doc in site.categories.builder-coderoad reversed %}
8+
{% include docs.html
9+
id=doc.id
10+
title=doc.title
11+
content=doc.content
12+
editPath="//github.com/coderoad/coderoad.github.io/edit/master/_posts/builder-coderoad"
13+
file=doc.file
14+
%}
2115
{% endfor %}
2216
<!--
2317
<ul>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ <h2>{{summary.title}}</h2>
3737
<!-- Features -->
3838
{% for feature in site.categories.features reversed %}
3939
<section class="spotlight wide">
40-
<div class="image" >
41-
{% if feature.image.href %}
40+
<div class="image">
41+
{% if feature.image.alt %}
4242
<a id="{{feature.image.id}}" href="#{{feature.image.href}}" class="modal-link">
4343
<img alt="{{feature.image.alt}}"
4444
src="{{feature.image.src}}"

tutorial-docs.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,14 @@
1616
</section>
1717

1818
<!-- Articles -->
19-
{% for post in site.categories.docs reversed %}
20-
<br />
21-
<br />
22-
<section id="{{ post.id }}">
23-
<h2>{{ post.title }}</h2>
24-
<div>{{ post.content }}</div>
25-
<br>
26-
<a class="button" href="https://github.com/coderoad/coderoad.github.io/edit/master/_posts/tutorial-docs/{{post.file}}">
27-
<i class="fa fa-pencil fa-fw"></i>
28-
<span class="network-name">
29-
Edit {{post.title}} Docs
30-
</span>
31-
</a>
32-
</section>
19+
{% for doc in site.categories.docs reversed %}
20+
{% include docs.html
21+
id=doc.id
22+
title=doc.title
23+
content=doc.content
24+
editPath="//github.com/coderoad/coderoad.github.io/edit/master/_posts/tutorial-docs"
25+
file=doc.file
26+
%}
3327
{% endfor %}
3428

3529
</div>

0 commit comments

Comments
 (0)