Skip to content

Commit fb5c3bd

Browse files
committed
Set up jekyll template.
1 parent a514813 commit fb5c3bd

File tree

8 files changed

+306
-2
lines changed

8 files changed

+306
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
db
22
*.db
3+
_site/

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins
3+
gem "jekyll-theme-minimal"

Gemfile.lock

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.8)
5+
i18n (~> 0.7)
6+
minitest (~> 5.1)
7+
thread_safe (~> 0.3, >= 0.3.4)
8+
tzinfo (~> 1.1)
9+
addressable (2.5.2)
10+
public_suffix (>= 2.0.2, < 4.0)
11+
coffee-script (2.4.1)
12+
coffee-script-source
13+
execjs
14+
coffee-script-source (1.12.2)
15+
colorator (1.1.0)
16+
ethon (0.10.1)
17+
ffi (>= 1.3.0)
18+
execjs (2.7.0)
19+
faraday (0.13.1)
20+
multipart-post (>= 1.2, < 3)
21+
ffi (1.9.18)
22+
forwardable-extended (2.6.0)
23+
gemoji (3.0.0)
24+
github-pages (157)
25+
activesupport (= 4.2.8)
26+
github-pages-health-check (= 1.3.5)
27+
jekyll (= 3.5.2)
28+
jekyll-avatar (= 0.4.2)
29+
jekyll-coffeescript (= 1.0.1)
30+
jekyll-default-layout (= 0.1.4)
31+
jekyll-feed (= 0.9.2)
32+
jekyll-gist (= 1.4.1)
33+
jekyll-github-metadata (= 2.9.1)
34+
jekyll-mentions (= 1.2.0)
35+
jekyll-optional-front-matter (= 0.2.0)
36+
jekyll-paginate (= 1.1.0)
37+
jekyll-readme-index (= 0.1.0)
38+
jekyll-redirect-from (= 0.12.1)
39+
jekyll-relative-links (= 0.4.1)
40+
jekyll-sass-converter (= 1.5.0)
41+
jekyll-seo-tag (= 2.3.0)
42+
jekyll-sitemap (= 1.0.0)
43+
jekyll-swiss (= 0.4.0)
44+
jekyll-theme-architect (= 0.1.0)
45+
jekyll-theme-cayman (= 0.1.0)
46+
jekyll-theme-dinky (= 0.1.0)
47+
jekyll-theme-hacker (= 0.1.0)
48+
jekyll-theme-leap-day (= 0.1.0)
49+
jekyll-theme-merlot (= 0.1.0)
50+
jekyll-theme-midnight (= 0.1.0)
51+
jekyll-theme-minimal (= 0.1.0)
52+
jekyll-theme-modernist (= 0.1.0)
53+
jekyll-theme-primer (= 0.5.2)
54+
jekyll-theme-slate (= 0.1.0)
55+
jekyll-theme-tactile (= 0.1.0)
56+
jekyll-theme-time-machine (= 0.1.0)
57+
jekyll-titles-from-headings (= 0.4.0)
58+
jemoji (= 0.8.0)
59+
kramdown (= 1.13.2)
60+
liquid (= 4.0.0)
61+
listen (= 3.0.6)
62+
mercenary (~> 0.3)
63+
minima (= 2.1.1)
64+
rouge (= 1.11.1)
65+
terminal-table (~> 1.4)
66+
github-pages-health-check (1.3.5)
67+
addressable (~> 2.3)
68+
net-dns (~> 0.8)
69+
octokit (~> 4.0)
70+
public_suffix (~> 2.0)
71+
typhoeus (~> 0.7)
72+
html-pipeline (2.7.0)
73+
activesupport (>= 2)
74+
nokogiri (>= 1.4)
75+
i18n (0.8.6)
76+
jekyll (3.5.2)
77+
addressable (~> 2.4)
78+
colorator (~> 1.0)
79+
jekyll-sass-converter (~> 1.0)
80+
jekyll-watch (~> 1.1)
81+
kramdown (~> 1.3)
82+
liquid (~> 4.0)
83+
mercenary (~> 0.3.3)
84+
pathutil (~> 0.9)
85+
rouge (~> 1.7)
86+
safe_yaml (~> 1.0)
87+
jekyll-avatar (0.4.2)
88+
jekyll (~> 3.0)
89+
jekyll-coffeescript (1.0.1)
90+
coffee-script (~> 2.2)
91+
jekyll-default-layout (0.1.4)
92+
jekyll (~> 3.0)
93+
jekyll-feed (0.9.2)
94+
jekyll (~> 3.3)
95+
jekyll-gist (1.4.1)
96+
octokit (~> 4.2)
97+
jekyll-github-metadata (2.9.1)
98+
jekyll (~> 3.1)
99+
octokit (~> 4.0, != 4.4.0)
100+
jekyll-mentions (1.2.0)
101+
activesupport (~> 4.0)
102+
html-pipeline (~> 2.3)
103+
jekyll (~> 3.0)
104+
jekyll-optional-front-matter (0.2.0)
105+
jekyll (~> 3.0)
106+
jekyll-paginate (1.1.0)
107+
jekyll-readme-index (0.1.0)
108+
jekyll (~> 3.0)
109+
jekyll-redirect-from (0.12.1)
110+
jekyll (~> 3.3)
111+
jekyll-relative-links (0.4.1)
112+
jekyll (~> 3.3)
113+
jekyll-sass-converter (1.5.0)
114+
sass (~> 3.4)
115+
jekyll-seo-tag (2.3.0)
116+
jekyll (~> 3.3)
117+
jekyll-sitemap (1.0.0)
118+
jekyll (~> 3.3)
119+
jekyll-swiss (0.4.0)
120+
jekyll-theme-architect (0.1.0)
121+
jekyll (~> 3.5)
122+
jekyll-seo-tag (~> 2.0)
123+
jekyll-theme-cayman (0.1.0)
124+
jekyll (~> 3.5)
125+
jekyll-seo-tag (~> 2.0)
126+
jekyll-theme-dinky (0.1.0)
127+
jekyll (~> 3.5)
128+
jekyll-seo-tag (~> 2.0)
129+
jekyll-theme-hacker (0.1.0)
130+
jekyll (~> 3.5)
131+
jekyll-seo-tag (~> 2.0)
132+
jekyll-theme-leap-day (0.1.0)
133+
jekyll (~> 3.5)
134+
jekyll-seo-tag (~> 2.0)
135+
jekyll-theme-merlot (0.1.0)
136+
jekyll (~> 3.5)
137+
jekyll-seo-tag (~> 2.0)
138+
jekyll-theme-midnight (0.1.0)
139+
jekyll (~> 3.5)
140+
jekyll-seo-tag (~> 2.0)
141+
jekyll-theme-minimal (0.1.0)
142+
jekyll (~> 3.5)
143+
jekyll-seo-tag (~> 2.0)
144+
jekyll-theme-modernist (0.1.0)
145+
jekyll (~> 3.5)
146+
jekyll-seo-tag (~> 2.0)
147+
jekyll-theme-primer (0.5.2)
148+
jekyll (~> 3.5)
149+
jekyll-github-metadata (~> 2.9)
150+
jekyll-seo-tag (~> 2.2)
151+
jekyll-theme-slate (0.1.0)
152+
jekyll (~> 3.5)
153+
jekyll-seo-tag (~> 2.0)
154+
jekyll-theme-tactile (0.1.0)
155+
jekyll (~> 3.5)
156+
jekyll-seo-tag (~> 2.0)
157+
jekyll-theme-time-machine (0.1.0)
158+
jekyll (~> 3.5)
159+
jekyll-seo-tag (~> 2.0)
160+
jekyll-titles-from-headings (0.4.0)
161+
jekyll (~> 3.3)
162+
jekyll-watch (1.5.0)
163+
listen (~> 3.0, < 3.1)
164+
jemoji (0.8.0)
165+
activesupport (~> 4.0)
166+
gemoji (~> 3.0)
167+
html-pipeline (~> 2.2)
168+
jekyll (>= 3.0)
169+
kramdown (1.13.2)
170+
liquid (4.0.0)
171+
listen (3.0.6)
172+
rb-fsevent (>= 0.9.3)
173+
rb-inotify (>= 0.9.7)
174+
mercenary (0.3.6)
175+
mini_portile2 (2.2.0)
176+
minima (2.1.1)
177+
jekyll (~> 3.3)
178+
minitest (5.10.3)
179+
multipart-post (2.0.0)
180+
net-dns (0.8.0)
181+
nokogiri (1.8.0)
182+
mini_portile2 (~> 2.2.0)
183+
octokit (4.7.0)
184+
sawyer (~> 0.8.0, >= 0.5.3)
185+
pathutil (0.14.0)
186+
forwardable-extended (~> 2.6)
187+
public_suffix (2.0.5)
188+
rb-fsevent (0.10.2)
189+
rb-inotify (0.9.10)
190+
ffi (>= 0.5.0, < 2)
191+
rouge (1.11.1)
192+
safe_yaml (1.0.4)
193+
sass (3.5.1)
194+
sass-listen (~> 4.0.0)
195+
sass-listen (4.0.0)
196+
rb-fsevent (~> 0.9, >= 0.9.4)
197+
rb-inotify (~> 0.9, >= 0.9.7)
198+
sawyer (0.8.1)
199+
addressable (>= 2.3.5, < 2.6)
200+
faraday (~> 0.8, < 1.0)
201+
terminal-table (1.8.0)
202+
unicode-display_width (~> 1.1, >= 1.1.1)
203+
thread_safe (0.3.6)
204+
typhoeus (0.8.0)
205+
ethon (>= 0.8.0)
206+
tzinfo (1.2.3)
207+
thread_safe (~> 0.1)
208+
unicode-display_width (1.3.0)
209+
210+
PLATFORMS
211+
ruby
212+
213+
DEPENDENCIES
214+
github-pages
215+
jekyll-theme-minimal
216+
217+
BUNDLED WITH
218+
1.15.3

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ npm install -g diff2html-cli --registry https://registry.npmjs.org
22

33
diff2html
44

5-
diff2html -s line -f html -d word -i command -o preview -- -M HEAD~1
5+
diff2html -s line -f html -d word -i command -o preview -- -M HEAD~1
6+
7+
bundle exec jekyll serve

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
theme: jekyll-theme-minimal
1+
theme: jekyll-theme-minimal
2+
title: Let's Build a Simiple Database
3+
description: Writing a sqlite clone from scratch in C

_layouts/default.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
7+
{% seo %}
8+
9+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
10+
<meta name="viewport" content="width=device-width">
11+
<!--[if lt IE 9]>
12+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13+
<![endif]-->
14+
</head>
15+
<body>
16+
<div class="wrapper">
17+
<header>
18+
<h1>{{ site.title | default: site.github.repository_name }}</h1>
19+
<p>{{ site.description | default: site.github.project_tagline }}</p>
20+
21+
<p class="view"><a href="/">Overview</a></p>
22+
23+
{% if site.github.is_project_page %}
24+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
25+
{% endif %}
26+
27+
{% if site.github.is_user_page %}
28+
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
29+
{% endif %}
30+
31+
{% if site.show_downloads %}
32+
<ul>
33+
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
34+
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
35+
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
36+
</ul>
37+
{% endif %}
38+
</header>
39+
<section>
40+
41+
{{ content }}
42+
43+
</section>
44+
<footer>
45+
{% if site.github.is_project_page %}
46+
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
47+
{% endif %}
48+
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
49+
</footer>
50+
</div>
51+
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
52+
53+
54+
{% if site.google_analytics %}
55+
<script>
56+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
57+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
58+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
59+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
60+
61+
ga('create', '{{ site.google_analytics }}', 'auto');
62+
ga('send', 'pageview');
63+
</script>
64+
{% endif %}
65+
</body>
66+
</html>

index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Overview
2+
Foo bar
3+
4+
Blah blah
5+
6+
This that
7+
8+
# Table of Contents
9+
[Part 1 - Introduction and Setting up the REPL](part1.md)

part1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Part 1 - Introduction and Setting up the REPL
2+
3+
Hello World

0 commit comments

Comments
 (0)