forked from ROBOTIS-GIT/emanual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch_index.json
11 lines (11 loc) · 1.03 KB
/
search_index.json
1
2
3
4
5
6
7
8
9
10
11
{
{% assign pages=site.html_pages | sort: 'permalink' %}
{% for page in pages %}
{% if page.lang == 'en' %}
{% assign textString = {{page.content | strip_html | strip_newlines | remove: "}" | replace: "." , " " | replace: "," , " " | replace: "/" , " " | replace: "`" , " " | replace: "'" , " " | replace: "=" , " " | replace: "*" , " " | replace: "!" , " " | replace: "?" , " " | replace: "#" , " " | replace: "$" , " " | replace: "&" , " " | replace: "+" , " " | replace: "^" , " " | replace: "|" , " " | replace: "~" , " " | replace: "<" , " " | replace: ">" , " " | replace: "(" , " " | replace: ")" , " " | replace: "[" , " " | replace: "]" , " " }} %}
"{{ page.url | slugify }}": {
"title": "{{ page.sidebar.title | xml_escape }}",
"content" : "{{ textString | remove: " " | remove: "\" | remove: ":" | remove: ";" | remove: "-" | remove: "{" | remove: '"' | remove: '”' | remove: '“'}}",
"url": "{{ page.permalink | absolute_url }}"
} {% unless forloop.last %},{% endunless %}{% endif %}{% endfor %}
}