summaryrefslogtreecommitdiff
path: root/help3xsl/help.js
AgeCommit message (Collapse)Author
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-04-16tdf#116150 Review XHP <switch> style transformOlivier Hallot
implement <switch> and <switchinline> with HTML and Javascript, for 'sys' and 'appl'. Change-Id: I6056e787146bb92617c2ce639acab16d16d6f765 Reviewed-on: https://gerrit.libreoffice.org/52929 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-03-22Add vnd.oasis.opendocument.* objects in new helpOlivier Hallot
Add capability to link ODF files in help page as objects Files are stored in media/files/ folder Example in func_imsin.xhp Change-Id: I4704e3cc235fd31251f3a4dba403e62f2ef1de0e Reviewed-on: https://gerrit.libreoffice.org/51721 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-03-03tdf#116150 Fix logic for case/caseinline with 'sys'Olivier Hallot
Change-Id: I5c9cb270fa89ea5281355fc80be2a155b9d9ef9e Reviewed-on: https://gerrit.libreoffice.org/50650 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-09Tweaked contents expansionIlmari Lauhakangas
Stopped excluding main items. Highlighted current item. Harmonised the help.js indentation. Change-Id: I6b8f22940d077d008662a387071a5d5db04409f7 Reviewed-on: https://gerrit.libreoffice.org/49488 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-08tdf#115255 and auto-expand contents per subitemIlmari Lauhakangas
JavaScript stuff moved from online_transform.xsl to help.js. Simplified bookmarks markup. Span elements with class "input" and length more than 3 characters can be copied to clipboard by mouse click. Bubli's feature request for auto-expanding contents per subitem is also implemented. Logic for adding headings to index list was reimplemented. Change-Id: I87b6f189a040a73a1ab9dda1ec9cd790b06da202 Reviewed-on: https://gerrit.libreoffice.org/49421 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>
2018-01-05Fix typosAndrea Gelmini
Change-Id: Ie3e0490e8ca41f9d4f20b834a3d5865c0fb18ad7 Reviewed-on: https://gerrit.libreoffice.org/47480 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-05Switched to a sidebar layout. Art direction by Andreas KainzIlmari Lauhakangas
Markup and JS got simpler, layout got more robust. Change-Id: Ia74489038e7d11b632ea2b6ca6efe0d90dfe5181 Reviewed-on: https://gerrit.libreoffice.org/47441 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-03Fix typosAndrea Gelmini
Change-Id: I7ef82f8d2896f3687be1aacfd08b8cf0d0d6e105 Reviewed-on: https://gerrit.libreoffice.org/47273 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-12-29tdf#114709, tdf#112758, tdf#112757Ilmari Lauhakangas
Lots of changes and tweaks. Header and footer now span 100% width even on desktop. Font sizes were increased and content area made narrower. We now have two separate language menus so the menu is always visible on mobile. Google search moved out of the accordion panel. Accordion panel colours made darker. On desktop, expanded accordion panels overlap content. Change-Id: I976a67b1ca0cb2d21f0569da8d1fefd2b589d7d3 Reviewed-on: https://gerrit.libreoffice.org/47139 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-16Fixed remaining index search bugsGabriel Chiquini
Show list only after typing 3 or more characters Hide labels when module results is empty Change-Id: Ifb7a255b6ac627a0448878df104e837d96074fce Reviewed-on: https://gerrit.libreoffice.org/46134 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-29Fixed UX bugsGabriel Chiquini
Clicking on tabs (Contents, Field, Index) now close the other ones Set focus into seach field clicking in those tabs Change-Id: I4b569aea86d4c5c441ce89dfa76f66844f0ebbc4 Reviewed-on: https://gerrit.libreoffice.org/44902 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-10-03tdf#112370 Add case-insensitive support to index searchgabrielchiquini
Change-Id: I460f853f4abd6bf8124f2b6d01d5b771fcc6569c Reviewed-on: https://gerrit.libreoffice.org/42984 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-09-02Add localization to helponline UIOlivier Hallot
* Add support for localization in helponline UI. + translate 4 words + prepare for focused google search * Tweak the index search, open search index for all modules. Change-Id: Id7ad4fd63fe1f9d1334fb65febdee6f60c24361a Reviewed-on: https://gerrit.libreoffice.org/41839 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-08-02tdf#97745 Handle offline browser helpOlivier Hallot
* Rename index.html to LOHelp.html. index.html is a bad name, too generic. LOHelp.html is invoked by LibreOffice and is not a popular file name. * Clean the XSLT transform, add suport for local help. * reposition bookmark2file.js in the target tree. * remove obsolete files * page tree now capable to be opened by file:// protocol, passing 'online' parameter and folder address to the bash script. Change-Id: I2cf9f69de7896bd74074745993ef033bef5c3503 Reviewed-on: https://gerrit.libreoffice.org/40661 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-07-23tdf#97745 code cleanupOlivier Hallot
* Add debug param, to display page info in the bottom &Debug={0|1} Change-Id: I809548e5d59d0a55b258ca0ec69811efec51df67 Reviewed-on: https://gerrit.libreoffice.org/40341 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-07-11Help-in-browser (vii) more improvementsOlivier Hallot
see it in http://helponline.libreoffice.org Added mos keywords from schema.org New, responsive page design Change-Id: I9df963c1a962c0fbb5c2926d8066b31cd20d485b Reviewed-on: https://gerrit.libreoffice.org/39822 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-26Help-in-browser (v)Olivier Hallot
* Add piwik analysis * handle SHARED module in search Change-Id: I7c3c653d5e1211eed6c45b521fc35a9dc52ed21e Reviewed-on: https://gerrit.libreoffice.org/39251 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-25Help-in-browser: several improvementsOlivier Hallot
* tabs for Contents/Index/Search * product version (6.0, 5.3, 5.2, etc...) * capable to receive URL from LibreOffice help call (need to change help url in sfx2/: protocol://<host>/index.html?<params> Change-Id: I2244336ea47cdb923884ae97b9f4a586d85ec706 Reviewed-on: https://gerrit.libreoffice.org/39227 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-11-07Move the JavaScript pieces directly to 'source'.Jan Holesovsky
This avoids problems with tryint to access stuff via '..'.
2016-11-07Reformat for readability + add modelines.Jan Holesovsky
2016-10-25Mozilla Public License added in edited filesFabio Biocchetti
Mozilla Public License added in headers Change-Id: I803d84fbff43913198929a56b57c668d14b6a9eb Reviewed-on: https://gerrit.libreoffice.org/30269 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-10-24Fix comments in script and JavaScript refactor.Fabio Biocchetti
Comments correction in shell script Introduced js debouncer for search bar xml-stylesheet tag removed Introduced parameter passing through pages Links in XHP pages now work with js Minor adjustments Change-Id: Ibf5f7a74c3249fa6f1ff4d3037fe821797e88d1d Reviewed-on: https://gerrit.libreoffice.org/30231 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-10-21tdf#97745 Help pages in browser (WIP)Fabio Bioccetti
Work in progress: Search index Javascript xhp server patch2: rename jj.js to help.js updated index.html accordingly Change-Id: Idece5ea25b0906b3fbdfd1f401e8dcfdfa4bd947 Reviewed-on: https://gerrit.libreoffice.org/30143 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>