Skip to content

Commit f412e54

Browse files
author
Davert
committed
design updated
1 parent 21e152b commit f412e54

File tree

4 files changed

+43
-25
lines changed

4 files changed

+43
-25
lines changed

_layouts/doc.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
---
2-
layout: page
2+
layout: bootstrap
33
---
4+
<div class="row">
5+
<div class="span8">
6+
<div class="content page" id="page">
7+
<div>
8+
{{ content }}
9+
</div>
10+
</div>
11+
</div>
12+
<div class="span4">
413

5-
{{ content }}
14+
<div id="toc" class="nav"></div>
15+
16+
<script type="text/javascript">
17+
$(document).ready(function () {
18+
$('#toc').toc({
19+
'selectors': 'h2,h3,h4',
20+
'prefix': 'toc',
21+
'container': '#page',
22+
'anchorName': function(i, heading, prefix) { //custom function for anchor name
23+
return $(heading).text().replace(' ','-');
24+
},
25+
});
26+
});
27+
</script>
28+
</div>
29+
</div>

_layouts/page.html

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,17 @@
1010
</div>
1111
</div>
1212
<div class="span4">
13+
<div class="well">
14+
<a class="btn btn-large btn-primary btn-block" href="#"><span class="btn-label">Quick Start &rarr;</span></a>
15+
<p>Write and execute a test for an existing app
16+
<b>in less then a minute!</b>&nbsp;No additional tools required.&nbsp;
17+
</p>
18+
</div>
19+
<p>Codeception was started in November 2011, and released the <strong>first stable
20+
version 1.0 in January 2012</strong>. Based on Symfony2 Components, PHPUnit, Mink.
21+
Codeception is a mature and stable project, well-tested and documented.
22+
It's open-source and <strong>MIT licensed</strong>.
23+
</p>
1324

14-
<div id="toc" class="nav"></div>
15-
16-
<script type="text/javascript">
17-
$(document).ready(function () {
18-
$('#toc').toc({
19-
'selectors': 'h2,h3,h4',
20-
'prefix': 'toc',
21-
'container': '#page',
22-
'anchorName': function(i, heading, prefix) { //custom function for anchor name
23-
return $(heading).text().replace(' ','-');
24-
},
25-
});
26-
});
27-
</script>
2825
</div>
2926
</div>

_layouts/post.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
2-
layout: bootstrap
2+
layout: page
33
---
44

55

6-
<div class="row">
7-
<div class="span8">
86
<h1>{{ page.title }}</h1>
97

108
<p>
@@ -31,9 +29,3 @@ <h1>{{ page.title }}</h1>
3129
</div>
3230

3331
{% include comment.html %}
34-
</div>
35-
<div class="span4">
36-
37-
38-
</div>
39-
</div>

js/contributors.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
$(document).ready(function () {
22
$.get('https://api.github.com/repos/Codeception/Codeception/contributors', '',function(data) {
3+
4+
if (data === undefined) {
5+
data = $.parseJSON(jqXHR.responseText);
6+
}
7+
38
$.each(data, function (key, contributor) {
49
var image = "<img src=\"" + contributor.avatar_url + "\" width=\"48\" height=\"48\">";
510
var link = $(document.createElement('a'));

0 commit comments

Comments
 (0)