forked from illinois-cs241/illinois-cs241.github.io
/
search_data.json
32 lines (31 loc) · 1.16 KB
/
search_data.json
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
---
layout: null
---
[
{% for post in site.docs %}
{% assign split_url = post.url | split: '/' %}
{% assign name_no_md = split_url[-1] | replace: '.html','' %}
{% assign assign_data = site.assign_by_url[name_no_md] %}
{% if assign_data.nil? or assign_data['visible'] %}
{
"url_slug": "{{ post.url | slugify }}",
"url": " {{ post.url | xml_escape }}",
"learning_objectives": [{% for lo in post.learning_objectives %}"{{lo | escape}}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"wikibook": [{% for lo in post.wikibook %}"{{lo | escape}}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"title": "{{ post.title | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify}}
}{% if forloop.last %}
{% if site.coursebook %}
,
{% endif %}
{% else %}
,
{% endif %}
{% endif %}
{% endfor %}
{% for post in site.coursebook %}{
"title": "{{ post.title | xml_escape }}",
"url": " {{ post.url | xml_escape }}",
"content": {{post.content | strip_html | strip_newlines | jsonify}}
}{% unless forloop.last %},{% endunless %}{% endfor %}
]