| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a6d733e commit 69fa61c
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ other_nodegit_versions: | |||
| 10 | 10 | ||
| 11 | 11 | # Build settings | |
| 12 | 12 | markdown: redcarpet | |
| 13 | + redcarpet: | ||
| 14 | + extensions: [tables, no_intra_emphasis, autolink] | ||
| 13 | 15 | highlighter: pygments | |
| 14 | 16 | permalink: pretty | |
| 15 | 17 | exclude: ["node_modules","generate","package.json","README.md"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,10 +23,10 @@ <h1><a class="site-title" href="{{ site.baseurl }}/"><img src="/img/nodegit.svg" | |||
| 23 | 23 | <nav> | |
| 24 | 24 | <ul> | |
| 25 | 25 | <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><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> | ||
| 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> | ||
| 28 | 28 | <li><a href="https://github.com/nodegit/nodegit/{% if page.nodegit_version %}tree/{{ page.nodegit_version }}/{% endif %}">Source</a></li> | |
| 29 | - <li><a href="{{ site.baseurl }}/blog/">Blog</a></li> | ||
| 29 | + <li{% if page.menu_item == 'blog' %} class="active"{% endif %}><a href="{{ site.baseurl }}/blog/">Blog</a></li> | ||
| 30 | 30 | </ul> | |
| 31 | 31 | </nav> | |
| 32 | 32 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,11 @@ | |||
| 10 | 10 | <div class="page-content"> | |
| 11 | 11 | <div class="wrapper"> | |
| 12 | 12 | <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 %} | ||
| 13 | 18 | <ul> | |
| 14 | 19 | {% for section_hash in page.sections %} | |
| 15 | 20 | <li><a href="{{section_hash[1]}}">{{section_hash[0]}}</a></li> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,13 +3,17 @@ | |||
| 3 | 3 | /** | |
| 4 | 4 | * Set `margin-bottom` to maintain vertical rhythm | |
| 5 | 5 | */ | |
| 6 | - h1, h2, h3, h4, h5, h6, | ||
| 6 | + h1, h2, h3, | ||
| 7 | 7 | p, blockquote, pre, | |
| 8 | 8 | ul, ol, dl, figure, .highlight | |
| 9 | 9 | %vertical-rhythm { | |
| 10 | 10 | margin-bottom: $spacing-unit / 2; | |
| 11 | 11 | } | |
| 12 | 12 | ||
| 13 | + html, body { | ||
| 14 | + background:#fff; | ||
| 15 | + } | ||
| 16 | + | ||
| 13 | 17 | body { | |
| 14 | 18 | padding:0 $spacing-unit $spacing-unit; | |
| 15 | 19 | } | |
@@ -25,6 +29,7 @@ body { | |||
| 25 | 29 | ||
| 26 | 30 | header { | |
| 27 | 31 | display:block; | |
| 32 | + background:#fff; | ||
| 28 | 33 | overflow:hidden; | |
| 29 | 34 | ||
| 30 | 35 | .site-info { | |
@@ -212,15 +217,103 @@ header { | |||
| 212 | 217 | ||
| 213 | 218 | .outline { | |
| 214 | 219 | float:right; | |
| 215 | - width:180px; | ||
| 220 | + width:220px; | ||
| 216 | 221 | padding:0 0 0 $spacing-unit; | |
| 217 | 222 | font-size:$font-size * 0.9; | |
| 218 | 223 | display:block; | |
| 224 | + | ||
| 225 | + ul { | ||
| 226 | + border:none; | ||
| 227 | + } | ||
| 219 | 228 | } | |
| 220 | 229 | ||
| 221 | 230 | .main { | |
| 222 | 231 | overflow:hidden; | |
| 223 | 232 | 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 | + } | ||
| 224 | 317 | } | |
| 225 | 318 | } | |
| 226 | 319 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ body { | |||
| 7 | 7 | color:$text-color; | |
| 8 | 8 | } | |
| 9 | 9 | ||
| 10 | - h1, h2, h3, h4, h5, nav, .version, .version-menu, .buttons { | ||
| 10 | + h1, h2, h3, nav, .version, .version-menu, .buttons { | ||
| 11 | 11 | font-family: Bitter, $font-family; | |
| 12 | 12 | line-height:1; | |
| 13 | 13 | } | |
@@ -20,6 +20,10 @@ h2 { | |||
| 20 | 20 | font-size:$font-size * 2; | |
| 21 | 21 | margin-top:$spacing-unit; | |
| 22 | 22 | ||
| 23 | + span { | ||
| 24 | + color:#aaa; | ||
| 25 | + } | ||
| 26 | + | ||
| 23 | 27 | &:first-child { | |
| 24 | 28 | margin-top:0; | |
| 25 | 29 | } | |
@@ -29,16 +33,40 @@ h3 { | |||
| 29 | 33 | font-size:$font-size * 1.2; | |
| 30 | 34 | } | |
| 31 | 35 | ||
| 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 | + | ||
| 32 | 47 | .version, .version-menu { | |
| 33 | 48 | font-size:$font-size*0.8; | |
| 34 | 49 | } | |
| 35 | 50 | ||
| 51 | + strong { | ||
| 52 | + font-weight:bold; | ||
| 53 | + color:#222; | ||
| 54 | + } | ||
| 55 | + | ||
| 36 | 56 | a { | |
| 37 | 57 | text-decoration:none; | |
| 38 | 58 | color:$key-color; | |
| 39 | 59 | ||
| 60 | + span { | ||
| 61 | + color:#aaa; | ||
| 62 | + } | ||
| 63 | + | ||
| 40 | 64 | &:hover { | |
| 41 | 65 | color:darken($key-color, 20%); | |
| 66 | + | ||
| 67 | + span { | ||
| 68 | + color:#727272; | ||
| 69 | + } | ||
| 42 | 70 | } | |
| 43 | 71 | } | |
| 44 | 72 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,8 @@ $font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; | |||
| 7 | 7 | $font-size: 16px; | |
| 8 | 8 | $line-height: 1.5; | |
| 9 | 9 | $spacing-unit: 30px; | |
| 10 | - $headline-color: #444; | ||
| 11 | - $text-color: #727272; | ||
| 10 | + $headline-color: #222; | ||
| 11 | + $text-color: #555; | ||
| 12 | 12 | $key-color: #F1595F; | |
| 13 | 13 | ||
| 14 | 14 | // Import partials from `sass_dir` (defaults to `_sass`) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments