From 96653f6d367bea0fe531e8bfe13b9713e5f83c28 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sun, 19 May 2019 20:08:31 +0200 Subject: [PATCH] Simplified search-data.json --- assets/js/just-the-docs.js | 2 +- assets/js/search-data.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/just-the-docs.js b/assets/js/just-the-docs.js index ff9b041..dd7056c 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 f0ec51f..6f728cd 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: '