forked from CodingTrain/website-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.yml
143 lines (106 loc) · 3.8 KB
/
_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Jekyll Configuraton for https://codingtrain.github.io/Rainwbow-Code/
#
# ToDo for Jekyll v3.7:
# - move collections into a subfolder using collections_dir: <path>
# - set layout series-index for relevant files automatically (using a glob pattern).
#
# --- Site Settings ---
# The site's title.
title: The Coding Train // Code Repository
# Location from where the site will be served (repository name for GitHub Pages).
baseurl: /
# Name of the GitHub repository (used for generating links to GitHub).
repository: CodingTrain/website
# Prefix for download links (downloads only the relevant code from GitHub).
github_download_prefix: https://minhaskamal.github.io/DownGit/#/home?url=
# Prefixes for editor.p5js.org
web_editor_sketch_prefix: https://editor.p5js.org/codingtrain/sketches/
web_editor_fullscreen_prefix: https://editor.p5js.org/full/
# Suffixes for auto-detecting the video's code that's available for download/preview.
#
# name string Name of the code variation.
# folder string Name of the folder relative to the video's repository.
# live_example boolean Wether this variation should be used as the live example.
# The first match is used. If the video has the `web_editor`
# property, a link to the P5 Web Editor will be used instead.
code_variations:
- name: "P5.JS"
folder: "P5"
live_example: true
- name: "Processing"
folder: "Processing"
- name: "JavaScript"
folder: "JavaScript"
- name: "Node.js"
folder: "Node"
# Links to other platforms.
links:
# Link to YouTube.
youtube: https://youtube.com/thecodingtrain/
# Link to Patreon.
patreon: https://patreon.com/codingtrain
# Link to the merch store.
merch: https://www.designbyhumans.com/shop/codingtrain/
# Link to the Amazon store.
amazon: https://www.amazon.com/shop/thecodingtrain
# --- Build Settings ---
# Use Kramdown as the preferred Markdown parser.
markdown: kramdown
# Exclude code for Node.js and Q_and_A
exclude: [ 'Node', 'Q_and_A', 'unit_testing', 'node_modules', 'vendor/bundle/', 'vendor/cache/', 'vendor/gems/', 'vendor/ruby/']
# Include future videos (used for 'Upcoming Streams' section).
future: true
# Use EDT as the site's timezone.
timezone: America/New_York
# Compress HTML for production builds.
compress_html: { ignore: { envs: ['development'] } }
# Search for SASS files inside assets/css.
sass: { sass_dir: 'assets/css' }
# Use jekyll-redirect-from to allow redirections
plugins:
- jekyll-redirect-from
# --- Jekyll Locations ---
layouts_dir: _jekyll/layouts
includes_dir: _jekyll/includes
# --- Collections ---
collections:
Streams: { output: true }
CodingChallenges: { output: true }
Tutorials: { output: true }
GuestTutorials: { output: true }
Courses: { output: true }
# --- Defaults ---
defaults:
# Streams
- scope: { path: "", type: "Streams" }
values:
layout: "video"
video_type: "stream"
can_contribute: false
# Coding Challenges
- scope: { path: "", type: "CodingChallenges" }
values:
layout: "video"
video_type: "coding challenge"
video_type_short: "challenge"
can_contribute: true
# Tutorials
- scope: { path: "", type: "Tutorials" }
values:
layout: "video"
video_type: "tutorial"
can_contribute: false
# Guest Tutorials
- scope: { path: "", type: "GuestTutorials" }
values:
layout: "video"
video_type: "guest tutorial"
video_type_short: "tutorial"
can_contribute: false
# Courses
- scope: { path: "", type: "Courses" }
values:
layout: "video"
video_type: "session"
can_contribute: false