Skip to content

Commit 4cb5a21

Browse files
author
Armagan Ersoz
committed
Copy and Paste the content from original gh-pages repo
1 parent dedc7a0 commit 4cb5a21

File tree

119 files changed

+15000
-52
lines changed

Some content is hidden

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

119 files changed

+15000
-52
lines changed

Diff for: Gemfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
11+
12+
group :jekyll_plugins do
13+
gem 'jekyll-livereload'
14+
gem "github-pages"
15+
end
16+
17+
gem "json"
18+
19+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
20+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Diff for: _config.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 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+
# 'bundle exec 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: "Node Girls"
17+
workshopname: "Intro to Javascript"
18+
email: your-email@domain.com
19+
description: > # this means to ignore newlines until "baseurl:"
20+
This is an introductory workshop for Javascript.
21+
baseurl: "/intro-to-js" # the subpath of your site, e.g. /blog
22+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
23+
24+
# Build settings
25+
markdown: kramdown
26+
# theme: node-girls
27+
28+
collections:
29+
steps:
30+
output: true
31+
challenges:
32+
output: true
33+
34+
challenge_separator: "<!--BREAK-->"
35+
challenge_difficulties:
36+
- NONE
37+
- Minor tweak of existing feature
38+
- Adding new code derived from existing features
39+
- Expands on existing concepts
40+
- Introduces multiple new concepts
41+
- Multiple new concepts. Might need to some research.
42+
43+
plugins:
44+
- jekyll-feed
45+
- jemoji
46+
47+
exclude:
48+
- Gemfile
49+
- Gemfile.lock

Diff for: _includes/disqus_comments.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% if page.comments != false and jekyll.environment == "production" %}
2+
3+
<div id="disqus_thread"></div>
4+
<script>
5+
var disqus_config = function () {
6+
this.page.url = '{{ page.url | absolute_url }}';
7+
this.page.identifier = '{{ page.url | absolute_url }}';
8+
};
9+
10+
(function() {
11+
var d = document, s = d.createElement('script');
12+
13+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14+
15+
s.setAttribute('data-timestamp', +new Date());
16+
(d.head || d.body).appendChild(s);
17+
})();
18+
</script>
19+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20+
{% endif %}

Diff for: _includes/footer.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<div class="social-media centered">
6+
<ul>
7+
<li><i class="fa fa-home" aria-hidden="true"></i>&nbsp;&nbsp;<a href="http://nodegirls.com.au/" target="_blank">nodegirls.com.au</a></li>
8+
<li><i class="fa fa-paper-plane-o" aria-hidden="true"></i>&nbsp;&nbsp;<a href="mailto:info@nodegirls.com.au">info@nodegirls.com.au</a></li>
9+
</ul>
10+
<ul>
11+
<li><i class="fa fa-facebook" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;<a href="https://www.facebook.com/NodeGirlsAustralia/" target="_blank">facebook.com/NodeGirlsAustralia</a></li>
12+
<li><i class="fa fa-github-alt" aria-hidden="true"></i>&nbsp;&nbsp;<a href="https://github.com/node-girls-australia" target="_blank">github.com/node-girls-australia</a></li>
13+
<li><i class="fa fa-twitter" aria-hidden="true"></i>&nbsp;&nbsp;<a href="https://twitter.com/NodeGirlsBri" target="_blank">twitter.com/NodeGirlsBri</a></li>
14+
</ul>
15+
</div>
16+
17+
</footer>

Diff for: _includes/google-analytics.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>
11+

Diff for: _includes/head.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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>{{ site.workshopname | escape }}: {% if page.title %}{{ page.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8+
<link rel="icon" type="image/x-icon" href="/express-workshop-2/favicon.ico" />
9+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
11+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
12+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
13+
14+
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
15+
<script>
16+
$(document).ready(function(){
17+
$('div.solution').each( function(){
18+
$(this).prepend('<h5 class="toggle hiding"><i class="fa fa-chevron-up" aria-hidden="true"></i> Click to <span class="action"></span> solution</h5>');
19+
});
20+
$('div.solution .highlight').first().addClass('hidden');
21+
$('h5.toggle').click(function(e){
22+
$(this).parent().children('.highlight').first().slideToggle('show');
23+
$(this).toggleClass('showing');
24+
$(this).toggleClass('hiding');
25+
$(this).children('i.fa').toggleClass('fa-chevron-up');
26+
$(this).children('i.fa').toggleClass('fa-chevron-down');
27+
28+
});
29+
});
30+
</script>
31+
{% if jekyll.environment == 'production' and site.google_analytics %}
32+
{% include google-analytics.html %}
33+
{% endif %}
34+
</head>

Diff for: _includes/header.html

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{% assign default_paths = site.pages | map: "path" %}
5+
{% assign page_paths = site.header_pages | default: default_paths %}
6+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }} <small>{{ site.workshopname | escape }}</small></a>
7+
8+
{% if page_paths %}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<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"/>
15+
<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"/>
16+
<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"/>
17+
</svg>
18+
</span>
19+
</label>
20+
21+
<div class="trigger">
22+
<a class="page-link" href="{{ '/' | relative_url }}">Home</a>
23+
<a class="page-link go-link" href="{{ 'step0/' | relative_url }}"><i class="fa fa-rocket" aria-hidden="true"></i> Start</a>
24+
</div>
25+
</nav>
26+
{% endif %}
27+
</div>
28+
</header>

Diff for: _includes/icon-github.html

+1
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>

Diff for: _includes/icon-github.svg

+1
Loading

Diff for: _includes/icon-twitter.html

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

Diff for: _includes/icon-twitter.svg

+1
Loading

Diff for: _includes/keywords-table.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% if page.keywords %}
2+
{% assign sorted_keywords = page.keywords | sort: 'term' %}
3+
<table class="reference">
4+
<thead>
5+
<tr>
6+
<th>Keyword</th>
7+
<th>Explanation</th>
8+
</tr>
9+
</thead>
10+
<tbody>
11+
{% for keyword in sorted_keywords %}
12+
<tr>
13+
<td>{{keyword.term}}</td>
14+
<td>{{ keyword.define | markdownify }}</td>
15+
</tr>
16+
17+
{% endfor %}
18+
19+
</tbody>
20+
</table>
21+
{% endif %}

Diff for: _includes/page-nav.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% assign next = page.number | plus: 1 %}
2+
3+
{% unless page.end %}
4+
<div class="page-nav">
5+
<a class='go-link' href='../step{{next}}'>Go to Step {{next}}</a>
6+
</div>
7+
{% endunless %}

Diff for: _includes/step-nav.html

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{% assign steps = site.steps | sort: "number" %}
2+
3+
<div class="step-nav">
4+
<ul class="main">
5+
<li class="{% if page.url == '/' }} %}active{% endif %}"><a href="{{ '/' | relative_url }}">Home</a></li>
6+
</ul>
7+
8+
<h3>Part 0 - Getting Started</h3>
9+
<ul>
10+
{% for step in steps %}
11+
{% if step.part == 0 %}
12+
<li class='{% if page.number == step.number %}active{% endif %}'>
13+
<a href="{{ step.url | relative_url }}">
14+
{% if step.number != "start" %}{{step.number}} - {% endif %}{{ step.title | escape }}
15+
</a>
16+
</li>
17+
{% endif %}
18+
{% endfor %}
19+
</ul>
20+
21+
22+
<h3>Part 1 - Basics</h3>
23+
<ul>
24+
{% for step in steps %}
25+
{% if step.part == 1 %}
26+
<li class='{% if page.number == step.number %}active{% endif %}'>
27+
<a href="{{ step.url | relative_url }}">
28+
{% if step.number != "start" %}{{step.number}} - {% endif %}{{ step.title | escape }}
29+
</a>
30+
</li>
31+
{% endif %}
32+
{% endfor %}
33+
</ul>
34+
35+
<h3>Part 2 - The Browser</h3>
36+
<ul>
37+
{% for step in steps %}
38+
{% if step.part == 2 %}
39+
<li class='{% if page.number == step.number %}active{% endif %}'>
40+
<a href="{{ step.url | relative_url }}">
41+
{% if step.number != "start" %}{{step.number}} - {% endif %}{{ step.title | escape }}
42+
</a>
43+
</li>
44+
{% endif %}
45+
{% endfor %}
46+
</ul>
47+
48+
<!-- <h3>Challenges</h3>
49+
<ul>
50+
{% for challenge in site.challenges %}
51+
<li class='{% if page.cnumber == challenge.cnumber %}active{% endif %}'>
52+
<a href="{{ challenge.url | relative_url }}">
53+
{% if challenge.cnumber != "start" %}{{challenge.cnumber}} - {% endif %}{{ challenge.title | escape }}
54+
</a>
55+
</li>
56+
{% endfor %}
57+
</ul> -->
58+
59+
<ul class="main">
60+
<!-- <li class="{% if page.url == '/troubleshooting/' }} %}active{% endif %}"><a href="{{ '/troubleshooting/' | relative_url }}">Troubleshooting</a></li> -->
61+
<li class="{% if page.url == '/journey-continues/' }} %}active{% endif %}"><a href="{{ '/journey-continues/' | relative_url }}">The Journey Continues</a></li>
62+
</ul>
63+
64+
65+
<h3>Useful Links</h3>
66+
<ul>
67+
<li><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference">MDN Javascript Reference</a></li>
68+
69+
</ul>
70+
71+
72+
</div>

Diff for: _layouts/challenge.html

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: default
3+
---
4+
{% assign contentArray = page.content | markdownify | split: site.challenge_separator %}
5+
6+
<article class="post">
7+
8+
<header class="post-header">
9+
<h2 class="post-title"> Challenge {{page.cnumber}} - {{ page.title | escape }}</h1>
10+
</header>
11+
12+
<div class="post-content">
13+
<div><b>Difficulty: </b>
14+
{% for i in (1..page.difficulty) %}<span class="fa fa-star"></span>{% endfor %}{% for i in (page.difficulty..4) %}<span class="fa fa-star-o"></span>{% endfor %}
15+
{{site.challenge_difficulties[page.difficulty]}}
16+
</div>
17+
18+
{{ contentArray.first }}
19+
<div class="challenge">
20+
<p>Here's how a challenge works:</p>
21+
<ol>
22+
<li>We tell you how to change the front-end for the new feature.</li>
23+
<li>We describe the expectations for the backend changes.</li>
24+
<li>We'll discuss the steps & things you need to understand to do this and give some hints.</li>
25+
<li>Then you have to implement the backend changes yourself. </li>
26+
</ol>
27+
<p>
28+
There will be a solution at the end. But remember there is always more than one way of doing things. :smile:
29+
</p>
30+
</div>
31+
{{ contentArray.last }}
32+
{% include keywords-table.html %}
33+
34+
</div>
35+
36+
</article>

Diff for: _layouts/default.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
{% include step-nav.html %}
13+
{{ content }}
14+
</div>
15+
16+
</main>
17+
18+
{% include footer.html %}
19+
20+
</body>
21+
22+
</html>

Diff for: _layouts/home.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="post">
6+
7+
<div class="post-content home">
8+
{{ content }}
9+
<div class="page-nav">
10+
<h3 style="border:none"><a class="go-link" href="step0">Now click here to get started!</a></h3>
11+
</div>
12+
13+
</div>
14+
15+
</article>

Diff for: _layouts/page.html

+14
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>

0 commit comments

Comments
 (0)