summaryrefslogtreecommitdiffstats
path: root/help3xsl
Commit message (Collapse)AuthorAgeFilesLines
* Improve web help headerIlmari Lauhakangas2020-06-072-45/+58
| | | | | | | | | | | | Header with symbol, logo and navigation dropdowns now uses grid layout when screen width is desktop. Change-Id: I00612ebe04110b3608d9534c0ebdb23d5b788c54 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95668 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> (cherry picked from commit 24901fb947d0d7adeaefbbddd8d2bad89e49e378) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95743
* Update prism.js to latest versionOlivier Hallot2020-06-034-376/+711
| | | | | | | | | | | | | | Update prism.js and companion css to latest version Fixes the Currency and Type keyword highlight Fixes line numbering interference with a11y-toggle.js Change-Id: Ibbb5c95790e1366f0a1dbc497d8741e69a0a3957 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95173 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> (cherry picked from commit 0c721f4ecf55911d125e33e3afea534d1ffe42b2) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95129 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
* tdf#126813 Fix scrolling of targeted referencesOlivier Hallot2020-05-261-0/+3
| | | | | | | Change-Id: Ic7ce644cc0a5053905e980952ad31767fa87125c Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94885 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Remove unused CSS classOlivier Hallot2020-05-261-10/+0
| | | | | | | Change-Id: I9db4df3062c411570a77686ec2b4fe3124f71539 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94879 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* langnames.js loaded too lateIlmari Lauhakangas2020-05-192-2/+2
| | | | | | | | | | help2.js depends on it being loaded, so lang dropdown is empty on mobile. Hopefully this fixes it. Change-Id: Ic331df0e6e34a2c50b7bd343c877685d4e84d648 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94334 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Refactor database help pageOlivier Hallot2020-05-162-2/+2
| | | | | | | | | | | | | | | | | 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>
* CSS: Change selection colorAdolfo Jayme Barrientos2020-05-151-1/+1
| | | | | | It doesn’t play nice anymore since 4d6b5e5f74c50cc440a46fada8fa89ad2f946749 Change-Id: Ib897702ad32915164e277e092103c295bba41366
* remove *.google.com and *.googleapis.com from Content-Security-PolicyAndras Timar2020-05-153-3/+3
| | | | | | | | | These are obsolete, since search is based on xapian-omega not on google search Change-Id: I1858a3118f6b4778266c4a3d2a6559866ce8cb09 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94257 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* tdf#128519 Icon replacement table in build timeOlivier Hallot2020-05-131-1/+1
| | | | | | | | | | | As explained in tdf#128519, command <include> in XLST must have its href= hardcoded. Thus, copy online_transform.xsl and create links.txtx.xsl in workdir/ Change-Id: I979fd58f16a51ae6f57fc6f87349700eafdefbd7 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94082 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* tdf#128519 Automate icon repl't table for Help bldOlivier Hallot2020-05-112-2052/+1
| | | | | | | | | | | | The solution here is to create links.txt.xsl in the helpcontent2/helpers/ folder at build time because the <include> directive in XSLT of online_transform.xsl must be hardcoded (compile time) and core/workdir/ is not. Change-Id: I8c4c8d0b8aed58c10a95c5d42bbd1b8acdb39614 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93436 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Help CSS: allow title in header to be widerIlmari Lauhakangas2020-05-012-10/+24
| | | | | | | | | | Added a column and let the title section to grow into it. Also removed the hardcoded size from the Xapian search input. Change-Id: Id391264a17556a35d54b705621deb9bdecc16af2 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93278 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update icon replacement tableOlivier Hallot2020-04-291-16/+47
| | | | | | | Change-Id: I0781dace93589b6ef202cc697e457a065496163b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93155 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Apply module brand color to Help pageOlivier Hallot2020-04-292-2/+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>
* Update icon replacement table for HelpOlivier Hallot2020-03-171-11/+3
| | | | | | | Change-Id: I8295bda6fcb041811b73186a6a64346f4d374ea7 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/90574 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Helponline: Make that image shadow look not tackyAdolfo Jayme Barrientos2020-03-121-3/+3
| | | | Change-Id: I7e0b370ad883e787a8c7b7970d8d96653e577f8e
* Reorganise and refactor stuff in help.js for readabilityIlmari Lauhakangas2020-03-051-55/+57
| | | | | | | Change-Id: Ife1b412350be5ac046736312ff9216273eff281b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89973 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix links in xapian results pageOlivier Hallot2020-02-271-21/+20
| | | | | | | | | | Contents, Bookmarks and Modules links of xapian results pages were broken after I486cbfbd680d52d00ef99ade9af5ecac2967c115 Change-Id: I7b912d9ff842810a66846b6a6da7857db69cac01 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89598 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Refactor XSLTs and CSS (2)Olivier Hallot2020-02-223-10/+10
| | | | | | | | | class -> id Change-Id: I62c1af5a0203bb66fdd291dbf55633cbb3731353 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89207 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Refactor XSLTs and CSSOlivier Hallot2020-02-223-3/+3
| | | | | | | | | more meanigful names Change-Id: Ib786d2814adaed336f495992711eb89f99d85d39 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89206 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Remove very old unused CSSOlivier Hallot2020-02-211-20/+0
| | | | | | | Change-Id: I8af3443fb8db832ac2fc9a88dfb6fd779d3475ed Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89163 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update icon replacement tableOlivier Hallot2020-02-171-2/+2
| | | | | | | Change-Id: Id73f42124c4a5b08fedeaa28cf26043a03f52cfe Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88886 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Don't hardcode version in links in online helpMike Kaganski2020-02-104-69/+45
| | | | | | | | | | | | | | | | | | | | | | | | | ... 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>
* tdf#127566: don't change divcopyable border width in onclick handlerMike Kaganski2020-01-302-4/+3
| | | | | | | | | | Instead, define border width in respective CSS, to make it consistent in both clicked and non-clicked states, and avoid "jumping" on click. Change-Id: Ic8ab8d0fd586059e21de6aa866fef95226774acf Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87718 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update Colibre icons replacement table in Help.Olivier Hallot2020-01-281-0/+3
| | | | | | | Change-Id: Ieab4b0822462b2d6883a90dfd9061cfa6870ddce Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87602 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update icon repplacement table (Colibre)Olivier Hallot2019-12-111-2016/+2016
| | | | | | | | | Also, replace all ref of .png to .svg Change-Id: Ib2c9d0281cb5bfe3e016f69f2879d2fc90f08181 Reviewed-on: https://gerrit.libreoffice.org/84934 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update list of missing icons for HelpOlivier Hallot2019-12-061-320/+891
| | | | | | | Change-Id: I1a5b28ddb0e057c83a1da88b8b9337a0479a217d Reviewed-on: https://gerrit.libreoffice.org/84658 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix div position for Online HelpOlivier Hallot2019-11-231-7/+9
| | | | | | | | | | The condition was masking the div. Now the condition mask the contents Change-Id: I270e20f3ae17a16d4425698f24e674763320fade Reviewed-on: https://gerrit.libreoffice.org/83540 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>
* Fix missing %PRODUCTNAME replacementsOlivier Hallot2019-11-081-3/+12
| | | | | | | | | | | | | Some contents were still carrying %PRODUCTNAME variable Apply template brand on <bascode>, <meta itemprop../> and <title> Change-Id: Ia93204cba63ba72d1df6014e3de37d7322c68029 Reviewed-on: https://gerrit.libreoffice.org/82256 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Add stemmer info in omindex searchOlivier Hallot2019-11-031-0/+1
| | | | | | | | | Change-Id: I3e899f4e31d15ea332e6b69d14218d1e8e364c7f Reviewed-on: https://gerrit.libreoffice.org/81924 Tested-by: Jenkins Reviewed-by: Guilhem Moulin <guilhem@libreoffice.org> Tested-by: Guilhem Moulin <guilhem@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update icon replacement table in XSLTOlivier Hallot2019-10-311-7/+4
| | | | | | | Change-Id: Idc7b98d02f07b9d47429fca1330021fee044971a Reviewed-on: https://gerrit.libreoffice.org/81811 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Give some space around imagesOlivier Hallot2019-10-241-0/+2
| | | | | | | Change-Id: Ic7251bfa74c9ee1ac8b55edf8f6bed9791d42903 Reviewed-on: https://gerrit.libreoffice.org/81442 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Add Option View help page screenshotOlivier Hallot2019-10-222-1/+27
| | | | | | | | | + tweak CSS for images Change-Id: Iaa304a0ccecb6cdea2421de4ffaed52d71a0c76b Reviewed-on: https://gerrit.libreoffice.org/81287 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update icon replacement tableOlivier Hallot2019-10-201-7/+17
| | | | | | | Change-Id: I4a83337dea81a6bda5d464a305e02ad65ee5a97d Reviewed-on: https://gerrit.libreoffice.org/81159 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix <br/> when embeddedOlivier Hallot2019-10-181-0/+1
| | | | | | | Change-Id: I8cfc619adc68718b261d9f661531886789a872ac Reviewed-on: https://gerrit.libreoffice.org/80992 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* More work on Xapian result pageOlivier Hallot2019-10-143-11/+136
| | | | | | | | | | Added module dropdown fix TODO: Language Change-Id: I47012d6280694d87fb5d19e25c6052b8a7ed89c7 Reviewed-on: https://gerrit.libreoffice.org/80771 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix top row of page gridOlivier Hallot2019-10-111-0/+4
| | | | | | | Change-Id: I9ae465ac9d00df5561157e0872217a1e8a09e159 Reviewed-on: https://gerrit.libreoffice.org/80678 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix xapian search bar in Help online (WIP)Olivier Hallot2019-10-112-42/+38
| | | | | | | | Change-Id: Ibe178ff79a27b8a21fcbaf2465c66da0786a28fd WIP: need adjusts for mobile. Reviewed-on: https://gerrit.libreoffice.org/80605 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* redmine#2555 replace Help online Google searchOlivier Hallot2019-10-014-76/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Update missing icons list in HelpOlivier Hallot2019-08-051-158/+150
| | | | | | | Change-Id: I5b62a64e00def6ab38d8ae0526133f456090b256 Reviewed-on: https://gerrit.libreoffice.org/76906 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Update list of replacement icons in masterOlivier Hallot2019-05-261-31/+51
| | | | | | | Change-Id: I3da2cac812591bf1a0eed69c4a8746592e9042e3 Reviewed-on: https://gerrit.libreoffice.org/72969 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Hide our nav checkbox inputs only visuallyIlmari Lauhakangas2019-05-181-1/+9
| | | | | | | | | Some screenreaders do not read elements with opacity: 0 Change-Id: Ifc4c97a58c87e7d6b9533e15dc0db60aa70bfb97 Reviewed-on: https://gerrit.libreoffice.org/72519 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Improve accessibility for modules and lang menusIlmari Lauhakangas2019-05-184-26/+141
| | | | | | | | | | | | | | | | | | | | 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#122366 Store search filter value in sessionStorageIlmari Lauhakangas2019-05-021-0/+11
| | | | | | | | | | sessionStorage seems to be reset, when we change the module context. If this is not acceptable, we can try localStorage. Change-Id: I5ec2ff526e48dd2c7d1889578e991833e43f76c6 Reviewed-on: https://gerrit.libreoffice.org/71688 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Limit the scope of getting class names for index titlesIlmari Lauhakangas2019-04-291-6/+7
| | | | | | | Change-Id: I2d586605118032aaf38ff70d420bc7c2bf4979ae Reviewed-on: https://gerrit.libreoffice.org/71529 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* tdf#122548 copy bascode and pycode to clipboardOlivier Hallot2019-04-263-5/+54
| | | | | | | | | This will allow easy testing of coding examples. Change-Id: I30fc53642b1579744591f2de0c84a615d1755352 Reviewed-on: https://gerrit.libreoffice.org/71385 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Revert "Create XSLT replacement table for missing icons"Olivier Hallot2019-04-062-2/+1436
| | | | | | | | | This reverts commit 61f44912beec99f6211399ce567274aa369f817d. Change-Id: Icd69ccd4f487a82426a00169728ec62bbff6d0b6 Reviewed-on: https://gerrit.libreoffice.org/70350 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Create XSLT replacement table for missing iconsOlivier Hallot2019-04-062-1436/+2
| | | | | | | | | | | | | | | | | | Missing UI icons have a replacement table in /core/icon-themes/colibre/links.txt Help must also use this replacement table when Help pages have missing icons. The previous approach was a manual creation of a XSLT for the replacement. The patch moves the replacement table creation inside the Custom makefile, making it automatic and carrying changes of the original links.txt source. Change-Id: I7f834fa03bbd85f329efbec43e5c51cc86d51586 Reviewed-on: https://gerrit.libreoffice.org/70080 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fix typoAndrea Gelmini2019-03-271-1/+1
| | | | | | | Change-Id: I064146b36884740fc90b889ea92758a10782b5dd Reviewed-on: https://gerrit.libreoffice.org/69823 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
* tdf#124245 Polyfills and fixes for IE11Ilmari Lauhakangas2019-03-277-94/+202
| | | | | | | | | | | | | | | | | | | | | 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>