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
|
---
layout: null
---
{% assign first = true %}
[
{% for gcode in site.gcode %}
{% if gcode.codes[0] %}
{% unless first %},{% endunless %}{
"title":{{ gcode.codes | join: ", " | append: " : " | append: gcode.title | jsonify }},
"content":{{ gcode.content | indexify | jsonify }},
"excerpt":"{{ gcode.brief }}",
"link":"{{ site.baseurl }}{{ gcode.url }}",
{% if gcode.experimental %}
"exp":true,
{% endif %}
{% if gcode.since %}
"since":{{ gcode.since | jsonify }},
{% endif %}
{% if gcode.group %}
"group":{{ gcode.group | jsonify }},
{% endif %}
{% if gcode.requires %}
"requires":{{ gcode.requires | jsonify }},
{% endif %}
"class":"gcode"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for feature in site.features %}
{% if feature.title != null and feature.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ feature.title | jsonify }},
"content":{{ feature.content | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ feature.url | replace: 'index.html','' }}",
"excerpt":{{ feature.description | jsonify }},
"class":"feat"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for hw in site.hardware %}
{% if hw.title != null and hw.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ hw.title | jsonify }},
"content":{{ hw.content | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ hw.url | replace: 'index.html','' }}",
"excerpt":{{ hw.description | jsonify }},
"class":"hardware"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for inst in site.basics %}
{% if inst.title != null and inst.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ inst.title | jsonify }},
"content":{{ inst.content | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ inst.url | replace: 'index.html','' }}",
"excerpt":{{ inst.description | jsonify }},
"class":"basics"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for dev in site.development %}
{% if dev.title != null and dev.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ dev.title | jsonify }},
"content":{{ dev.content | markdownify | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ dev.url | replace: 'index.html','' }}",
"excerpt":{{ dev.description | jsonify }},
"class":"devel"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for cnf in site.configuration %}
{% if cnf.title != null and cnf.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ cnf.title | jsonify }},
"content":{{ cnf.content | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ cnf.url | replace: 'index.html','' }}",
"excerpt":{{ cnf.description | jsonify }},
"class":"config"
}
{% assign first = false %}
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% if page.title != null and page.title != empty and item.search_omit != empty %}
{% unless first %},{% endunless %}{
"title":{{ page.title | jsonify }},
"content":{{ page.content | indexify | jsonify }},
"link":"{{ site.baseurl }}{{ page.url | replace: 'index.html','' }}",
"excerpt":{{ page.description | jsonify }},
"class":"page"
}
{% assign first = false %}
{% endif %}
{% endfor %}
]
|