forked from amazingfate/help
FlexSearch has the best performance of JS search libs at the moment. It doesn't have fuzzy search yet, but maybe our users don't even want the feature. RFE is https://github.com/nextapps-de/flexsearch/issues/118 flexsearch.debug.js is used because it is the only unminified version and we can't use minified files in the source code as they are equivalent to binary files (close source). There doesn't seem to be anything that would make it a bad idea to use the debug version in production, only a couple of edge case checks that print warnings to console. This commit also makes automatic filtering work when the input field already has a string upon page load (functions were called in the wrong order). Change-Id: I5055f7f7f99cad92dfa3a544e5314eb85a1faced Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122566 Tested-by: Jenkins Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
# #
|
|
# This file is part of the LibreOffice project.
|
|
# #
|
|
# # This Source Code Form is subject to the terms of the Mozilla Public
|
|
# # License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# # file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
# #
|
|
#
|
|
$(eval $(call gb_Package_Package,helpcontent2_html_static,$(SRCDIR)/helpcontent2/help3xsl))
|
|
|
|
$(eval $(call gb_Package_add_files,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOLDER),\
|
|
help.html \
|
|
$(if $(HELP_ONLINE),index.html) \
|
|
))
|
|
|
|
$(eval $(call gb_Package_add_file,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOLDER)$(if $(HELP_ONLINE),/$(PRODUCTVERSION))/index.html,index2.html))
|
|
|
|
$(eval $(call gb_Package_add_files,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOLDER)$(if $(HELP_ONLINE),/$(PRODUCTVERSION)),\
|
|
a11y-toggle.js \
|
|
default.css \
|
|
flexsearch.debug.js \
|
|
help.js \
|
|
help2.js \
|
|
normalize.css \
|
|
paginathing.js \
|
|
polyfills.js \
|
|
prism.js \
|
|
prism.css \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|