@@ -27,6 +27,10 @@ export default defineConfig({
2727 github : 'https://github.com/sannybuilder/tutorial' ,
2828 discord : 'https://sannybuilder.com/discord' ,
2929 } ,
30+ components : {
31+ PageTitle : './src/components/PageTitle.astro' ,
32+ Footer : './src/components/Footer.astro' ,
33+ } ,
3034 tableOfContents : false ,
3135 expressiveCode : {
3236 themes : [ 'dracula' , 'solarized-light' ] ,
@@ -60,8 +64,9 @@ export default defineConfig({
6064 { label : 'Setting up the environment' , slug : 'setup' } ,
6165 { label : 'CLEO Library' , slug : 'cleo-library' } ,
6266 { label : 'Compiling scripts with Sanny Builder' , slug : 'sanny-builder' } ,
63- { label : 'Stripped main.scm' , slug : 'stripped-scm' } ,
64- ] ,
67+ { label : 'Stripped main.scm' , slug : 'stripped-scm' } ,
68+ { label : 'Quiz' , slug : 'quiz-ch00' } ,
69+ ] ,
6570 } ,
6671 {
6772 label : 'Chapter I: Hello, World!' ,
@@ -73,8 +78,9 @@ export default defineConfig({
7378 { label : 'Strings' , slug : 'strings' } ,
7479 { label : 'Comments' , slug : 'comments' } ,
7580 { label : '$CLEO Directive' , slug : 'cleo-directive' } ,
76- { label : 'Hands-on: Showing a Message' , slug : 'script-show-message' } ,
77- ] ,
81+ { label : 'Hands-on: Showing a Message' , slug : 'script-show-message' } ,
82+ { label : 'Quiz' , slug : 'quiz-ch01' } ,
83+ ] ,
7884 } ,
7985 {
8086 label : 'Chapter II: Introducing Loops' ,
@@ -84,8 +90,9 @@ export default defineConfig({
8490 { label : 'WAIT command' , slug : 'wait' } ,
8591 { label : 'WHILE Loop' , slug : 'while' } ,
8692 { label : 'Infinite Loop with WHILE TRUE' , slug : 'while-true' } ,
87- { label : 'Hands-on: Spawning a Vehicle' , slug : 'script-spawn-vehicle' } ,
88- ] ,
93+ { label : 'Hands-on: Spawning a Vehicle' , slug : 'script-spawn-vehicle' } ,
94+ { label : 'Quiz' , slug : 'quiz-ch02' } ,
95+ ] ,
8996 } ,
9097 {
9198 label : 'Chapter III: To Be Or Not To Be' ,
@@ -94,8 +101,9 @@ export default defineConfig({
94101 { label : 'Conditions' , slug : 'conditions' } ,
95102 { label : 'IF..ELSE' , slug : 'else' } ,
96103 { label : 'Negating Conditions' , slug : 'negating-conditions' } ,
97- { label : 'Multiple Conditions' , slug : 'multiple-conditions' } ,
98- ] ,
104+ { label : 'Multiple Conditions' , slug : 'multiple-conditions' } ,
105+ { label : 'Quiz' , slug : 'quiz-ch03' } ,
106+ ] ,
99107 } ,
100108 {
101109 label : "Chapter IV: Working with Text" ,
@@ -106,9 +114,9 @@ export default defineConfig({
106114 { label : 'Formatted Messages' , slug : 'formatted-messages' } ,
107115 { label : 'Text Draws' , slug : 'text-draws' } ,
108116 { label : 'Debug Messages' , slug : 'debug-messages' } ,
109- { label : 'String Variables' , slug : 'string-variables' } ,
110-
111- ]
117+ { label : 'String Variables' , slug : 'string-variables' } ,
118+ { label : 'Quiz' , slug : 'quiz-ch04' } ,
119+ ]
112120 } ,
113121 {
114122 label : "Chapter V: Advanced Loops" ,
@@ -118,8 +126,9 @@ export default defineConfig({
118126 { label : 'FOR Loop' , slug : 'for-loop' } ,
119127 { label : 'REPEAT..UNTIL Loop' , slug : 'repeat-until' } ,
120128 { label : 'Continue and Break' , slug : 'continue-break' } ,
121- { label : 'Hands-on: Bonus Counter' , slug : 'script-bonus-counter' } ,
122- ]
129+ { label : 'Hands-on: Bonus Counter' , slug : 'script-bonus-counter' } ,
130+ { label : 'Quiz' , slug : 'quiz-ch05' } ,
131+ ]
123132 } ,
124133 {
125134 label : "Chapter VI: One Name, Many Values" ,
@@ -128,8 +137,9 @@ export default defineConfig({
128137 { label : 'Arrays' , slug : 'arrays' } ,
129138 { label : 'Arrays and Loops' , slug : 'arrays-and-loops' } ,
130139 { label : 'Spread Operator' , slug : 'spread' } ,
131- { label : 'Hands-on: Checkpoint Hunt' , slug : 'script-checkpoint-hunt' } ,
132- ]
140+ { label : 'Hands-on: Checkpoint Hunt' , slug : 'script-checkpoint-hunt' } ,
141+ { label : 'Quiz' , slug : 'quiz-ch06' } ,
142+ ]
133143 } ,
134144 {
135145 label : "Chapter VII: Code Reuse with Functions" ,
@@ -140,8 +150,9 @@ export default defineConfig({
140150 { label : 'Returning Values' , slug : 'return-values' } ,
141151 { label : 'Logical Functions' , slug : 'logical-functions' } ,
142152 { label : 'Optional Return' , slug : 'optional-return' } ,
143- { label : 'Hands-on: Vehicle Roulette' , slug : 'script-vehicle-roulette' } ,
144- ]
153+ { label : 'Hands-on: Vehicle Roulette' , slug : 'script-vehicle-roulette' } ,
154+ { label : 'Quiz' , slug : 'quiz-ch07' } ,
155+ ]
145156 }
146157 ] ,
147158 } ) ,
0 commit comments