summaryrefslogtreecommitdiff
path: root/Package_html_static.mk
AgeCommit message (Collapse)Author
2021-09-26Switch from Fuzzysort to FlexSearchIlmari Lauhakangas
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>
2019-05-18Improve accessibility for modules and lang menusIlmari Lauhakangas
Ever since the contents of the modules and lang menus started being populated upon click, the flow for screenreader users has been potentially confusing. This patch introduces a11y-toggle into the mix: https://github.com/edenspiekermann/a11y-toggle Checkboxes were changed into buttons. This hopefully makes it clear we want the user to click them. The contents tree still uses the checkbox hack, because its items are populated upon page load. Change-Id: I3482bea0c8669f96794498fc37d9d18fe3f829d5 Reviewed-on: https://gerrit.libreoffice.org/72467 Tested-by: Jenkins Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-27tdf#124245 Polyfills and fixes for IE11Ilmari Lauhakangas
The polyfills can be removed after we drop IE11 support. Other IE11 fixes: Change from document.URL to window.location.pathname because otherwise we get local Windows paths with backward slashes. Use clear: left; for google-donation element so it doesn't float on top of other elements. Don't use defer to load fuzzysort.js and prism.js. Change-Id: I6c0143eab555c8b1fbdbde8e749a24baed2f69c8 Reviewed-on: https://gerrit.libreoffice.org/69549 Tested-by: Jenkins Reviewed-by: himajin100000 <himajin100000@gmail.com> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-11-29tdf#115663 Syntax highlight in BASIC code examplesOlivier Hallot
Use prism.js to highlight BASIC code in help pages See README.prism.js.txt for details added normalize-whitespaces plugin to remove extra 1st line cleaned some useless css class Change-Id: I6dde4d217a29f485199ced462b896ee1b500fba0 Reviewed-on: https://gerrit.libreoffice.org/64252 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-11-09tdf#119415 change from fuse.js to fuzzysort.jsIlmari Lauhakangas
Tied the index listing to the current module. Fuzzysort.js is MIT licensed. Change-Id: I5d95cc1870a1856089217846ed0af572abc882d7 Reviewed-on: https://gerrit.libreoffice.org/63203 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-07-10tdf#118571 avoid MSI problems with double / in Package_html*.mkMichael Stahl
MSI helpfully converts "help//fuse.js" into "help/help/fuse.js", which isn't obvious. Or helpful, for that matter. Actually it might be the Perl installer code that messes it up, can't quickly check whose fault it is... Change-Id: I69e9849b533a7fbe54310edb99bda3a879f4f031
2018-04-20Clean up Package_html_static.mkStephan Bergmann
For ONLINE_HELP, apparently the source helpcontent2/help3xsl/index.html goes to instdir/help/index.html while the source helpcontent2/help3xsl/index2.html goes to instdir/help/$PRODUCTVERSION/index.html. And for !ONLINE_HELP, apparently both source files (index.html and index2.html) went to instdir/help/index.html, and the second one (index2.html) apparently happened to win. Cleaned that up, so that only the source helpcontent2/help3xsl/index2.html goes to instdir/help/index.html. Whether that's all as intended, or some of that is junk, I don't know. (Also sorted list of files lexicographically, for easier comparison with `ls` output.) Change-Id: I36f645e0de99a03b6e76f6c29fc18aa80e48a420 Reviewed-on: https://gerrit.libreoffice.org/53190 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-04-17Fix index in sidebarOlivier Hallot
The last commit of online_transform.xsl instrpduced a bug in index search on the left. This one fixes it. Change-Id: I8055389a324d1fc5fde90ac2b76ff6f0a4a42493 Reviewed-on: https://gerrit.libreoffice.org/53011 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-03-14tdf#116296 remove produt version from help pathOlivier Hallot
Part two. Part 1 is in sfx2 module Remove product version from offline help path but keep in online help. Product version is kept for online because a help server can have more than one helponline version. Change-Id: I1d4ba12a7d6472defd4210c79349e35ccaf32d8d Reviewed-on: https://gerrit.libreoffice.org/51126 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-30Switched from list.js to fuse.js and paginathing.jsIlmari Lauhakangas
Fuse.js has Apache License 2.0 and paginathing.js has Expat License (aka MIT). Paginathing is a paginating utility and it was originally jQuery, but due to performance concerns I converted it to pure JavaScript and rather brutally adapted it to our needs. Fuse.js gives us fuzzy search with multiple strings. The settings can be refined, if needed. Settings can be easily tested with the live demo: http://fusejs.io/ Change-Id: I1cf6a6f7d06adbcac95760db90187ee26be8e908 Reviewed-on: https://gerrit.libreoffice.org/48906 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-23Use list.js for Index listing and searchIlmari Lauhakangas
List.js - http://listjs.com/ - allows us to paginate the results so the height does not get out of hand. Fuzzy search would be cool: http://listjs.com/docs/fuzzysearch/ ...but it gives too big of a perf hit with our 5700 items. Might try to bribe the creator to look into perf. Thanks a lot to David Tardon for the makefile solution and to Christian Lohmaier for playing a rubber duck. Change-Id: I359eed541470ccaa309b0b6ff5d809a796d9befd Reviewed-on: https://gerrit.libreoffice.org/48335 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-07move generation of HTML help to gbuildDavid Tardon
Change-Id: Ic38ee7b9a3ee4a45bede9d494f717d833e53d69f