summaryrefslogtreecommitdiff
path: root/help3xsl
AgeCommit message (Collapse)Author
2021-11-05Close navigation menus when clicking outside themIlmari Lauhakangas
Change-Id: I6d567d7978ed5997b4ca9bf865e9e54d6c67a3a0 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124718 Tested-by: Jenkins Reviewed-by: Ross Johnson <ross.johnson@homemail.com.au> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-10-23tdf#145232 get_bookmark.xsl: Use normalize-space()Ilmari Lauhakangas
normalize-space() trims whitespace from the start and end of a string and collapses multiple spaces inside a string into a single space. This will prevent newlines in strings from breaking our generated bookmarks.js. Change-Id: I2a420cfd9fe13ee063151af79cb51b0ae49f5a0d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124056 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-10-01tdf#123506 - focus search results to user's current moduleRoss Johnson
This change focuses the search results on the module the user initially called help from and in addition, in the same way that the initial index is presented, limits the results to that module plus GLOBAL results. Explanation: Currently, when a user arrives at a help page from a module they begin with a blank search term and by default the index is focused on the module they came from. As they enter a search term the results from ALL modules are presented, paginated and either, (7.3 current) grouped by modules but in a fixed order of modules that often pushes results relative to the user's module off the first page of the index or, (7.2 and earlier) pseudo randomly with incorrect grouping under modules. If a user wishes to explor other module results they can choose a module from the Modules drop down. Their search term remains and they can easily search again. Change-Id: Ib10dd55d1c68a839938842fe3607a7a7619b3538 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122903 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-10-01tdf#33749 - revised help text for merge and split in CalcRoss Johnson
The earlier change (reverted) overlooked the difference between "Merge Cells" and "Merge and Center Cells", leaving users without adequate means to merge cells while retaining text alignment. This patch restores previous usability and moves forward to resolve the issues raised in this bug report. Reverted the two changes from earlier work on tdf#33749: 1) Cell context menu back to 7.2 2) Format - Merge Cells menu back to 7.2 3) Help pages to reflect that Moving forward with the following changes: 1) Rename "Split Cells" to "Unmerge Cells" (Calc only) 2) Add "Merge Cells" and "Unmerge Cells" to the Formatting toolbar alongside "Merge and Center Cells". 3) Re-label the Format - Merge Cells menu to Format - Merge and Unmerge Cells. 4) Help pages to reflect core including fixing the duplicate entry in the built help/hid2file.js by consolidating the relevant Calc and Writer help pages together to remove the duplicate bookmark hid branch value. Removed the module specific version. 5) Removed duplicate entry from helpers/unocmds.txt. Change-Id: Ica50f507eea74acd430bef3042fb9739d1cff7b2 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122810 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
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>
2021-09-20tdf#123506 - HTML Help pages - group search results under module headingsRoss Johnson
The "double entries" reported are because the search results are never grouped according to module (CALC, WRITER, IMPRESS, etc). Results are now grouped. The HTML Help page search function uses a "fuzzy" algorithm to pick matching results. This observation by the reporter is not a bug and so the main Help page has been updated to include an explanation. The main Help page has also been updated to draw attention to the highlighing of the matching characters from the search term, to show exactly how the match was made. Change-Id: Ibdb9ac726b36b9dd6f605c854192ec644bfe09e1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122312 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-05-31tdf#142531: fix help css for Simplified Chinese display on LinuxKevin Suo
The font "system-ui" may cause trouble in some system, although it may look good in several systems. See e.g. https://infinnie.github.io/blog/2017/systemui.html. This change removes the "system-ui" font from the list, still put "Segoe UI" before any others, but moves "sans-serif" forward so that it falls back to the UI font in most linux distros. Tested on Win10 and this does not impact the display for English or Chinese, but really improves a lot on Linux (Fedora 32 for me). Change-Id: I1cba731cb846d1dc8c708b12510167c48de539e5 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116487 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-05-31tdf#142417: Improve convertfilters.py and add API Names columnKevin Suo
This commit involves two parts: 1. Improved the convertfilters.py helper script to make sure the generated convertfilters.xhp file is complete, accurate and containing no duplicated entries, and also add codes to also generate API Names column, as discussed in tdf#142417. Importantly, the code is modified to generate fixed IDs, rather than the previously random IDs or sequential IDs which may make the PO translation strings to show fuzzy when the file is re-generated. 2. This helper script is run and the convertfilters.xhp is updated. 3. The default css is modified to better display the page. There is no need to set overflow=auto for the DisplayArea, otherwise the scrollbar goes to the bottom of that area which is not visible. Also added a css class to display smaller fonts for the table. Change-Id: I8a5c73c9d6a0c0b44fc7db6cb67b140bfeb8b4be Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116405 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-04-15Fix sort order of Calc functionsOlivier Hallot
Change-Id: I8237b0d52b8b0f29fc35196d34648ed7b51669d1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114113 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-04-14Fix sort command in Help pagesOlivier Hallot
After the introduction of the headings h1 ... h6 in the Help pages the sort command broke. It relied only in the <paragraph> tag for sorting, usually the first paragraph in the section. The patch extend the DTD to handle the new descendant="" attribute to select which tag to sort in the Help page Default is <paragraph> for backward compatibility. Pages with <sort> must be revisited. Change-Id: I3c6f243369429ed7824a68b11757dc15f4555c0f Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114110 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-03-22CSS: Initial teeny-tiny changes towards tdf#139926Adolfo Jayme Barrientos
Since I keep procrastinating on the Online Help redesign, let’s do it incrementally. Change-Id: I2e7ebc1d3d9df8f6b7425dcae50464d463d7f0c3
2020-11-26Update redirects to replace the url rather than navigate to a new oneHenrik Karlsson
Current links from outside (like the wiki) will cause excess history entries when clicking the https://help.libreoffice.org/ link, breaking the back button. See the example of the visited pages below. Ideally only the referring page and the final page should be in the history, allowing the user to navigate back. 1. https://help.libreoffice.org/Main_Page 2. https://help.libreoffice.org/ - 302 redirect 3. https://help.libreoffice.org/help.html - window.location.href 4. https://help.libreoffice.org/latest/index.html - window.location.href 5. https://help.libreoffice.org/latest/en-US/text/shared/05/new_help.html?&DbPAR=WRITER&System=UNIX The second 302 redirect is fine as it simply replaces the history. The two window.location.href assigments however should be replaced with window.location.replace. Change-Id: I6fbe7141de87c939aa816fdfc2fe5255e9792e0b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106429 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-10-24Use z-index: 100 for TopLeftHeaderIlmari Lauhakangas
The tooltip functionality was making things messy with the sticky header Change-Id: I8a77b11c950c54f00bde0c040a2945f503f993b5 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/104749 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2020-09-28Keep logo text colour white even when visitedIlmari Lauhakangas
Change-Id: I5cad9cdaf606b2b809c8e8a39a0dbf82ce15f919 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/103548 Tested-by: Jenkins Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-09-10CSS: Separate this rule out of the blockAdolfo Jayme Barrientos
Change-Id: I1c7ea2603fcbb8a6668cde831848246bb4d1c3a4
2020-09-10Online help CSS: improve link colors so Olivier doesn’t hate meAdolfo Jayme Barrientos
Change-Id: Ia03fdfe89ac578891458b19657486d398d4bc1b4
2020-08-18Improve schema.org for online HelpOlivier Hallot
Changed to schema.org/SoftwareApplication Change-Id: Ib5457aaf237153de18a100b9604bfe7ef29dd292 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/100862 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-24tdf#133640 Replace problematic colors to make links discernibleAdolfo Jayme Barrientos
… and add back their default underlines, but dimmed. I still think this looks busy, but I shall get used to it. It’s more a11y-friendly this way. Also, the old, green footer line is gone, since it doesn’t really fit in since commit 4d6b5e5f74c50cc440a46fada8fa89ad2f946749. Change-Id: Ie9feb3cc232ec249dbe323c2ec4b761c12e91ad6
2020-06-23Update CSS box colors to match new ColibreAdolfo Jayme Barrientos
Change-Id: I5ed9fdcad79fc34032e6c8d1536aaaf12d32e177
2020-06-17Add better 404 errorOlivier Hallot
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>
2020-06-13tdf#133928 Help need javascript enabled in browserOlivier Hallot
Helpcontent2 part Also, optimize XSLT brand template Change-Id: Idfe3647306452f1f8be5632f1e1a70d642533406 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96238 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-11Fix applicaiton color and h1 underline CSSOlivier Hallot
Change-Id: Ia8a18f4a8e1bd12c40a092528e68ec2f12846ac1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96162 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-07Improve web help headerIlmari Lauhakangas
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>
2020-06-03Fix [aria-hidden] topix in CSSOlivier Hallot
Change-Id: Ifbc5d8d7a3ffc92965a78062c5943b5e94081bf0 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95434 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-05-31Update prism.js to latest versionOlivier Hallot
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>
2020-05-26tdf#126813 Fix scrolling of targeted referencesOlivier Hallot
Change-Id: Ic7ce644cc0a5053905e980952ad31767fa87125c Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94885 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-05-26Remove unused CSS classOlivier Hallot
Change-Id: I9db4df3062c411570a77686ec2b4fe3124f71539 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94879 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-05-19langnames.js loaded too lateIlmari Lauhakangas
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>
2020-05-16Refactor database help pageOlivier Hallot
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>
2020-05-15CSS: Change selection colorAdolfo Jayme Barrientos
It doesn’t play nice anymore since 4d6b5e5f74c50cc440a46fada8fa89ad2f946749 Change-Id: Ib897702ad32915164e277e092103c295bba41366
2020-05-15remove *.google.com and *.googleapis.com from Content-Security-PolicyAndras Timar
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>
2020-05-13tdf#128519 Icon replacement table in build timeOlivier Hallot
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>
2020-05-11tdf#128519 Automate icon repl't table for Help bldOlivier Hallot
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>
2020-05-01Help CSS: allow title in header to be widerIlmari Lauhakangas
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>
2020-04-29Update icon replacement tableOlivier Hallot
Change-Id: I0781dace93589b6ef202cc697e457a065496163b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93155 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-04-29Apply module brand color to Help pageOlivier Hallot
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>
2020-03-17Update icon replacement table for HelpOlivier Hallot
Change-Id: I8295bda6fcb041811b73186a6a64346f4d374ea7 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/90574 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-03-12Helponline: Make that image shadow look not tackyAdolfo Jayme Barrientos
Change-Id: I7e0b370ad883e787a8c7b7970d8d96653e577f8e
2020-03-05Reorganise and refactor stuff in help.js for readabilityIlmari Lauhakangas
Change-Id: Ife1b412350be5ac046736312ff9216273eff281b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89973 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-27Fix links in xapian results pageOlivier Hallot
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>
2020-02-22Refactor XSLTs and CSS (2)Olivier Hallot
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>
2020-02-22Refactor XSLTs and CSSOlivier Hallot
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>
2020-02-21Remove very old unused CSSOlivier Hallot
Change-Id: I8af3443fb8db832ac2fc9a88dfb6fd779d3475ed Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89163 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-17Update icon replacement tableOlivier Hallot
Change-Id: Id73f42124c4a5b08fedeaa28cf26043a03f52cfe Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88886 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-10Don't hardcode version in links in online helpMike Kaganski
... 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>
2020-01-30tdf#127566: don't change divcopyable border width in onclick handlerMike Kaganski
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>
2020-01-28Update Colibre icons replacement table in Help.Olivier Hallot
Change-Id: Ieab4b0822462b2d6883a90dfd9061cfa6870ddce Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87602 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-12-11Update icon repplacement table (Colibre)Olivier Hallot
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>
2019-12-06Update list of missing icons for HelpOlivier Hallot
Change-Id: I1a5b28ddb0e057c83a1da88b8b9337a0479a217d Reviewed-on: https://gerrit.libreoffice.org/84658 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-23Fix div position for Online HelpOlivier Hallot
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>