summaryrefslogtreecommitdiffstats
path: root/help3xsl/help2.js
Commit message (Collapse)AuthorAgeFilesLines
* Add better 404 errorOlivier Hallot2020-06-171-1/+4
| | | | | | | | | | | | | Missing help pages or links with bad HID were redirected to module entry page, masking the real issue in Help. This patch activated the 404 page and add HID information for debug and fix. Change-Id: I0d55f1c36d9a6c3fab0096d5e3cd171087729691 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96401 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix applicaiton color and h1 underline CSSOlivier Hallot2020-06-111-3/+6
| | | | | | | Change-Id: Ia8a18f4a8e1bd12c40a092528e68ec2f12846ac1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96162 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Refactor database help pageOlivier Hallot2020-05-161-1/+1
| | | | | | | | | | | | | | | | | Open a new module sdatabase and add one entry file. Later, and very slowly, move database help pages from shared/explorer/database/* to sdatabase/* Note: Each move will trigger translation so better move only a few files per translation cycle, not to overload translators. Translation memory should easy the traslation job. Change-Id: I8e2be9c9355b966775fb5dacc5d63b852be7187a Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94362 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Apply module brand color to Help pageOlivier Hallot2020-04-291-0/+27
| | | | | | | | | | | | | | Change page header and headings to module colors Module colors from branding wiki page https://wiki.documentfoundation.org/Marketing/Branding#Colors Based on ideas of Beatriz Fonseca (@beatorizu) betrizaf@gmail.com Change-Id: Ia855872185a9c5ff6bcf3c351cc78e57e5a7901c Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93100 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Don't hardcode version in links in online helpMike Kaganski2020-02-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | ... so that when current page URL is like https://help.libreoffice.org/latest/en-US/text/shared/05/new_help.html links from it will lead to other pages under 'latest', not to https://help.libreoffice.org/6.3/... The problem reason was that in online help, HTML referred to resources with relative URLs starting with version number, like 'href="6.3/media/navigation/favicon.ico"'. The links didn't include the version level in local help: 'href="media/navigation/favicon.ico"'. This was naturally accompanied by <base href="../../../../../"> (online) and '<base href="../../../../">' (local), coming from "tokenize" in help3xsl/online_transform.xsl. This unifies online help behaviour with that of local help. Change-Id: I486cbfbd680d52d00ef99ade9af5ecac2967c115 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87768 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix switch selection when embedded in other pagesOlivier Hallot2019-11-081-10/+11
| | | | | | | | | | | Emebed exerpts with switch tags were unable to perform the correct switch because of the use of the same id= in several places in the page. The new logic fixes that. Change-Id: I1e1084170e023c89f3c695c3d1c5a6c7deee7374 Reviewed-on: https://gerrit.libreoffice.org/82277 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Improve accessibility for modules and lang menusIlmari Lauhakangas2019-05-181-5/+11
| | | | | | | | | | | | | | | | | | | | 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>
* tdf#124245 Polyfills and fixes for IE11Ilmari Lauhakangas2019-03-271-9/+14
| | | | | | | | | | | | | | | | | | | | | 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>
* New approach to switch casesIlmari Lauhakangas2019-03-131-1/+15
| | | | | | | | | | | | | My previous JS patch broke the sys and appl switch behaviour. This patch removes the inline function calls from online_transform.xsl. Instead, help2.js now finds the relevant spans and calls the functions for them. Change-Id: I45d5b75bdb70a7c18eaa0b215beb57e3e1b6719a Reviewed-on: https://gerrit.libreoffice.org/69137 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Show module & lang navigation on mobileIlmari Lauhakangas2019-03-101-2/+40
| | | | | | | | | | | | | | | | | | | | Module & languages menus were not shown on screen widths < 960. Changed module & languages menu background to span the whole width, when on mobile. An arrow function was used in help2.js, which means it was broken on IE. Moved all src .js files to head and used defer for all. Moved inline Piwik & system info JS into help2.js and added a test for onlineness targeting the first meta element in the body. Change-Id: Ic1a928b53ce9029f9f655117977cd511b7e3246d Reviewed-on: https://gerrit.libreoffice.org/69005 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Generate the modules dropdown content on demand too.Jan Holesovsky2018-08-161-0/+17
| | | | | | | | | | Change-Id: Ibcbd8faac4f31d41398d8ae98314d83690136ab6 Reviewed-on: https://gerrit.libreoffice.org/59152 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-on: https://gerrit.libreoffice.org/59153 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Translate the language names in JS.Jan Holesovsky2018-08-161-1/+1
| | | | | | | Change-Id: I7185a7d0981abbacef4a152ee6ac5352ebe970cd Reviewed-on: https://gerrit.libreoffice.org/59150 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Don't embed links to all the languages into every page.Jan Holesovsky2018-08-161-0/+12
| | | | | | | Change-Id: I31f140919a18db55ef5afab9f229afa7eed3e36c Reviewed-on: https://gerrit.libreoffice.org/59149 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Limit the online help only to the built languages.Jan Holesovsky2018-08-161-0/+17
| | | | | | | Change-Id: Ib81dbd9a4047d9bb63761a43ef0b183a450b03f1 Reviewed-on: https://gerrit.libreoffice.org/59047 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* Fix index in sidebarOlivier Hallot2018-04-171-0/+123
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>