Skip to content

Commit 4229137

Browse files
committed
Updated home page and added footer.
1 parent cfbd8e4 commit 4229137

22 files changed

+199
-197
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: NodeGit
33
description: Asynchronous native Node bindings to libgit2
44
url: "http://nodegit.org"
55
date_format: "ordinal"
6-
current_nodegit_version: 0.3.0
6+
current_nodegit_version: 0.3.1
77
other_nodegit_versions:
88
- HEAD
99
- 0.2.7
@@ -14,4 +14,4 @@ redcarpet:
1414
extensions: [tables, no_intra_emphasis, autolink]
1515
highlighter: pygments
1616
permalink: pretty
17-
exclude: ["node_modules","generate","package.json","README.md"]
17+
exclude: ["node_modules","generate","package.json","README.md", "CNAME", "Gemfile", "Gemfile.lock"]

_includes/footer.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
<footer class="site-footer">
1+
<footer>
22

33
<div class="wrapper">
4+
<hr />
45

6+
<p>
7+
<a href="https://github.com/nodegit/nodegit/">NodeGit</a>, along with
8+
<a href="https://github.com/nodegit/nodegit.github.com">this website</a>,
9+
is open source. It’s brought to you by <a href="https://github.com/orgs/nodegit/teams/owners">a core team</a>,
10+
and a <a href="https://github.com/nodegit/nodegit/graphs/contributors">marvelous group of contributors</a>.
11+
</p>
512

13+
<p><a href="https://github.com/nodegit/nodegit/blob/master/LICENSE">Licenced under MIT</a>.</p>
14+
15+
16+
<iframe src="https://ghbtns.com/github-btn.html?user=nodegit&repo=nodegit&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
17+
18+
<iframe src="https://ghbtns.com/github-btn.html?user=nodegit&repo=nodegit&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
19+
20+
<iframe src="https://ghbtns.com/github-btn.html?user=nodegit&repo=nodegit&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
621

722
</div>
823

_layouts/full.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% include head.html %}
55

6-
<body>
6+
<body class="{{ page.body_class }}">
77

88
{% include header.html %}
99

@@ -20,4 +20,3 @@
2020
</body>
2121

2222
</html>
23-

_sass/_layout.scss

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ header {
6666
}
6767

6868
.version {
69+
display:none; // Remove this once versions are implemented
6970
float:left;
7071
position:relative;
7172
cursor:pointer;
@@ -238,6 +239,10 @@ header {
238239
overflow:hidden;
239240
width:auto;
240241

242+
p {
243+
max-width:720px;
244+
}
245+
241246
table {
242247
a {
243248
color:$text-color;
@@ -325,6 +330,73 @@ header {
325330
}
326331
}
327332

333+
.home {
334+
.page-content {
335+
.wrapper {
336+
max-width:720px;
337+
}
338+
339+
h2 {
340+
text-align:center;
341+
font-size:43px;
342+
}
343+
344+
hr {
345+
margin:$spacing-unit 0;
346+
}
347+
}
348+
}
349+
350+
.columns {
351+
display:-webkit-box;
352+
display:-webkit-flex;
353+
display:-moz-box;
354+
display:-ms-flexbox;
355+
display:flex;
356+
width:100%;
357+
358+
.columns {
359+
margin:0;
360+
}
361+
362+
.column {
363+
text-align:center;
364+
padding:0 $spacing-unit/2;
365+
}
366+
367+
h3 {
368+
color:#999;
369+
}
370+
}
371+
372+
.compatibility {
373+
img {
374+
width:64px;
375+
height:64px;
376+
display:block;
377+
}
378+
}
379+
380+
.logos {
381+
img {
382+
height:64px;
383+
}
384+
}
385+
386+
footer {
387+
display:block;
388+
text-align:center;
389+
390+
p {
391+
max-width:520px;
392+
margin:0 auto $spacing-unit;
393+
}
394+
395+
a {
396+
color:#727272;
397+
}
398+
}
399+
328400
span.tags {
329401
margin:0 0 0 6px;
330402
position:relative;
@@ -454,6 +526,31 @@ table {
454526
font-size:$font-size * 1.5;
455527
}
456528

529+
.columns {
530+
display:block;
531+
532+
.column {
533+
text-align:center;
534+
}
535+
536+
.columns {
537+
width:100%;
538+
display:-webkit-box;
539+
display:-webkit-flex;
540+
display:-moz-box;
541+
display:-ms-flexbox;
542+
display:flex;
543+
-webkit-justify-content:center;
544+
-moz-justify-content:center;
545+
-ms-justify-content:center;
546+
justify-content:center;
547+
548+
.column {
549+
padding:0 $spacing-unit;
550+
}
551+
}
552+
}
553+
457554
.banner {
458555
.hero {
459556
h2 {

api/annotated/index.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

api/index.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: API Docs
55
description: Version 0.3.0
66
menu_item: api
77
sections:
8-
"Annotated": "#Annotated"
98
"Attr": "#Attr"
109
"Blame": "#Blame"
1110
"BlameHunk": "#BlameHunk"
@@ -105,16 +104,6 @@ sections:
105104
"Treebuilder": "#Treebuilder"
106105
---
107106

108-
## <a name='Annotated'></a>[Annotated](/api/annotated/)
109-
110-
| Class Methods | |
111-
| --- | ---: |
112-
| [<span>Annotated.</span>commitFromFetchhead <span>(repo, branch_name, remote_url, id)</span>](/api/annotated/#commitFromFetchhead) | <span class="tags"><span class="async">Async</span><span class="experimental">Experimental</span></span> |
113-
| [<span>Annotated.</span>commitFromRef <span>(repo, ref)</span>](/api/annotated/#commitFromRef) | <span class="tags"><span class="async">Async</span><span class="experimental">Experimental</span></span> |
114-
| [<span>Annotated.</span>commitId <span>(commit)</span>](/api/annotated/#commitId) | <span class="tags"><span class="sync">Sync</span><span class="experimental">Experimental</span></span> |
115-
| [<span>Annotated.</span>commitLookup <span>(repo, id)</span>](/api/annotated/#commitLookup) | <span class="tags"><span class="async">Async</span><span class="experimental">Experimental</span></span> |
116-
117-
118107

119108
## <a name='Attr'></a>[Attr](/api/attr/)
120109

@@ -1243,7 +1232,6 @@ sections:
12431232
| [<span>Remote#</span>getFetchRefspecs <span>()</span>](/api/remote/#getFetchRefspecs) | <span class="tags"><span class="async">Async</span></span> |
12441233
| [<span>Remote#</span>getPushRefspecs <span>()</span>](/api/remote/#getPushRefspecs) | <span class="tags"><span class="async">Async</span></span> |
12451234
| [<span>Remote#</span>getRefspec <span>(n)</span>](/api/remote/#getRefspec) | <span class="tags"><span class="sync">Sync</span></span> |
1246-
| [<span>Remote#</span>ls <span>(size)</span>](/api/remote/#ls) | <span class="tags"><span class="async">Async</span></span> |
12471235
| [<span>Remote#</span>name <span>()</span>](/api/remote/#name) | <span class="tags"><span class="sync">Sync</span></span> |
12481236
| [<span>Remote#</span>owner <span>()</span>](/api/remote/#owner) | <span class="tags"><span class="sync">Sync</span></span> |
12491237
| [<span>Remote#</span>prune <span>()</span>](/api/remote/#prune) | <span class="tags"><span class="sync">Sync</span></span> |

api/remote/index.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ sections:
3030
"#getFetchRefspecs": "#getFetchRefspecs"
3131
"#getPushRefspecs": "#getPushRefspecs"
3232
"#getRefspec": "#getRefspec"
33-
"#ls": "#ls"
3433
"#name": "#name"
3534
"#owner": "#owner"
3635
"#prune": "#prune"
@@ -366,22 +365,6 @@ var refspec = remote.getRefspec(n);
366365
| --- | --- |
367366
| [Refspec](/api/refspec/) | the nth refspec |
368367
369-
## <a name="ls"></a><span>Remote#</span>ls <span class="tags"><span class="async">Async</span></span>
370-
371-
```js
372-
remote.ls(size).then(function(result) {
373-
// Use result
374-
});
375-
```
376-
377-
| Parameters | Type |
378-
| --- | --- | --- |
379-
| size | Number | the number of remote heads |
380-
381-
| Returns | |
382-
| --- | --- |
383-
| Number | 0 on success, or an error code |
384-
385368
## <a name="name"></a><span>Remote#</span>name <span class="tags"><span class="sync">Sync</span></span>
386369
387370
```js

css/main.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,3 @@ hr {
4141
color: #C2C2C2;
4242
font-size: 80%;
4343
}
44-
45-
p a:not(:last-child) {
46-
margin-right: 20px;
47-
}
48-
49-
.bocoup {
50-
margin-left: 10px;
51-
}

img/Axosoft-Logo-Revision_crop.png

-5.47 KB
Binary file not shown.

img/GitHub_Logo.png

-3 KB
Binary file not shown.

0 commit comments

Comments
 (0)