Skip to content

Commit 10951d2

Browse files
committed
started adding structure parser
1 parent f7685e7 commit 10951d2

File tree

8 files changed

+174
-0
lines changed

8 files changed

+174
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

_data/languages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
de:
2+
name: Deutsch
3+
# TODO: add flag
4+
en:
5+
name: English

_data/tags.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
programming-languages:
2+
python:
3+
name: Python
4+
url: https://python.org/
5+
description:
6+
de: Python is eine Allzweckprogramiersprache.
7+
skills:
8+
symbols:
9+
name:
10+
de: Symbole
11+
en: Symbols
12+
description:
13+
de: Weder lesen noch Schreiben - lerne Programmieren mit Symbolen
14+
en: Neither reading nor writing - learn programming with symbols.
15+
blocks:
16+
name:
17+
de: Blöcke
18+
en: Blocks
19+
description:
20+
de: Schreibe eigene Programme, indem du Blöcke zusammen steckst.
21+
en: Write your own programs by plugging building blocks together.
22+
syntax:
23+
name:
24+
de: Syntax
25+
en: Syntax
26+
description:
27+
en: In text based programming you write your program with the keyboard.
28+
de: In textbasierten Programmiersprachen schreibst du dein Programm mit der Tastatur.
29+
30+

_data/tutorials.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#
2+
# Each tutorial should have a lowercase name
3+
#
4+
lightbot:
5+
title: Lightbot
6+
# todo: image
7+
description:
8+
de: Steuere einen kleinen Roboter, der den Boden anleuchten möchte.
9+
url: http://lightbot.com/hour-of-code.html
10+
links:
11+
- name: Online
12+
url: http://lightbot.com/flash.html
13+
- name: iOS
14+
url: http://lightbot.com/redirect-ios-codehour.html
15+
- name: Android
16+
url: http://lightbot.com/redirect-android-codehour.html
17+
tags:
18+
- symbols
19+
- hour-of-code
20+
- offline
21+
# todo offline link
22+
spritebox:
23+
title: SpriteBox
24+
description:
25+
de: Steuere deine Figur durch die eine Welt. Manchmal kommst du nicht weiter. Da hilft dir ein Elf, dem du sagst, wo er Erde hinmachen soll, damit du höher kommst.
26+
# todo: en
27+
url: http://spritebox.com/flash.html
28+
tags:
29+
- symbols
30+
# todo: ScratchJr
31+
blockly:
32+
title:
33+
de: Blockly-Spiele
34+
en: Blockly Games
35+
description:
36+
de: Puzzle, navigiere durch ein Labyrinth oder bewege Vögel - mit Blockly lernst du die Grundlagen der Programmierung.
37+
# todo: en
38+
url:
39+
de: https://blockly-games.appspot.com/?lang=de
40+
en: https://blockly-games.appspot.com/?lang=en
41+
links:
42+
- name: Labyrinth
43+
url:
44+
de: https://blockly-games.appspot.com/maze?lang=de
45+
en: https://blockly-games.appspot.com/maze?lang=en
46+
tags:
47+
- blocks
48+
code.org:
49+
title: code.org
50+
description:
51+
de: Minecraft, Star Wars, Anna und Elsa, Angry Birds, Flappy Bird - lerne Programmieren, indem du Rätsel löst.
52+
url: https://code.org/learn
53+
tags:
54+
- blocks
55+
appinventor:
56+
title: App Inventor
57+
description:
58+
de: Erstelle eigene Andriod Apps. Es gibt eine Reihe von Tutorials, die du benutzen kannst.
59+
url: http://appinventor.mit.edu/
60+
links:
61+
- name: Hour of Code Tutorial
62+
url: http://tinyurl.com/AI-tutorial-untertitel
63+
tags:
64+
- blocks
65+
codecombat:
66+
title: Code Combat
67+
description:
68+
de: Renne mit deinem Helden durch ein Verlies und bekämpfe Oger.
69+
url: https://codecombat.com/
70+
tags:
71+
- syntax
72+
- python
73+
- javascript
74+
- lua
75+
- coffeescript
76+
waterloo:
77+
title: Waterloo Tutorial
78+
url:
79+
en: https://cscircles.cemc.uwaterloo.ca/en/
80+
de: https://cscircles.cemc.uwaterloo.ca/de/
81+
description:
82+
de: Das Waterloo-Tutorial führt auf unterscheidliche Weisen in Python ein und geht auf übliche Fehler ein. Es wird vom BWINF empfohlen.
83+
tags:
84+
- python

_includes/entry.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="entry">
2+
{% if entry.name %}
3+
{% assign entry_name = entry.name %}
4+
{% else %}
5+
{% assign entry_name = entry %}
6+
{% endif %}
7+
<div class="heading">{{ entry_name | escape }}</div>
8+
{% if entry.structure %}
9+
{% include structure.html structure=entry.structure %}
10+
{% endif %}
11+
</div>

_includes/structure.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
<div class="structure">
3+
Structure: {{ include.structure | jsonify }}
4+
{% for entry in include.structure %}
5+
{% include entry.html entry=entry %}
6+
{% endfor %}
7+
</div>

_layouts/overview.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
---
3+
<html>
4+
<head>
5+
<meta http-equiv="refresh" content="2">
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7+
<meta charset="UTF-8">
8+
</head>
9+
<body>
10+
<img src="{{ page.image | escape }}"/>
11+
<h1>{{ page.title | escape }}</h1>
12+
{{ page.content }}
13+
{{ page | jsonify }}
14+
{% include structure.html structure=page.structure %}
15+
</body>
16+
</html>

potsdam.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: overview
3+
image: https://raw.githubusercontent.com/CoderDojoPotsdam/organize/master/logo/logo-256.png
4+
title: CoderDojo Potsdam
5+
structure:
6+
- name: symbols
7+
structure:
8+
- lightbot
9+
- spritebox
10+
- name: blocks
11+
structure:
12+
- blockly
13+
- code.org
14+
- name: syntax
15+
structure:
16+
- codecombat
17+
- name: python
18+
structure:
19+
- waterloo
20+
---

0 commit comments

Comments
 (0)