forked from CodingTrain/website-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.yml
148 lines (110 loc) · 3.9 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
144
145
146
147
148
#
# Jekyll Configuraton for https://thecodingtrain.com
#
# 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
# 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 }
Guides: { 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
- scope: { path: "", type: "Guides" }
values:
layout: "guide"