X-Git-Url: http://nitlanguage.org diff --git a/src/doc/doc_phases/doc_indexing.nit b/src/doc/doc_phases/doc_indexing.nit index 1e74138..5a2a336 100644 --- a/src/doc/doc_phases/doc_indexing.nit +++ b/src/doc/doc_phases/doc_indexing.nit @@ -15,7 +15,7 @@ # Manage indexing of Nit model for Nitdoc QuickSearch. module doc_indexing -import doc_extract +import doc_base import html_templates::html_model # FIXME maybe this phase should depend on `html_render` private import json::static @@ -64,10 +64,10 @@ class IndexingPhase # Render the index content. fun render: Template do var tpl = new Template - var buffer = new RopeBuffer + var buffer = new Buffer tpl.add buffer buffer.append "var nitdocQuickSearchRawList=" - table.append_json buffer + buffer.append table.to_json buffer.append ";" return tpl end @@ -95,14 +95,11 @@ end # A QuickSearch result. private class QuickSearchResult super Jsonable + serialize # The text of the link. var txt: String # The destination of the link. var url: String - - redef fun to_json do - return "\{\"txt\":{txt.to_json},\"url\":{url.to_json}\}" - end end