From b8b8e06ec37e032ee5896619fb8ec34dca913f23 Mon Sep 17 00:00:00 2001 From: Patman64 Date: Sat, 16 Aug 2014 01:09:36 -0400 Subject: [PATCH] Fix links in search results. --- docs/ElunaDoc/templates/search-index.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/docs/ElunaDoc/templates/search-index.js b/docs/ElunaDoc/templates/search-index.js index 6fb1cdc..965ac59 100644 --- a/docs/ElunaDoc/templates/search-index.js +++ b/docs/ElunaDoc/templates/search-index.js @@ -1,17 +1,15 @@ var searchIndex = {}; -//{%- for class in classes %} +{% for class in classes -%} searchIndex["{{ class.name }}"] = { "items": [ - [0, "", "{{ class.name }}", "{{ class.short_description|replace('\n', ' ')|replace('\"', '"') }}"], - //{%- for method in class.methods %} - [3, "{{ method.name }}", "", "{{ method.short_description|replace('\n', ' ')|replace('\"', '"') }}"], - //{%- endfor %} + [0, "", "{{ class.name }}", "{{ class.short_description|replace('\n', ' ')|replace('\"', '"')|parse_links|replace('"', '\\"') }}"], + {%- for method in class.methods %} + [3, "{{ method.name }}", "", "{{ method.short_description|replace('\n', ' ')|replace('\"', '"')|parse_links|replace('"', '\\"') }}"], + {%- endfor %} ], - "paths": [ - - ] + "paths": [] }; -//{%- endfor %} +{%- endfor %} initSearch(searchIndex); \ No newline at end of file