diff --git a/assets/js/just-the-docs.js b/assets/js/just-the-docs.js index ff9b0413a5bc65f5e71c12aca7f4fc005c0458df..dd7056c5312c48ec6dbde111e3f73ff3a1d88ebb 100644 --- a/assets/js/just-the-docs.js +++ b/assets/js/just-the-docs.js @@ -52,7 +52,7 @@ function initSearch() { for (var i in data) { this.add({ - id: data[i].id, + id: i, title: data[i].title, content: data[i].content, url: data[i].url diff --git a/assets/js/search-data.json b/assets/js/search-data.json index f0ec51f22424c52706118145dd784d61c05b6f73..6f728cda154c8940884e25104dcecdd3955e6fd2 100644 --- a/assets/js/search-data.json +++ b/assets/js/search-data.json @@ -2,7 +2,6 @@ --- { {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": { - "id": "{{ forloop.index0 }}", "title": "{{ page.title | replace: '&', '&' }}", "content": "{{ page.content | markdownify | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '</ul', ' . </ul' | replace: '</tr', ' . </tr' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | strip_html | escape_once | remove: 'Table of contents' | remove: '```' | remove: '---' | replace: '\', ' ' | replace: ' . . . ', ' . ' | replace: ' . . ', ' . ' | normalize_whitespace }}", "url": "{{ page.url | absolute_url }}",