Skip to content

Commit da99e92

Browse files
committed
Convert site to jekyll
This is step one towrads adding templates and creating a command reference page.
1 parent 83bcde1 commit da99e92

File tree

9 files changed

+339
-92
lines changed

9 files changed

+339
-92
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

Gemfile

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

Gemfile.lock

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
RedCloth (4.2.9)
5+
activesupport (4.2.5.1)
6+
i18n (~> 0.7)
7+
json (~> 1.7, >= 1.7.7)
8+
minitest (~> 5.1)
9+
thread_safe (~> 0.3, >= 0.3.4)
10+
tzinfo (~> 1.1)
11+
addressable (2.3.8)
12+
coffee-script (2.4.1)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.10.0)
16+
colorator (0.1)
17+
ethon (0.8.1)
18+
ffi (>= 1.3.0)
19+
execjs (2.6.0)
20+
faraday (0.9.2)
21+
multipart-post (>= 1.2, < 3)
22+
ffi (1.9.10)
23+
gemoji (2.1.0)
24+
github-pages (45)
25+
RedCloth (= 4.2.9)
26+
github-pages-health-check (= 0.6.0)
27+
jekyll (= 3.0.2)
28+
jekyll-coffeescript (= 1.0.1)
29+
jekyll-feed (= 0.3.1)
30+
jekyll-gist (= 1.4.0)
31+
jekyll-mentions (= 1.0.0)
32+
jekyll-paginate (= 1.1.0)
33+
jekyll-redirect-from (= 0.9.1)
34+
jekyll-sass-converter (= 1.3.0)
35+
jekyll-seo-tag (= 0.1.4)
36+
jekyll-sitemap (= 0.10.0)
37+
jekyll-textile-converter (= 0.1.0)
38+
jemoji (= 0.5.1)
39+
kramdown (= 1.9.0)
40+
liquid (= 3.0.6)
41+
mercenary (~> 0.3)
42+
rdiscount (= 2.1.8)
43+
redcarpet (= 3.3.3)
44+
rouge (= 1.10.1)
45+
terminal-table (~> 1.4)
46+
github-pages-health-check (0.6.0)
47+
addressable (~> 2.3)
48+
net-dns (~> 0.8)
49+
public_suffix (~> 1.4)
50+
typhoeus (~> 0.7)
51+
html-pipeline (2.3.0)
52+
activesupport (>= 2, < 5)
53+
nokogiri (>= 1.4)
54+
i18n (0.7.0)
55+
jekyll (3.0.2)
56+
colorator (~> 0.1)
57+
jekyll-sass-converter (~> 1.0)
58+
jekyll-watch (~> 1.1)
59+
kramdown (~> 1.3)
60+
liquid (~> 3.0)
61+
mercenary (~> 0.3.3)
62+
rouge (~> 1.7)
63+
safe_yaml (~> 1.0)
64+
jekyll-coffeescript (1.0.1)
65+
coffee-script (~> 2.2)
66+
jekyll-feed (0.3.1)
67+
jekyll-gist (1.4.0)
68+
octokit (~> 4.2)
69+
jekyll-mentions (1.0.0)
70+
html-pipeline (~> 2.2)
71+
jekyll (~> 3.0)
72+
jekyll-paginate (1.1.0)
73+
jekyll-redirect-from (0.9.1)
74+
jekyll (>= 2.0)
75+
jekyll-sass-converter (1.3.0)
76+
sass (~> 3.2)
77+
jekyll-seo-tag (0.1.4)
78+
jekyll (>= 2.0)
79+
jekyll-sitemap (0.10.0)
80+
jekyll-textile-converter (0.1.0)
81+
RedCloth (~> 4.0)
82+
jekyll-watch (1.3.1)
83+
listen (~> 3.0)
84+
jemoji (0.5.1)
85+
gemoji (~> 2.0)
86+
html-pipeline (~> 2.2)
87+
jekyll (>= 2.0)
88+
json (1.8.3)
89+
kramdown (1.9.0)
90+
liquid (3.0.6)
91+
listen (3.0.5)
92+
rb-fsevent (>= 0.9.3)
93+
rb-inotify (>= 0.9)
94+
mercenary (0.3.5)
95+
mini_portile2 (2.0.0)
96+
minitest (5.8.4)
97+
multipart-post (2.0.0)
98+
net-dns (0.8.0)
99+
nokogiri (1.6.7.2)
100+
mini_portile2 (~> 2.0.0.rc2)
101+
octokit (4.2.0)
102+
sawyer (~> 0.6.0, >= 0.5.3)
103+
public_suffix (1.5.3)
104+
rb-fsevent (0.9.7)
105+
rb-inotify (0.9.6)
106+
ffi (>= 0.5.0)
107+
rdiscount (2.1.8)
108+
redcarpet (3.3.3)
109+
rouge (1.10.1)
110+
safe_yaml (1.0.4)
111+
sass (3.4.21)
112+
sawyer (0.6.0)
113+
addressable (~> 2.3.5)
114+
faraday (~> 0.8, < 0.10)
115+
terminal-table (1.5.2)
116+
thread_safe (0.3.5)
117+
typhoeus (0.8.0)
118+
ethon (>= 0.8.0)
119+
tzinfo (1.2.2)
120+
thread_safe (~> 0.1)
121+
122+
PLATFORMS
123+
ruby
124+
125+
DEPENDENCIES
126+
github-pages
127+
128+
BUNDLED WITH
129+
1.11.2

_config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
title: Computing for Computer Scientists
2+
email: ppannuto@umich.edu
3+
description: > # this means to ignore newlines until "baseurl:"
4+
This 1-credit seminar is designed to teach the essentials of using a computer
5+
effectively for EECS students. While the target audience is CS/CE/DS
6+
students, any student wishing to learn how to use their computer much more
7+
effectively is encouraged to join. Topics covered include shells,
8+
environment, scripting, Makefiles, compilers, debugging tools, and version
9+
control. The last month of the course will be open to student input for
10+
remaining useful topics to cover.
11+
url: "http://c4cs.github.io" # the base hostname & protocol for your site
12+
13+
google_analytics_id: UA-70360310-1
14+
15+
timezone: America/Detroit
16+
17+
# Build settings
18+
markdown: kramdown

_includes/footer.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{% comment %}
2+
<footer class="site-footer">
3+
4+
<div class="wrapper">
5+
6+
<h2 class="footer-heading">{{ site.title }}</h2>
7+
8+
<div class="footer-col-wrapper">
9+
<div class="footer-col footer-col-1">
10+
<ul class="contact-list">
11+
<li>{{ site.title }}</li>
12+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
13+
</ul>
14+
</div>
15+
16+
<div class="footer-col footer-col-2">
17+
<ul class="social-media-list">
18+
{% if site.github_username %}
19+
<li>
20+
{% include icon-github.html username=site.github_username %}
21+
</li>
22+
{% endif %}
23+
24+
{% if site.twitter_username %}
25+
<li>
26+
{% include icon-twitter.html username=site.twitter_username %}
27+
</li>
28+
{% endif %}
29+
</ul>
30+
</div>
31+
32+
<div class="footer-col footer-col-3">
33+
<p>{{ site.description }}</p>
34+
</div>
35+
</div>
36+
37+
</div>
38+
39+
</footer>
40+
{% endcomment %}
41+
42+
43+
<footer class="footer">
44+
<div class="container">
45+
<div class="pull-right">
46+
<p class="text-muted">
47+
&copy; 2015 <a href="http://patpannuto.com">Pat Pannuto</a>
48+
</p>
49+
</div>
50+
</div>
51+
</footer>
52+
53+
<script src="/static/js/jquery-2.1.4.min.js"></script>
54+
<script src="/static/js/moment.min.js"></script>
55+
<script src="/static/js/bootstrap.min.js"></script>
56+
<script src="/static/js/fullcalendar.io/fullcalendar.js"></script>
57+
<script src="/static/js/fullcalendar.io/gcal.js"></script>
58+
<script type="text/javascript">
59+
$(document).ready(function() {
60+
$('#calendar').fullCalendar({
61+
header: {
62+
left: 'prev,next today',
63+
center: '',
64+
right: 'month,agendaWeek,agendaDay'
65+
},
66+
defaultView: 'agendaWeek',
67+
allDaySlot: false,
68+
minTime: '10:00:00',
69+
maxTime: '22:00:00',
70+
weekends: false,
71+
contentHeight: 'auto',
72+
editable: false,
73+
googleCalendarApiKey: 'AIzaSyBDG9pxcme_PaOIwJmKeEvldUzWhHn3Sog',
74+
events: {
75+
googleCalendarId: '4a0vvtkg11f6g0qs2er37gkkf8@group.calendar.google.com'
76+
},
77+
loading: function(bool) {
78+
$('#calendar-loading').toggle(bool);
79+
}
80+
});
81+
});
82+
</script>
83+
{% comment %}
84+
<script>
85+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
86+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
87+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
88+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
89+
90+
ga('create', 'UA-70360310-1', 'auto');
91+
ga('send', 'pageview');
92+
</script>
93+
{% endcomment %}

_includes/head.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
10+
11+
<link rel="stylesheet" href="/static/css/bootstrap.min.css" />
12+
<link rel="stylesheet" href="/static/css/navbar-fixed-top.css" />
13+
<link rel="stylesheet" href="/static/css/sticky-footer-navbar.css" />
14+
<link rel="stylesheet" href="/static/css/fullcalendar.io/fullcalendar.css" />
15+
<link rel="stylesheet" href="/static/css/class.css" />
16+
</head>

_includes/header.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{% comment %}
2+
<header class="site-header">
3+
4+
<div class="wrapper">
5+
6+
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
7+
8+
<nav class="site-nav">
9+
<a href="#" class="menu-icon">
10+
<svg viewBox="0 0 18 15">
11+
<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"/>
12+
<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"/>
13+
<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"/>
14+
</svg>
15+
</a>
16+
17+
<div class="trigger">
18+
{% for my_page in site.pages %}
19+
{% if my_page.title %}
20+
<a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
21+
{% endif %}
22+
{% endfor %}
23+
</div>
24+
</nav>
25+
26+
</div>
27+
28+
</header>
29+
{% endcomment %}
30+
31+
<header class="site-header">
32+
<nav class="navbar navbar-default navbar-fixed-top">
33+
<div class="container">
34+
<div class="navbar-header">
35+
<button class="navbar-toggle collapsed" aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" type="button">
36+
<span class="sr-only">Toggle navigation</span>
37+
<span class="icon-bar"></span>
38+
<span class="icon-bar"></span>
39+
<span class="icon-bar"></span>
40+
</button>
41+
<a class="navbar-brand hidden-xs" href="#">Computing for Computer Scientists</a>
42+
<a class="navbar-brand hidden-sm hidden-md hidden-lg" href="#">C4CS</a>
43+
</div>
44+
<div id="navbar" class="navbar-collapse collapse" aria-expanded="false">
45+
<ul class="nav navbar-nav navbar-right">
46+
<li><a href="#prereqs">Pre-Requisites</a></li>
47+
<li><a href="#syllabus">Syllabus</a></li>
48+
<li class="hidden-sm"><a href="#grading">Attendance, Grading, and Homework</a></li>
49+
<li class="hidden-xs hidden-md hidden-lg"><a href="#grading">Policies</a></li>
50+
<li><a href="#links">Links / Resources</a></li>
51+
</ul>
52+
</div>
53+
</div>
54+
</nav>
55+
</header>

_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="en">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<div class="page-content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</div>
15+
16+
{% include footer.html %}
17+
18+
</body>
19+
20+
</html>

0 commit comments

Comments
 (0)