summaryrefslogtreecommitdiff
path: root/help3xsl
AgeCommit message (Collapse)Author
2018-02-16tdf#94017 embeded h1 entries should be h2Olivier Hallot
This improves visual appearance of help pages of menus, etc... Change-Id: Ieece5897980e1defe25cda7b28fcd16c9998dfd4 Reviewed-on: https://gerrit.libreoffice.org/49857 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-16Add more support for languages in online new HelpOlivier Hallot
Added SL token for google Tooltip for clipboard Donation links Change-Id: Ib73c07f64992553abb1b4048c10e1dbb9a2c3573 Reviewed-on: https://gerrit.libreoffice.org/49854 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-12Better handling of user language in help onlineOlivier Hallot
Change-Id: I6a14081321cfd94fe1efb1f2b5fd23f20d4a27fc Reviewed-on: https://gerrit.libreoffice.org/49613 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-12Better handling of help URLs anchorsOlivier Hallot
Change-Id: I25a6b105f4a809839575e43cd4834cf96a1e5e7c Reviewed-on: https://gerrit.libreoffice.org/49516 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-02-07Add anchor to branch bookmarks in hid-to-fileOlivier Hallot
Add the id="bm_nnnnnn" as anchor to get the html file displayed in the right position. Change-Id: Icf50119d7b4f7846abc2a128ccdf9d3ab77a50c2 Reviewed-on: https://gerrit.libreoffice.org/49299 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-31Fix typoAndrea Gelmini
Change-Id: I8fd351833236fe594a0480d9e09b0ef072ec7c46 Reviewed-on: https://gerrit.libreoffice.org/48997 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-01-31Fixes for MS browsers and tweaks to fuzzy searchIlmari Lauhakangas
Some experimental JS tech had slipped into the mix. Search settings should also be a bit more performant now. Change-Id: Ifae9986efc02d20fefa9480ae463107fe4743944 Reviewed-on: https://gerrit.libreoffice.org/48988 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-30New Help: Add donation link for online versionOlivier Hallot
Change-Id: I340362a70ecc115565c7fd7cb2be1a5d0fbb5599 Reviewed-on: https://gerrit.libreoffice.org/48929 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-30Switched from list.js to fuse.js and paginathing.jsIlmari Lauhakangas
Fuse.js has Apache License 2.0 and paginathing.js has Expat License (aka MIT). Paginathing is a paginating utility and it was originally jQuery, but due to performance concerns I converted it to pure JavaScript and rather brutally adapted it to our needs. Fuse.js gives us fuzzy search with multiple strings. The settings can be refined, if needed. Settings can be easily tested with the live demo: http://fusejs.io/ Change-Id: I1cf6a6f7d06adbcac95760db90187ee26be8e908 Reviewed-on: https://gerrit.libreoffice.org/48906 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-29New Help: allow product version = "latest"Olivier Hallot
To enhance version migration, the most recent Help will be named "latest" in the URL. Explicit last version X.Y will be symbolic link to 'latest'. e.g. '6.0' -> 'latest' *This will allow search engine to always index the same 'latest' URL *External links always land in 'latest' pages. Change-Id: I5ffa1d268f71b7ebe75d5d90c62bcd6304507602 Reviewed-on: https://gerrit.libreoffice.org/48848 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-26Adjust online builder xhp2html.sh to new bookmarksOlivier Hallot
Change-Id: Ie3a211d7247acd0ef7c15266368d9db7e1c8f232 Reviewed-on: https://gerrit.libreoffice.org/48681 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-25Module names must stay uppercase due to DbPAR=MODULEIlmari Lauhakangas
Change-Id: I10cea1b204b20d482abec6a8f66d5cfee6cf6dfe Reviewed-on: https://gerrit.libreoffice.org/48509 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-19Correct Catalan spellingAdolfo Jayme Barrientos
Typo introduced in 01879555450189381cc02517433807056b193af8 Change-Id: I9978ec8b238493a501981e192aa92547f2c1fe5d
2018-01-19Add more localized strings for new HelpOlivier Hallot
Change-Id: I8c0cdcf8cf1ce64a407c98f4619a46b08c259b7d Reviewed-on: https://gerrit.libreoffice.org/48186 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-19Fix detection of bad help callOlivier Hallot
remove single quotes Change-Id: Ia7951508cbf0a49ae029588e1d254de5f3942f12 Reviewed-on: https://gerrit.libreoffice.org/48165 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-15tdf#114907 Expand and collapse symbols for ContentsIlmari Lauhakangas
Unicode like it's 1993. Change-Id: I625dc220341db788dd578c210ef2f368bec58199 Reviewed-on: https://gerrit.libreoffice.org/47902 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-11Fix HIDs with '?' insideOlivier Hallot
'?' interferes in logic to extract HID Change-Id: I5252d1cf861959cc6ad2b49afe9b19f4c9698f56 Reviewed-on: https://gerrit.libreoffice.org/47734 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-11Add L10n to labels, in New help UIOlivier Hallot
* Add l10n for "%PRODUCTNAME %PRODUCTVERSION Help" * same for "Module" * Content-Security-Policy only for online case Change-Id: Iedad3e198211c122fe5845171d5dcbc6edd4778d Reviewed-on: https://gerrit.libreoffice.org/47713 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-10Add Content-Security-Policies in new Help pagesOlivier Hallot
Change-Id: I115fc16fbf4b8284bfedc735761434bb586f0355 Reviewed-on: https://gerrit.libreoffice.org/47660 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-06Add l10n to the 'Module' string in Help UIOlivier Hallot
Change-Id: I3b1b202ea4544f1458086abf3b149dcd0be2d115 Reviewed-on: https://gerrit.libreoffice.org/47489 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-05Fix typosAndrea Gelmini
Change-Id: I2a98c7a079c69ac32b382d6c320dde456be98cf1 Reviewed-on: https://gerrit.libreoffice.org/47282 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-05Fix typosAndrea Gelmini
Change-Id: I4ab0df8ed7f3d8ac95f28220c9b4f59e2a6a1eb2 Reviewed-on: https://gerrit.libreoffice.org/47281 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-27tdf#112755 reorder modules in new help (II)Olivier Hallot
reorder modules in Index Change-Id: Ib226a7c243e682e4e2a98d6d48ae1d9b1e3cace1 Reviewed-on: https://gerrit.libreoffice.org/47095 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-22Relativise <base href="/"> wrt file positionOlivier Hallot
Now <base href="/"> is changed to <base href="../../../ (...) ../" to allow links to operate with http:// and file:// protocol Drop param from makefile too Change-Id: I1aea5b9c564bdfe395e95400ecf87e068a5a7c86 Reviewed-on: https://gerrit.libreoffice.org/46932 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-19Use quotes around positional args.Shinnok
Change-Id: I34daf14c83b83085ca5f8ef643e7418893da5924 Reviewed-on: https://gerrit.libreoffice.org/46696 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-12-16Replace usage of readlink -f with realpath.Shinnok
For consistency reasons, the other scripts use the latter. Additionally on macOS/BSD readlink -f option is not available, nor other default tools for canonicalizing paths, so looking for GNU's realpath in the first place is a better bet. Change-Id: I77b82a956f63c66e352a372895cd623f83916168 Reviewed-on: https://gerrit.libreoffice.org/45486 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-07move generation of HTML help to gbuildDavid Tardon
Change-Id: Ic38ee7b9a3ee4a45bede9d494f717d833e53d69f
2017-12-06Add option to build en-US too.Shinnok
This case required manual copy of the xhp's and tree. Change-Id: Ibde9e0e70f9d27735cc0b89bab8eeb34d17c5fdc Reviewed-on: https://gerrit.libreoffice.org/45968 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-06Merge makelocal and makeonline into single script.Shinnok
Scripts were identical; only difference is whether we pass local yes/no to get_html.sh. Choice is now expressed via first param to makehelp.sh; build local is default. Change-Id: Icbe274fe6d9aeb86c7950aa69daf574e271e3b84 Reviewed-on: https://gerrit.libreoffice.org/45943 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-04Remove confusing white space.Shinnok
Change-Id: I0f6e35f720c5744757f0ac804a9d780df23d1804 Reviewed-on: https://gerrit.libreoffice.org/45819 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-03New Help: improve bascode div css.Olivier Hallot
highlight basic code background color Change-Id: I64df0dad9443704675dd4a26be943521bc993e97 Reviewed-on: https://gerrit.libreoffice.org/45751 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-12-02Clean unused scriptsOlivier Hallot
Change-Id: Ie4f52598585b891699b9b14dfea9cc9988777072 Reviewed-on: https://gerrit.libreoffice.org/45621 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-11-29Replace cp -rap with cp -a, satisfying all *nixes.Shinnok
On macOS, probably BSD too -rap will fail with both -r and -R implied. Change-Id: I6844d6f2ac52ca1c10564857f4e9190e1627ce52 Reviewed-on: https://gerrit.libreoffice.org/45430 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-29Chmod +x for makelocal.sh.Shinnok
Change-Id: I20c45d4eef8a5302369242e7d3cc5b6bb9f70e39 Reviewed-on: https://gerrit.libreoffice.org/45431 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-28Fix hid2file.jsOlivier Hallot
Change-Id: I976801b1e84defd3f8588a3423acc4254098c237 Reviewed-on: https://gerrit.libreoffice.org/45411 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-23create dir before resolving its pathlibreoffice-6-0-branch-pointDavid Tardon
Change-Id: I4724d2444b0bd9daa6a6f0f8c7165a594db08ad9
2017-11-13Fix script for online version of new helpOlivier Hallot
Change-Id: I9a395dbc88b6c2606b2a7fca1d829b10922e4674 Reviewed-on: https://gerrit.libreoffice.org/44630 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-01Refactor new help builder script into smaller piecesOlivier Hallot
Add 4 smaller bash scripts for building new help, for better management Scripts use the following parameters workDir: $(WORKDIR) lang: $(LANG) productVersion: 6.0 and put results in $(WORKDIR)/HelpTargetHTML ./get_hid2file.sh $productVersion $workDir Creates hid2file.js that maps HID into HTML page uses get_url.xsl transform ./get_bookmark.sh $lang $productVersion $workDir Creates the index file 'bookmarks.js' based on <bookmark_values> tag in all localized XHP files. Visible in Index tab of the HTML page Uses get_bookmark.xsl transform. ./get_html.sh $lang $productVersion $workDir $local $fileTree Creates the HTML pages from localized XHP files local: is local or website (yes/no) If local="yes", the filetree should be $(installDir) else (i.e. website), root file tree should be '/' fileTree: is root file tree for $local=yes If local = yes, then language selector, PIWIK probe and global search services are removed. Uses: online_transform.xsl transform ./get_tree.sh $lang $productVersion $workDir Creates the contents.js from localized TREE files Visible in Contents tab of the HTML page Uses get_tree.xsl transform ./get_media.sh $lang $productVersion $workDir Copy several auxiliary files for navigation Copy HC2 media files Copy galaxy icon theme for HTML pages * minor change in file name hid2file.js Added 2 more small scripts to show how to build local and online ./makelocal.sh ./makeonline.sh Languages depends on the languages available in $(WORKDIR)/HelpTranslatePartTarget/, and includes qtz. will handle special case of en-US later Change-Id: I0b7fdf5e1460070413eb2303f8d69b2b85a40c3e Reviewed-on: https://gerrit.libreoffice.org/44114 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-10-24Tweak some references in bash coding.Olivier Hallot
Change-Id: I57aeab1b6a5abf733fa68835197f129aaf23fef0 Reviewed-on: https://gerrit.libreoffice.org/43761 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-10-21tdf#112755 reorder modules icons in helponlineOlivier Hallot
Change-Id: Ib662f9e0b4dd84abfbddd0bbe91fbfebf6d8a98a Reviewed-on: https://gerrit.libreoffice.org/43676 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-10-12Tweak the language menuIlmari Lauhakangas
Simplified the markup and tweaked the look a bit. Change-Id: Ifc296a82b17215e7bcfbfc17432aacddb922664b Reviewed-on: https://gerrit.libreoffice.org/43345 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>