forked from amazingfate/help
This is the helpcontent2/ part of the patch. Add xapian-omega search to online Help. The patch replaces Google custom search with xapian-omega search. A new build key is introduced. --with-omindex=server : Localizes and adds the xapian result page template, adds the xapian form to each Help page. --with-omindex=noxap : do not localize the result template and do not add a form in the Help page. --with-omindex= will force Online Help build. Default is noxap NOTES: - xapian-omega databases are built in the server. - searches returns results only on localized Help pages, avoiding same resulis in many languages. TODO: - Tweak the xapian-omega result page CSS and markup. Change-Id: I3dc2b79c4111f61fd5fea01b1f8c95bfacab1e8f Reviewed-on: https://gerrit.libreoffice.org/79366 Tested-by: Jenkins Reviewed-by: Guilhem Moulin <guilhem@libreoffice.org> Tested-by: Guilhem Moulin <guilhem@libreoffice.org>
33 lines
1.1 KiB
Makefile
33 lines
1.1 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_AllLangPackage_AllLangPackage,helpcontent2_html_lang,$(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)))
|
|
|
|
$(eval $(call gb_AllLangPackage_use_customtarget,helpcontent2_html_lang,helpcontent2/help3xsl))
|
|
|
|
$(eval $(call gb_AllLangPackage_add_files,helpcontent2_html_lang,$(LIBO_SHARE_HELP_FOLDER)$(if $(HELP_ONLINE),/$(PRODUCTVERSION)),\
|
|
$(foreach lang,$(gb_HELP_LANGS),\
|
|
$(lang)/bookmarks.js \
|
|
$(lang)/contents.js \
|
|
$(lang)/langnames.js \
|
|
) \
|
|
))
|
|
|
|
ifeq ($(HELP_OMINDEX_PAGE),TRUE)
|
|
|
|
$(eval $(call gb_AllLangPackage_add_files,helpcontent2_html_lang,$(LIBO_SHARE_HELP_FOLDER)$(if $(HELP_ONLINE),/$(PRODUCTVERSION)),\
|
|
$(foreach lang,$(gb_HELP_LANGS),\
|
|
$(lang)/xap_tpl \
|
|
) \
|
|
))
|
|
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|