Skip to content

Commit c22000f

Browse files
committed
Added API reference to website searches
1 parent 1b4ac92 commit c22000f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/search.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@
88
{
99
"title": "{{ p.title }}",
1010
"url": "{{ p.url | prepend: site.baseurl }}"
11-
1211
},
1312
{% endfor %}
1413
{% endfor %}
15-
14+
{% for section in site.data.api %}
15+
{% for item in section.api %}
16+
{% assign item_url = item | prepend:"/api/" | append:"/" %}
17+
{% assign p = site.api | where:"url", item_url | first %}
18+
{
19+
"title": "{{ p.title }}",
20+
"url": "{{ p.url | prepend: site.baseurl }}"
21+
},
22+
{% endfor %}
23+
{% endfor %}
1624
{% for post in site.posts %}
1725
{
1826
"title": "{{ post.title | escape }}",

0 commit comments

Comments
 (0)