-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch.json
29 lines (29 loc) · 1.18 KB
/
search.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
---
layout: null
---
[
{% for page in site.pages %}
{
{% if page.title == "API Docs" %}
"heading" : "{{ page.heading | escape }}",
"title" : "{{ page.title }}",
"description" : "{{ page.description }}",
"url" : "{{ site.baseurl }}{{ page.url }}?elementId={{ page.elementId}}",
"tags": "{{ page.tags | join: ', ' }}"
{% elsif page.title == "Platform Documentation" %}
"heading" : "{{ page.heading | escape }}",
"title" : "{{ page.title }}",
"description" : "{{ page.description }}",
"url" : "{{ site.baseurl }}{{ page.url }}?resource={{ page.platform}}",
"tags": "{{ page.tags | join: ', ' }}"
{% else %}
"heading" : "{{ page.heading | escape }}",
"title" : "{{ page.title }}",
"description" : "{{ page.description }}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"tags": "{{ page.tags | join: ', ' }}",
"content" : "{{ page.content | strip_html | strip_newlines }}"
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]