-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-example.yml
168 lines (150 loc) · 4.83 KB
/
config-example.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Default locale for UI strings
# Available UI languages: en, fr, de, sv
locale: "en"
# Available themes: bulma, chota, dsfr
# You can set the theme on the command line with
# clj -X:set :theme bulma
theme: "bulma"
# Customize UI strings
ui-strings:
# copy-to-clipboard: "Copy in the clipboard"
# mail-to-message: "Send by email"
# mail-subject: "Results"
# mail-body: "Hi,\n%s\nThanks."
# redo: "Redo"
# ok: "Okay"
# contact-intro: "Contact: "
# toggle-summary-style: "Toggle summary style"
# attention: "Attention"
# Website header
header:
title: "Here is my title."
subtitle: "A subtitle here, possibly with _markdown_ formatting."
# Website footer
footer:
text: "Some text here, possibly with **markdown** formatting."
contact: "[email protected]"
# Allow users to send you emails with the summary?
mail-to: "[email protected]"
# Display summary when done?
display-summary: true
# Display score information?
display-score: true
# Display each score?
# Mostly useful for debugging
display-score-details: false
# Display the score with the highest value?
# Only when :as-top-result-display is set for each score
display-score-top-result: false
# In a branch of the tree, should the target node be set depending on
# the updated value of conditional-score-output?
conditional-navigation: false
# Some text message to always display after the score results
display-unconditionally: false
# Set initial variables to register scores.
score-variables:
# "score-1" is a user-defined string
score-1:
# What to display when displaying score details:
display: "Score for 1"
# Initial value for score-1:
value: 0
# When you when the score message to use percent:
as-percent: true
# Max is needed for displaying percent:
max: 3
# Only needed when display-score-top-result is true
as-top-result-display: "1 wins :)"
# Set conditional output depending on scores.
conditional-score-output:
# Cases are tested one by one. The first case that matches is the
# main score. When case have a priority value, the matching case
# with the highest priority is the main score.
cas-1: # free-form condition name
# priority: 2 # Use priority to matching order
color: "is-success" # Bulma-based class names for the UI
# notification. Available values for colors are: is-success,
# is-info, is-warning, is-danger.
message: "Here is the score 1: %score-1%"
# In score-variables, when :max is set and :as-percent is true,
# then the score will be shown as a percentage.
condition-1:
score-1: 2 # This condition is met when score-1 is >= 2
cas-2:
color: "is-warning"
message: "Here is the score 1: %score-1%"
condition-1:
score-1: 1 # This condition is met when score-1 is >= 1
cas-3:
color: "is-danger"
message: "Here is the score 1: %score-1%"
condition-1:
score-1: 0 # This condition is met when score-1 is >= 0
# Mandatory configuration option
tree:
- node: "0"
text: "A title for the default page"
home-page: true
no-summary: true
help: "Some introductory text here."
choices:
- answer: "Start now"
goto: "1"
color: "is-info"
- node: "1"
progress: "[0 3]"
text: "Is it the first question?"
help: "Some **help text** here for the first question. Markdown formatting accepted."
start-page: true
choices:
- answer: "Yes"
summary: "Yes, this is the first question."
explain: "Some explanation here."
score:
score-1:
value: 1
goto: "2"
color: "is-success"
- answer: "No"
summary: "No, this is not the first question."
color: "is-danger"
goto: "end"
- node: "2"
progress: "[1 3]"
text: "Is it the second question?"
help: "Some help text here for the second question."
choices:
- answer: "Yes"
summary: "Yes, this is the second question!"
score:
score-1:
value: 1
goto: "3"
color: "is-success"
- answer: "Maybe"
summary: "This is the second question, maybe."
goto: "3"
color: "is-info"
- answer: "No"
summary: "No, this is not the second question."
color: "is-danger"
goto: "end"
- node: "3"
progress: "[2 3]"
text: "Is it the _third_ question?"
choices:
- answer: "Yes"
summary: ["Yes, this is the third question...", "This will end soon, I promise."]
goto: "end"
color: "is-success"
score:
score-1:
value: 1
- answer: "No"
summary: "No, this is not the third question."
color: "is-danger"
goto: "end"
- node: "end"
progress: "[3 3]"
text: "This is the end."
done: true