Skip to content

Commit 89754da

Browse files
committed
add logo, includes, layouts, etc. other than logo, most from jekyll repo
1 parent ca12719 commit 89754da

27 files changed

+1733
-9
lines changed

STEPcode_logo_gears_light.svg

+158
Loading

Widget:GPlusOne.md

-7
This file was deleted.

Widget:GPlusOne.mediawiki

-2
This file was deleted.

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
highlighter: pygments
2+
#url: http://stepcode.org
3+
#url: http://localhost:4000

_includes/anchor_links.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<script>
2+
var anchorForId = function (id) {
3+
var anchor = document.createElement("a");
4+
anchor.className = "header-link";
5+
anchor.href = "#" + id;
6+
anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
7+
anchor.title = "Permalink";
8+
return anchor;
9+
};
10+
11+
var linkifyAnchors = function (level, containingElement) {
12+
var headers = containingElement.getElementsByTagName("h" + level);
13+
for (var h = 0; h < headers.length; h++) {
14+
var header = headers[h];
15+
16+
if (typeof header.id !== "undefined" && header.id !== "") {
17+
header.appendChild(anchorForId(header.id));
18+
}
19+
}
20+
};
21+
22+
document.onreadystatechange = function () {
23+
if (this.readyState === "complete") {
24+
var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
25+
if (!contentBlock) {
26+
return;
27+
}
28+
for (var level = 1; level <= 6; level++) {
29+
linkifyAnchors(level, contentBlock);
30+
}
31+
}
32+
};
33+
</script>

_includes/docs_contents.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="unit one-fifth hide-on-mobiles">
2+
<aside>
3+
{% for section in site.data.docs %}
4+
<h4>{{ section.title }}</h4>
5+
{% include docs_ul.html items=section.docs %}
6+
{% endfor %}
7+
</aside>
8+
</div>

_includes/docs_contents_mobile.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="docs-nav-mobile unit whole show-on-mobiles">
2+
<select onchange="if (this.value) window.location.href=this.value">
3+
<option value="">Navigate the docs…</option>
4+
{% for section in site.data.docs %}
5+
<optgroup label="{{ section.title }}">
6+
{% include docs_option.html items=section.docs %}
7+
</optgroup>
8+
{% endfor %}
9+
</select>
10+
</div>

_includes/footer.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<footer role="contentinfo">
2+
<div class="grid">
3+
<div class="unit one-third center-on-mobiles">
4+
<p>The contents of this website are &copy;&nbsp;{{ site.time | date: '%Y' }} <a href="http://tom.preston-werner.com/">Tom Preston-Werner</a> under the terms of the <a href="{{ site.repository }}/blob/master/LICENSE">MIT&nbsp;License</a>.</p>
5+
</div>
6+
<div class="unit two-thirds align-right center-on-mobiles">
7+
<p>
8+
Hosted by
9+
<a href="https://github.com">
10+
<!-- <img src="/img/footer-logo.png" width="100" height="30" alt="GitHub • Social coding"> -->
11+
GitHub
12+
</a>
13+
</p>
14+
</div>
15+
</div>
16+
</footer>

_includes/front_header.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<header role="banner">
2+
<nav class="mobile-nav show-on-mobiles">
3+
{% include primary-nav-items.html %}
4+
</nav>
5+
<div class="grid">
6+
<div class="unit one-third center-on-mobiles">
7+
<h1>
8+
<a href="/">
9+
<!-- http://stepcode.org/STEPcode_logo.png 399w, 465h width="99" -->
10+
<span class="sr-only">STEPcode</span>
11+
<img src="/STEPcode_logo_gears_light.svg" height="230px" width=100% alt="STEPcode Logo">
12+
</a>
13+
</h1>
14+
</div>
15+
<nav class="main-nav unit two-thirds hide-on-mobiles">
16+
{% include primary-nav-items.html %}
17+
</nav>
18+
</div>
19+
</header>

_includes/header.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<header role="banner">
2+
<nav class="mobile-nav show-on-mobiles">
3+
{% include primary-nav-items.html %}
4+
</nav>
5+
<div class="grid">
6+
<div class="unit one-third center-on-mobiles">
7+
<h1>
8+
<a href="/">
9+
<!-- http://stepcode.org/STEPcode_logo.png 399w, 465h width="99" -->
10+
<span class="sr-only">STEPcode</span>
11+
<img src="/STEPcode_logo_gears_light.svg" height="115px" width=100% alt="STEPcode Logo">
12+
</a>
13+
</h1>
14+
</div>
15+
<nav class="main-nav unit two-thirds hide-on-mobiles">
16+
{% include primary-nav-items.html %}
17+
</nav>
18+
</div>
19+
</header>

_includes/primary-nav-items.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<ul>
2+
<li class="{% if page.overview %}current{% endif %}">
3+
<a href="/">Home</a>
4+
</li>
5+
<li class="{% if page.url contains '/docs/' %}current{% endif %}">
6+
<a href="/docs/home/">Doc<span class="show-on-mobiles">s</span><span class="hide-on-mobiles">umentation</span></a>
7+
</li>
8+
<li class="{% if page.author %}current{% endif %}">
9+
<a href="/news/">News</a>
10+
</li>
11+
<li>
12+
<a href="/help/">Help</a>
13+
</li>
14+
<li>
15+
<a href="{{ site.repository }}"><span class="hide-on-mobiles">View on </span>GitHub</a>
16+
</li>
17+
</ul>

_includes/section_nav.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{% comment %}
2+
Map grabs the doc sections, giving us an array of arrays. Join, flattens all
3+
the items to a comma delimited string. Split turns it into an array again.
4+
{% endcomment %}
5+
{% assign docs = site.data.docs | map: 'docs' | join: ',' | split: ',' %}
6+
7+
{% comment %}
8+
Because this is built for every page, lets find where we are in the ordered
9+
document list by comparing url strings. Then if there's something previous or
10+
next, lets build a link to it.
11+
{% endcomment %}
12+
13+
{% for document in docs %}
14+
{% assign document_url = document | prepend:"/docs/" | append:"/" %}
15+
{% if document_url == page.url %}
16+
<div class="section-nav">
17+
<div class="left align-right">
18+
{% if forloop.first %}
19+
<span class="prev disabled">Back</span>
20+
{% else %}
21+
{% assign previous = forloop.index0 | minus: 1 %}
22+
{% assign previous_page = docs[previous] | prepend:"/docs/" | append:"/" %}
23+
<a href="{{ previous_page }}" class="prev">Back</a>
24+
{% endif %}
25+
</div>
26+
<div class="right align-left">
27+
{% if forloop.last %}
28+
<span class="next disabled">Next</span>
29+
{% else %}
30+
{% assign next = forloop.index0 | plus: 1 %}
31+
{% assign next_page = docs[next] | prepend:"/docs/" | append:"/" %}
32+
<a href="{{ next_page }}" class="next">Next</a>
33+
{% endif %}
34+
</div>
35+
</div>
36+
<div class="clear"></div>
37+
{% break %}
38+
{% endif %}
39+
{% endfor %}

_includes/top.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{{ page.title }}</title>
6+
<meta name="viewport" content="width=device-width,initial-scale=1">
7+
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
8+
<link rel="alternate" type="application/rss+xml" title="{{ page.title }} - Feed" href="/feed.xml">
9+
<link rel="alternate" type="application/atom+xml" title="Recent commits to STEPcode's master branch" href="{{ site.repository }}/commits/master.atom">
10+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
11+
<link rel="stylesheet" href="/css/screen.css">
12+
<link rel="icon" type="image/x-icon" href="/favicon.ico">
13+
<!--[if lt IE 9]>
14+
<script src="/js/html5shiv.min.js"></script>
15+
<script src="/js/respond.min.js"></script>
16+
<![endif]-->
17+
</head>

_layouts/default.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% include top.html %}
2+
3+
<body class="wrap">
4+
{% include header.html %}
5+
6+
{{ content }}
7+
8+
{% include footer.html %}
9+
{% include anchor_links.html %}
10+
<!-- { % include analytics.html % } -->
11+
12+
</body>
13+
</html>

_layouts/docs.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
5+
<section class="docs">
6+
<div class="grid">
7+
8+
{% include docs_contents_mobile.html %}
9+
10+
<div class="unit four-fifths">
11+
<article>
12+
<div class="improve right hide-on-mobiles">
13+
<a href="https://github.com/stepcode/stepcode.github.io/edit/master/{{ page.path }}"><i class="fa
14+
fa-pencil"></i> &nbsp;Improve this page</a>
15+
</div>
16+
<h1>{{ page.title }}</h1>
17+
{{ content }}
18+
{% include section_nav.html %}
19+
</article>
20+
</div>
21+
22+
{% include docs_contents.html %}
23+
24+
<div class="clear"></div>
25+
26+
</div>
27+
</section>

_layouts/front.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% include top.html %}
2+
3+
<body class="wrap">
4+
{% include front_header.html %}
5+
<div class="grid">
6+
<div class="unit four-fifths">
7+
{{ content }}
8+
</div>
9+
</div>
10+
{% include footer.html %}
11+
{% include anchor_links.html %}
12+
<!-- { % include analytics.html % } -->
13+
14+
</body>
15+
</html>

_layouts/news.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default
3+
---
4+
5+
<section class="news">
6+
<div class="grid">
7+
8+
{% include news_contents_mobile.html %}
9+
10+
<div class="unit four-fifths">
11+
{{ content }}
12+
</div>
13+
14+
{% include news_contents.html %}
15+
16+
<div class="clear"></div>
17+
18+
</div>
19+
</section>

_layouts/news_item.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: news
3+
---
4+
5+
<article>
6+
<h2>
7+
{{ page.title }}
8+
<a href="{{ page.url }}" class="permalink" title="Permalink"></a>
9+
</h2>
10+
<span class="post-category">
11+
<span class="label">
12+
{{ page.categories | array_to_sentence_string }}
13+
</span>
14+
</span>
15+
<div class="post-meta">
16+
<span class="post-date">
17+
{{ page.date | date_to_string }}
18+
</span>
19+
<a href="https://github.com/{{ page.author }}" class="post-author">
20+
<img src="https://github.com/{{ page.author }}.png" class="avatar" alt="{{ page.author }} avatar" width="24" height="24">
21+
{{ page.author }}
22+
</a>
23+
</div>
24+
<div class="post-content">
25+
{{ content }}
26+
</div>
27+
</article>

_layouts/page.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: default
3+
---
4+
5+
<section class="standalone">
6+
<div class="grid">
7+
8+
<div class="unit whole">
9+
<article>
10+
<h1>{{ page.title }}</h1>
11+
{{ content }}
12+
</article>
13+
</div>
14+
15+
<div class="clear"></div>
16+
17+
</div>
18+
</section>

_sass/_font-awesome.scss

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*!
2+
* Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
3+
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4+
*/
5+
@font-face {
6+
font-family: 'FontAwesome';
7+
src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
8+
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
9+
font-weight: normal;
10+
font-style: normal;
11+
}
12+
.fa {
13+
display: inline-block;
14+
font: normal normal normal 14px/1 FontAwesome;
15+
font-size: inherit;
16+
text-rendering: auto;
17+
-webkit-font-smoothing: antialiased;
18+
-moz-osx-font-smoothing: grayscale;
19+
}
20+
.fa-link:before {
21+
content: "\f0c1";
22+
}
23+
.fa-pencil:before {
24+
content: "\f040";
25+
}

0 commit comments

Comments
 (0)