Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arve0/example_lessons
example setup for codeclub_lesson_builder
https://github.com/arve0/example_lessons
Last synced: 8 days ago
JSON representation
example setup for codeclub_lesson_builder
- Host: GitHub
- URL: https://github.com/arve0/example_lessons
- Owner: arve0
- License: cc0-1.0
- Created: 2015-01-24T23:23:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T07:46:19.000Z (about 9 years ago)
- Last Synced: 2024-04-11T07:27:26.548Z (7 months ago)
- Language: JavaScript
- Homepage: https://github.com/arve0/codeclub_lesson_builder
- Size: 266 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/arve0/codeclub_lesson_builder.svg?branch=nb-NO)](https://travis-ci.org/arve0/codeclub_lesson_builder)
This is a recipe of how you can create your own code club lesson
pages with [codeclub_lesson_builder](https://github.com/arve0/codeclub_lesson_builder).See the result [here](http://arve0.github.io/example_lessons/).
This repo has been bootstrapped like this:
```shell
# clone empty repo
git clone https://github.com/arve0/example_lessons
cd example_lessons/# clone builder
git clone --depth 1 https://github.com/arve0/codeclub_lesson_builder# get UK lessons
git clone --depth 1 https://github.com/CodeClub/python-curriculum
git clone --depth 1 https://github.com/CodeClub/webdev-curriculum
git clone --depth 1 https://github.com/CodeClub/scratch-curriculum# copy english lessons to src folder
mkdir src
cp -r python-curriculum/en-GB/ src/python
cp -r scratch-curriculum/en-GB/ src/scratch
cp -r webdev-curriculum/en-GB/ src/web# fix format of yaml headers and code blocks
find src/ -name '*.md' -print0 | xargs -0 -L 1 codeclub_lesson_builder/utils/fix_yaml_header.sh
find src/ -name '*.md' -print0 | xargs -0 -L 1 codeclub_lesson_builder/utils/fix_code_blocks.sh# fix YAML in one of the files manually
sed -i '' 's/\.\.\./---/g' src/python/lessons/Minecraft2D/Minecraft2D.md# remove levels (should be integers)
find src/ -name '*.md' -exec sed -i '' 's/level: [^0-9].*$/level: 1/g' {} \+# create index.md
echo -e '---\ntitle: welcome\ntemplate: index.jade\n---\n# welcome\n... to this demo of [codeclub_lesson_builder](https://github.com/arve0/codeclub_lesson_builder)' > src/index.md# get generic logos
wget kodeklubben.github.io/logo-white.png -O src/logo-white.png
wget kodeklubben.github.io/logo-black.png -O src/logo-black.png# copy setup script and run it
cp ./codeclub_lesson_builder/utils/setup .
./setup# copy culp shortcuts and build
cp codeclub_lesson_builder/utils/gulp* .
./gulp
```