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

Commit 806ba36

Browse files
authored
Merge pull request #26 from awwright/master
Switch to new theme and Jekyll generator
2 parents c758907 + 3be115f commit 806ba36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+811
-5413
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Jekyll products
2+
.sass-cache/
3+
_site/

_config.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing these this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'jekyll serve'. If you change this file, please restart the server process.
10+
11+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: JSON Schema
17+
18+
description: The home of JSON Schema
19+
baseurl: "" # the subpath of your site, e.g. /blog
20+
url: "" # the base hostname & protocol for your site
21+
#twitter_username: jekyllrb
22+
github_username: json-schema-org
23+
24+
# Build settings
25+
markdown: kramdown
26+
#theme: minima
27+
28+
collections:
29+
docs:
30+
output: true
31+
permalink: "/:title:output_ext"

_includes/footer.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
6+
7+
<div class="footer-col-wrapper">
8+
<div class="footer-col footer-col-1">
9+
<ul class="contact-list">
10+
{% if site.github_username %}
11+
<li>
12+
{% include icon-github.html username=site.github_username %}
13+
</li>
14+
{% endif %}
15+
<li>Discussion: <a href="https://groups.google.com/forum/#!forum/json-schema">Google Groups</a></li>
16+
<li>Site edits: <a href="https://github.com/json-schema-org/json-schema-org.github.io">GitHub repo for site</a></li>
17+
</ul>
18+
</div>
19+
20+
<div class="footer-col footer-col-3">
21+
<p>{{ site.description | escape }}</p>
22+
</div>
23+
</div>
24+
25+
</div>
26+
27+
</footer>

_includes/head.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<head>
2+
<meta charset="utf-8"/>
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
4+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}"/>
8+
9+
{% assign custom_url = site.url | append: site.baseurl %}
10+
{% assign full_base_url = site.github.url | default: custom_url %}
11+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: full_base_url }}"/>
12+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: full_base_url }}"/>
13+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: full_base_url }}"/>
14+
15+
{% if jekyll.environment == 'production' and site.google_analytics %}
16+
{% include google-analytics.html %}
17+
{% endif %}
18+
</head>

_includes/header.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
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>
8+
9+
<nav class="site-nav">
10+
<a href="#" class="menu-icon">
11+
<svg viewBox="0 0 18 15" width="18px" height="15px">
12+
<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"/>
13+
<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"/>
14+
<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"/>
15+
</svg>
16+
</a>
17+
18+
<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>
22+
{% for my_page in site.pages %}
23+
{% if my_page.menutitle %}
24+
<a class="page-link" href="{{ my_page.url | prepend: full_base_url }}">{{ my_page.menutitle | escape }}</a>
25+
{% endif %}
26+
{% endfor %}
27+
</div>
28+
</nav>
29+
30+
</div>
31+
32+
</header>

_includes/icon-github.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-github.svg

Lines changed: 1 addition & 0 deletions
Loading

_layouts/default.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{% include footer.html %}
17+
18+
</body>
19+
20+
</html>

_layouts/page.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

_sass/minima.scss

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Define defaults for each variable.
2+
3+
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
4+
$base-font-size: 16px !default;
5+
$base-font-weight: 400 !default;
6+
$small-font-size: $base-font-size * 0.875 !default;
7+
$base-line-height: 1.5 !default;
8+
9+
$spacing-unit: 10px !default;
10+
11+
$text-color: #111 !default;
12+
$background-color: #fdfdfd !default;
13+
$brand-color: #2a7ae2 !default;
14+
15+
$grey-color: #828282 !default;
16+
$grey-color-light: lighten($grey-color, 40%) !default;
17+
$grey-color-dark: darken($grey-color, 25%) !default;
18+
19+
// Width of the content area
20+
$content-width: 960px !default;
21+
22+
$on-palm: 600px !default;
23+
$on-laptop: 800px !default;
24+
25+
// Use media queries like this:
26+
// @include media-query($on-palm) {
27+
// .wrapper {
28+
// padding-right: $spacing-unit / 2;
29+
// padding-left: $spacing-unit / 2;
30+
// }
31+
// }
32+
@mixin media-query($device) {
33+
@media screen and (max-width: $device) {
34+
@content;
35+
}
36+
}
37+
38+
// Import partials.
39+
@import
40+
"minima/base",
41+
"minima/layout",
42+
"minima/syntax-highlighting"
43+
;

_sass/minima/_base.scss

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
/**
2+
* Reset some basic elements
3+
*/
4+
body, h1, h2, h3, h4, h5, h6,
5+
p, blockquote, pre, hr,
6+
dl, dd, ol, ul, figure {
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
12+
13+
/**
14+
* Basic styling
15+
*/
16+
body {
17+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
18+
color: $text-color;
19+
background-color: $background-color;
20+
-webkit-text-size-adjust: 100%;
21+
-webkit-font-feature-settings: "kern" 1;
22+
-moz-font-feature-settings: "kern" 1;
23+
-o-font-feature-settings: "kern" 1;
24+
font-feature-settings: "kern" 1;
25+
font-kerning: normal;
26+
}
27+
28+
29+
30+
/**
31+
* Set `margin-bottom` to maintain vertical rhythm
32+
*/
33+
h1, h2, h3, h4, h5, h6,
34+
p, blockquote, pre,
35+
ul, ol, dl, figure,
36+
%vertical-rhythm {
37+
margin-bottom: $spacing-unit / 2;
38+
}
39+
40+
41+
42+
/**
43+
* Images
44+
*/
45+
img {
46+
max-width: 100%;
47+
vertical-align: middle;
48+
}
49+
50+
51+
52+
/**
53+
* Figures
54+
*/
55+
figure > img {
56+
display: block;
57+
}
58+
59+
figcaption {
60+
font-size: $small-font-size;
61+
}
62+
63+
64+
65+
/**
66+
* Lists
67+
*/
68+
ul, ol {
69+
margin-left: $spacing-unit;
70+
}
71+
72+
li {
73+
> ul,
74+
> ol {
75+
margin-bottom: 0;
76+
}
77+
}
78+
79+
80+
81+
/**
82+
* Headings
83+
*/
84+
h1, h2, h3, h4, h5, h6 {
85+
font-weight: $base-font-weight;
86+
}
87+
88+
89+
90+
/**
91+
* Links
92+
*/
93+
a {
94+
color: $brand-color;
95+
text-decoration: none;
96+
97+
&:visited {
98+
color: darken($brand-color, 15%);
99+
}
100+
101+
&:hover {
102+
color: $text-color;
103+
text-decoration: underline;
104+
}
105+
}
106+
107+
108+
109+
/**
110+
* Blockquotes
111+
*/
112+
blockquote {
113+
color: $grey-color;
114+
border-left: 4px solid $grey-color-light;
115+
padding-left: $spacing-unit / 2;
116+
font-size: 18px;
117+
letter-spacing: -1px;
118+
font-style: italic;
119+
120+
> :last-child {
121+
margin-bottom: 0;
122+
}
123+
}
124+
125+
126+
127+
/**
128+
* Code formatting
129+
*/
130+
pre,
131+
code {
132+
font-size: 15px;
133+
border: 1px solid $grey-color-light;
134+
border-radius: 3px;
135+
background-color: #eef;
136+
}
137+
138+
code {
139+
padding: 1px 5px;
140+
}
141+
142+
pre {
143+
padding: 8px 12px;
144+
overflow-x: auto;
145+
146+
> code {
147+
border: 0;
148+
padding-right: 0;
149+
padding-left: 0;
150+
}
151+
}
152+
153+
154+
155+
/**
156+
* Wrapper
157+
*/
158+
.wrapper {
159+
max-width: 760px;
160+
margin-right: auto;
161+
margin-left: auto;
162+
padding-right: $spacing-unit;
163+
padding-left: $spacing-unit;
164+
@extend %clearfix;
165+
}
166+
167+
168+
169+
/**
170+
* Clearfix
171+
*/
172+
%clearfix:after {
173+
content: "";
174+
display: table;
175+
clear: both;
176+
}
177+
178+
179+
180+
/**
181+
* Icons
182+
*/
183+
.icon > svg {
184+
display: inline-block;
185+
vertical-align: middle;
186+
187+
path {
188+
fill: $grey-color;
189+
}
190+
}

0 commit comments

Comments
 (0)