summaryrefslogtreecommitdiff
path: root/help3xsl/online_transform.xsl
AgeCommit message (Collapse)Author
2019-04-26tdf#122548 copy bascode and pycode to clipboardOlivier Hallot
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>
2019-04-06Revert "Create XSLT replacement table for missing icons"Olivier Hallot
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>
2019-04-06Create XSLT replacement table for missing iconsOlivier Hallot
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>
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>
2019-03-13New approach to switch casesIlmari Lauhakangas
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>
2019-03-10Show module & lang navigation on mobileIlmari Lauhakangas
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>
2019-03-08Donation button and sticky header for HelpIlmari Lauhakangas
Task: https://redmine.documentfoundation.org/issues/2815 Header was made sticky on non-mobile by using position: sticky. This was the only way to make it work with the grid without carving magic numbers into stone. IE11 ignores it, but so what? Donation text was made shorter. The Google search and the donation button were wrapped in a container to make it easy to haul them all over the place. Lots of tweaks were made to the grid areas and the styles of the bottom elements to make everything fit nicely in the new markup order. The result was tested on IE11 to make sure it degrades gracefully. The Displayarea element had a fixed width (my old mistake), which made the min-width: 960px layout look very uncool. Change-Id: I131a1e82290bc3381c938acb4dc9dbc408fb2ba7 Reviewed-on: https://gerrit.libreoffice.org/68890 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-04Some optimizing bits in XSLTOlivier Hallot
Change-Id: I27c29677cbf9c704d64b5ed49acc56b7a22432bd Reviewed-on: https://gerrit.libreoffice.org/68646 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-01fix commit 622324ec76e54ea1de99d6cea3debc2389049f5Olivier Hallot
* SVG images cannot have undefined width and height * pick'd a mistake in setting generic images width and height Change-Id: I9f3e62e535c82d624c5c209b0e000784b2765604 Reviewed-on: https://gerrit.libreoffice.org/67234 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-28tdf#121571 Solve cognitive dissonance with note icons and colorsAdolfo Jayme Barrientos
More often than not, the alarmist colors given to note boxes didn’t match their content. Change-Id: I88d7a8e2d07ffba661c218887fd54638506d21c8
2019-01-28Drop this pitiful, bothersome, gimmicky animationAdolfo Jayme Barrientos
Change-Id: If533f8565e38e02d503cc1ab59f65e2445f1369b
2018-12-30tdf#114263 Help page for BASIC WaitUntil statementOlivier Hallot
Change-Id: I6ef145556a813f65ea509b146eadbf744b6f1fae Reviewed-on: https://gerrit.libreoffice.org/65721 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-26Review code in help page and mute l10n when OKOlivier Hallot
+ Added "smathcode" role to render smath code paragraphs + let smath code samples be copied to clipboard. Change-Id: I580c162d0c77f51d0de817ca143a845abf56eca9 Reviewed-on: https://gerrit.libreoffice.org/65621 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-22Remove cruft from XSLTOlivier Hallot
Change-Id: I98dd6ad0a5c4dff7333c6f786aedce6b7679aae4 Reviewed-on: https://gerrit.libreoffice.org/65567 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-13Add support for python code scriptsOlivier Hallot
Introduced <pycode> section and "pycode" role for paragraphs with same behaviour as BASIC coounterparts. Used to list python scripts examples ans code fragments in help pages Change-Id: Ica76bcc65dcf422a1eb4b7f39a6d671b2e4e573c Reviewed-on: https://gerrit.libreoffice.org/65097 Tested-by: Jenkins 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-28tdf#121797 XHP extensions (Help part)Olivier Hallot
WIP. This is the Help part. Extend the XML parser to include new incantations of the <paragraph> tag, namely <h1> to <h6> <note>, <tip> and <warning> Extension to the <item> tag: <menuitem>, <input>, <literal>, <widget> and <keycode> * removed test files Change-Id: I2a473ee8772606f5e84bb02e651bccc6749598f4 Reviewed-on: https://gerrit.libreoffice.org/63954 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-11-20tdf#119415 Add placeholder text for index filterIlmari Lauhakangas
Change-Id: If7a0a863eb6b8bb95a5b6236f4f3d490739810a1 Reviewed-on: https://gerrit.libreoffice.org/63672 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-11-16Honor asc/desc in XHP sortingOlivier Hallot
Change-Id: I11cc206e3f8771fc19387cd2a9c02697982251dc Reviewed-on: https://gerrit.libreoffice.org/63445 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-11-11Fix icon display in Help pagesOlivier Hallot
1) The python script creates the replacement table (xsl) for missing icons from colibre/links.txt. Later it should go to build system. 2) Handle icon tables when images are not from icon-theme Change-Id: If946af6fc6c05431c07470c01082a46e0fdbdde0 Reviewed-on: https://gerrit.libreoffice.org/63254 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-09-26Add debug info for HID in new helpOlivier Hallot
To enable Help page debug, add '&Debug=1' to the page URL. This patch pass the HID in the URL of the help page and displays it in the debug div in the bottom of the page. It should help to locate missing pages for a given HID. Change-Id: I671feb2dc34baaef5230028ba918a407d4cfea76 Reviewed-on: https://gerrit.libreoffice.org/60843 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-09-07Prepare to handle native SVG iconsOlivier Hallot
Today icons are PNG images, if later they become SVG natively... Change-Id: I42d886257b55b5676767c8b8879a6bf35eb4d5e6 Reviewed-on: https://gerrit.libreoffice.org/60156 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-09-07Height and width are <img> attributesOlivier Hallot
Change-Id: Ia8084ff7029ddd06e450cbf03a7b1fb5efaa7dc7 Reviewed-on: https://gerrit.libreoffice.org/60136 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-09-07Fix image dimensions expression in styleOlivier Hallot
Change-Id: I1803f18aa0512e5b618daa64efff6487c583fb76 Reviewed-on: https://gerrit.libreoffice.org/60106 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-09-06tdf#117551 Change icons to SVG equivalentOlivier Hallot
Change-Id: I5d174b434429485d270ba7b6e9147a3bc2b84828 Reviewed-on: https://gerrit.libreoffice.org/60056 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-09-06Show how beautiful are our iconsOlivier Hallot
On hovering icons, enlarge them. Next step: change icons to SVG (tdf#117551) Change-Id: Ib43e3b54ed27352a8ca785c57dce9314adc00e4d Reviewed-on: https://gerrit.libreoffice.org/60053 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-24Honor colspan and rowspan in tablecellsOlivier Hallot
Previously not implemented Change-Id: I8867d82bc12a6c4312fcc6aa49c6b31e360a524e Reviewed-on: https://gerrit.libreoffice.org/59580 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-23Add help pages for new HelpOlivier Hallot
Exlplain the new browser-based help system and user interface. Change-Id: I418b5fe148661a40b4e0291776ac43f4f207743e Reviewed-on: https://gerrit.libreoffice.org/59472 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-20Fix logic for screenshots in help pagesOlivier Hallot
better handling of image dimensions Change-Id: Iefceb9fa391d564c8920ab53160f70110a7abb8a Reviewed-on: https://gerrit.libreoffice.org/59338 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-16Generate the modules dropdown content on demand too.Jan Holesovsky
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>
2018-08-16Translate the language names in JS.Jan Holesovsky
Change-Id: I7185a7d0981abbacef4a152ee6ac5352ebe970cd Reviewed-on: https://gerrit.libreoffice.org/59150 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-16Don't embed links to all the languages into every page.Jan Holesovsky
Change-Id: I31f140919a18db55ef5afab9f229afa7eed3e36c Reviewed-on: https://gerrit.libreoffice.org/59149 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-16Let's have Content-Type everywhere.Jan Holesovsky
Change-Id: I000658561d76d6a95a4acbc621db5e3f6d081e08 Reviewed-on: https://gerrit.libreoffice.org/59051 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-08-09Use PRODUCTNAME from the configure.Jan Holesovsky
Change-Id: Ibc742e653f44093372bed4e103fedb3a597dfdac Reviewed-on: https://gerrit.libreoffice.org/58793 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-07-22tdf#118844 Add missing icons in Help pagesOlivier Hallot
Apply strategy #1 described in tdf#118844 comment #3 Change-Id: I072bf837217acc8dc84ff1104324df69e33a22bd Reviewed-on: https://gerrit.libreoffice.org/57801 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-07-10tdf#118430 Three column layout with 1440px widthIlmari Lauhakangas
Contents will now stay collapsed until 1440px width, when it will move to the right side of the screen. Removed useless and harmful float:left from .index-label. Change-Id: I504e8c4be3a5e777dc7bafbd6a6105b163e4a5f3 Reviewed-on: https://gerrit.libreoffice.org/57129 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-06-29Add mode="embed" for bascodeOlivier Hallot
Embeded <bascode> was not properly rendered because it had no embed mode Change-Id: Icdc91c5b00b165d7963248f9083837b899d382f2 Reviewed-on: https://gerrit.libreoffice.org/56726 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-06-15Fix <bascode> rendering for paragraphsOlivier Hallot
Change-Id: I4c76bac48f3be30dc3bcd358df427843a5f97a7a Reviewed-on: https://gerrit.libreoffice.org/55837 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-06-11tdf#116642 Fix COUNTIFS page + help makefilesOlivier Hallot
+ Add callateral file for COUNTIFS + Adjust makefiles + some tweaks in XSLT + adjust languages to gb_HELP_LANGS. Change-Id: I9d2684d20804b93fd0671621d28a8d786a101fdf Reviewed-on: https://gerrit.libreoffice.org/55493 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-31Fix default cases in switchesOlivier Hallot
Change-Id: I40f6c8e5a6fd0a0ff1d3e6205de449f14598212b Reviewed-on: https://gerrit.libreoffice.org/55107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-25Add GDPR in online helpOlivier Hallot
Change-Id: Ic752beee3901bd9963deb4782702a1de745b5406 Reviewed-on: https://gerrit.libreoffice.org/54785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-21Fix media path for en-USOlivier Hallot
Change-Id: If3a9667fa3dd8c1007132448a23e75d66279a192 Reviewed-on: https://gerrit.libreoffice.org/54640 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-21Add support for localized collateral filesOlivier Hallot
Fix src Change-Id: I4997884f087b625c8ac8dbf923363d97f88f7922 Reviewed-on: https://gerrit.libreoffice.org/54599 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-08tdf#115685 Bring new help UI strings to PootleOlivier Hallot
Change-Id: Ifcd56f626ed36d4ab7f7da0cd3ef6e95e2456971 Reviewed-on: https://gerrit.libreoffice.org/53976 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-08Refactor test for online case wrt objectsOlivier Hallot
Also refactor the section "Open file with example". Wrap in a div with class. Change-Id: I14b1b7ca6ca788383824db3db4db4014b295976e Reviewed-on: https://gerrit.libreoffice.org/53946 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-07Helponline: Tame that gaudy-looking magnifier icon…Adolfo Jayme Barrientos
… at least where Unicode variation selectors are supported. Change-Id: I9cf30c732e66a79e64a0e7becada7e82bded93cb
2018-05-06Fix icon path for colibre + screenshot langOlivier Hallot
Note, Tip and Warning icon path Fix screenshot lang path for en-US Change-Id: Ia8a7c5d396ea4e3d6858ebcde6019d71c43278b0 Reviewed-on: https://gerrit.libreoffice.org/53910 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-01Remove extra line break in icontablesOlivier Hallot
Change-Id: Ic800e91e6dde2fa425497070c0da36038c1c3a4e Reviewed-on: https://gerrit.libreoffice.org/53690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-04-26Replace icontable by div + CSS flexboxOlivier Hallot
Icon tables are detected when the first cell has an image. Change-Id: I808c814870404dbef696e12c6f30a7611468d2ee Reviewed-on: https://gerrit.libreoffice.org/53429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>