Skip to content

Commit 92710d6

Browse files
committed
1 parent 9ffb0dc commit 92710d6

File tree

14 files changed

+8
-645
lines changed

14 files changed

+8
-645
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
_site
22
.sass-cache
3-
generate/nodegit
4-
node_modules/

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
11
`script/bootstrap`
22
`script/server`
3-
`open http://localhost:4000`
4-
5-
## Generating the site
6-
7-
While in development, the generator will not clone the nodegit repo. You'll need to soft-link the nodegit repository into `generate/`.
8-
9-
```bash
10-
ln -s /path/to/nodegit generate/nodegit
11-
```
12-
13-
Once linked, generate the site.
14-
15-
```bash
16-
node generate
17-
```
18-
19-
If you're running `script/server` in another terminal tab, it will read the changes and regenerate the site.

_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ other_nodegit_versions:
1010

1111
# Build settings
1212
markdown: redcarpet
13-
redcarpet:
14-
extensions: [tables, no_intra_emphasis, autolink]
1513
highlighter: pygments
1614
permalink: pretty
1715
exclude: ["node_modules","generate","package.json","README.md"]

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ <h1><a class="site-title" href="{{ site.baseurl }}/"><img src="/img/nodegit.svg"
2323
<nav>
2424
<ul>
2525
<li{% if page.menu_item == 'getting_started' %} class="active"{% endif %}><a href="{{ site.baseurl }}/{% if page.nodegit_version %}{{ page.nodegit_version }}/{% endif %}">Getting Started</a></li>
26-
<li{% if page.menu_item == 'guides' %} class="active"{% endif %}><a href="{{ site.baseurl }}/{% if page.nodegit_version %}{{ page.nodegit_version }}/{% endif %}guides/">Guides</a></li>
27-
<li{% if page.menu_item == 'api' %} class="active"{% endif %}><a href="{{ site.baseurl }}/{% if page.nodegit_version %}{{ page.nodegit_version }}/{% endif %}api/">API Documentation</a></li>
26+
<li><a href="{{ site.baseurl }}/{% if page.nodegit_version %}{{ page.nodegit_version }}/{% endif %}guides/">Guides</a></li>
27+
<li><a href="{{ site.baseurl }}/{% if page.nodegit_version %}{{ page.nodegit_version }}/{% endif %}api/">API Documentation</a></li>
2828
<li><a href="https://github.com/nodegit/nodegit/{% if page.nodegit_version %}tree/{{ page.nodegit_version }}/{% endif %}">Source</a></li>
29-
<li{% if page.menu_item == 'blog' %} class="active"{% endif %}><a href="{{ site.baseurl }}/blog/">Blog</a></li>
29+
<li><a href="{{ site.baseurl }}/blog/">Blog</a></li>
3030
</ul>
3131
</nav>
3232

_layouts/default.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
<div class="page-content">
1111
<div class="wrapper">
1212
<div class="outline">
13-
{% if page.return_to %}
14-
{% for section_hash in page.return_to %}
15-
<h5><a href="{{section_hash[1]}}">{{section_hash[0]}}</a></h5>
16-
{% endfor %}
17-
{% endif %}
1813
<ul>
1914
{% for section_hash in page.sections %}
2015
<li><a href="{{section_hash[1]}}">{{section_hash[0]}}</a></li>

_sass/_layout.scss

Lines changed: 2 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
/**
44
* Set `margin-bottom` to maintain vertical rhythm
55
*/
6-
h1, h2, h3,
6+
h1, h2, h3, h4, h5, h6,
77
p, blockquote, pre,
88
ul, ol, dl, figure, .highlight
99
%vertical-rhythm {
1010
margin-bottom: $spacing-unit / 2;
1111
}
1212

13-
html, body {
14-
background:#fff;
15-
}
16-
1713
body {
1814
padding:0 $spacing-unit $spacing-unit;
1915
}
@@ -29,7 +25,6 @@ body {
2925

3026
header {
3127
display:block;
32-
background:#fff;
3328
overflow:hidden;
3429

3530
.site-info {
@@ -217,103 +212,15 @@ header {
217212

218213
.outline {
219214
float:right;
220-
width:220px;
215+
width:180px;
221216
padding:0 0 0 $spacing-unit;
222217
font-size:$font-size * 0.9;
223218
display:block;
224-
225-
ul {
226-
border:none;
227-
}
228219
}
229220

230221
.main {
231222
overflow:hidden;
232223
width:auto;
233-
234-
table {
235-
a {
236-
color:$text-color;
237-
font-weight:500;
238-
239-
span {
240-
font-weight:normal;
241-
}
242-
243-
&:hover {
244-
color:$headline-color;
245-
}
246-
}
247-
248-
.tags {
249-
position:relative;
250-
top:-2px;
251-
right:-12px;
252-
253-
span {
254-
padding-top:2px;
255-
padding-bottom:2px;
256-
}
257-
}
258-
}
259-
}
260-
}
261-
262-
span.tags {
263-
margin:0 0 0 6px;
264-
position:relative;
265-
top:-0.23em;
266-
267-
span {
268-
font-size:12px;
269-
display:inline-block;
270-
padding:6px 8px;
271-
border-radius:3px;
272-
text-transform:uppercase;
273-
color:#fff;
274-
margin:0 8px 0 0;
275-
font-family:$font-family;
276-
font-weight:500;
277-
278-
&.enum {
279-
background:#92D4D3;
280-
}
281-
282-
&.sync {
283-
background:#FD8487;
284-
}
285-
286-
&.async {
287-
background:#77D971;
288-
}
289-
290-
&.experimental {
291-
background:#FFBB85;
292-
}
293-
}
294-
}
295-
296-
table {
297-
border-collapse:collapse;
298-
width:100%;
299-
margin:0 0 $spacing-unit/2;
300-
301-
th {
302-
font-weight:500;
303-
color:#aaa;
304-
}
305-
306-
td {
307-
border-top:1px solid #ededed;
308-
}
309-
310-
th, td {
311-
padding:8px $spacing-unit/2;
312-
text-align:left;
313-
314-
span {
315-
color:#aaa;
316-
}
317224
}
318225
}
319226

_sass/_type.scss

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body {
77
color:$text-color;
88
}
99

10-
h1, h2, h3, nav, .version, .version-menu, .buttons {
10+
h1, h2, h3, h4, h5, nav, .version, .version-menu, .buttons {
1111
font-family: Bitter, $font-family;
1212
line-height:1;
1313
}
@@ -20,10 +20,6 @@ h2 {
2020
font-size:$font-size * 2;
2121
margin-top:$spacing-unit;
2222

23-
span {
24-
color:#aaa;
25-
}
26-
2723
&:first-child {
2824
margin-top:0;
2925
}
@@ -33,40 +29,16 @@ h3 {
3329
font-size:$font-size * 1.2;
3430
}
3531

36-
h4 {
37-
font-weight:500;
38-
color:#999;
39-
}
40-
41-
h5 {
42-
border-bottom:1px solid #ededed;
43-
padding:0 0 $spacing-unit/4;
44-
margin:0 0 $spacing-unit/3;
45-
}
46-
4732
.version, .version-menu {
4833
font-size:$font-size*0.8;
4934
}
5035

51-
strong {
52-
font-weight:bold;
53-
color:#222;
54-
}
55-
5636
a {
5737
text-decoration:none;
5838
color:$key-color;
5939

60-
span {
61-
color:#aaa;
62-
}
63-
6440
&:hover {
6541
color:darken($key-color, 20%);
66-
67-
span {
68-
color:#727272;
69-
}
7042
}
7143
}
7244

css/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
77
$font-size: 16px;
88
$line-height: 1.5;
99
$spacing-unit: 30px;
10-
$headline-color: #222;
11-
$text-color: #555;
10+
$headline-color: #444;
11+
$text-color: #727272;
1212
$key-color: #F1595F;
1313

1414
// Import partials from `sass_dir` (defaults to `_sass`)

generate/index.js

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

generate/lib/add_convenience_methods.js

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

0 commit comments

Comments
 (0)