Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 753ef88

Browse files
committed
Switch to using minima theme gem
1 parent 6221b7e commit 753ef88

File tree

13 files changed

+70
-569
lines changed

13 files changed

+70
-569
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ github_username: json-schema-org
2323

2424
# Build settings
2525
markdown: kramdown
26-
#theme: minima
26+
theme: minima
2727

2828
collections:
2929
docs:

_includes/head.html

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

_includes/header.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@
22

33
<div class="wrapper">
44

5-
{% assign custom_url = site.url | append: site.baseurl %}
6-
{% assign full_base_url = site.github.url | default: custom_url %}
7-
<a class="site-title" href="{{ full_base_url }}/">{{ site.title | escape }}</a>
5+
<a class="site-title" href="{{ "/" | relative_url}}">{{ site.title | escape }}</a>
86

97
<nav class="site-nav">
10-
<a href="#" class="menu-icon">
8+
<span class="menu-icon">
119
<svg viewBox="0 0 18 15" width="18px" height="15px">
1210
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
1311
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
1412
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
1513
</svg>
16-
</a>
14+
</span>
1715

1816
<div class="trigger">
19-
<a class="page-link" href="{{ full_base_url }}/documentation.html">Docs</a>
20-
<a class="page-link" href="{{ full_base_url }}/examples.html">Examples</a>
21-
<a class="page-link" href="{{ full_base_url }}/implementations.html">Software</a>
17+
<a class="page-link" href="{{ "/documentation.html" | relative_url }}">Docs</a>
18+
<a class="page-link" href="{{ "/examples.html" | relative_url }}">Examples</a>
19+
<a class="page-link" href="{{ "/implementations.html" | relative_url }}">Software</a>
2220
{% for my_page in site.pages %}
2321
{% if my_page.menutitle %}
24-
<a class="page-link" href="{{ my_page.url | prepend: full_base_url }}">{{ my_page.menutitle | escape }}</a>
22+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.menutitle | escape }}</a>
2523
{% endif %}
2624
{% endfor %}
2725
</div>

_includes/icon-github.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-github.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_layouts/default.html

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

_layouts/page.html

Lines changed: 0 additions & 14 deletions
This file was deleted.
File renamed without changes.

_sass/minima.scss

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This file is the same as the one provided by the the minima theme (ie. unmodified),
2+
// but must be reproduced here because of our custom syntax-highlighting partial
3+
14
// Define defaults for each variable.
25

36
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
@@ -6,7 +9,7 @@ $base-font-weight: 400 !default;
69
$small-font-size: $base-font-size * 0.875 !default;
710
$base-line-height: 1.5 !default;
811

9-
$spacing-unit: 10px !default;
12+
$spacing-unit: 30px !default;
1013

1114
$text-color: #111 !default;
1215
$background-color: #fdfdfd !default;
@@ -17,28 +20,27 @@ $grey-color-light: lighten($grey-color, 40%) !default;
1720
$grey-color-dark: darken($grey-color, 25%) !default;
1821

1922
// Width of the content area
20-
$content-width: 960px !default;
23+
$content-width: 800px !default;
2124

2225
$on-palm: 600px !default;
2326
$on-laptop: 800px !default;
2427

2528
// Use media queries like this:
2629
// @include media-query($on-palm) {
27-
// .wrapper {
28-
// padding-right: $spacing-unit / 2;
29-
// padding-left: $spacing-unit / 2;
30-
// }
30+
// .wrapper {
31+
// padding-right: $spacing-unit / 2;
32+
// padding-left: $spacing-unit / 2;
33+
// }
3134
// }
3235
@mixin media-query($device) {
33-
@media screen and (max-width: $device) {
34-
@content;
35-
}
36+
@media screen and (max-width: $device) {
37+
@content;
38+
}
3639
}
3740

3841
// Import partials.
3942
@import
4043
"minima/base",
4144
"minima/layout",
42-
"minima/syntax-highlighting",
43-
"minima/intra-navigation"
44-
;
45+
"minima/syntax-highlighting"
46+
;

_sass/minima/_base.scss

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

0 commit comments

Comments
 (0)