Skip to content

Commit 806ba36

Browse files
authored
Merge pull request json-schema-org#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+
;

0 commit comments

Comments
 (0)