Commit Graph

67 Commits

Author SHA1 Message Date
17a0bd4d2f Fix help build after 2b322af4b9
+ Extra single quotes removed.

Change-Id: I1942ba10f3522ea8bfb0ee36239a21de971a0f98
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/193549
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
2025-11-07 00:15:48 +01:00
2b322af4b9 simplify help makefile a bit
by copying the en-US file a single pattern rule can be used without the
need of using a generator/eval to add the targets/dependencies

Change-Id: Ie63fce1e3687f1e1ba46583529e6f4997c0aba44
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/192835
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2025-11-06 11:48:46 +01:00
2cc2c9d5a7 Warn when javascript is not enabled in browser
+ A big red warning displays on top of pages when JS is disabled in browser.
+ otherwise JS switch warning to display = none.
+ Fast/instantaneous in Firefox
+ Some delay (flash) experienced with Brave and Edge in Linux (Chrome engines).

Change-Id: I2b1792e87520b3f4e0bf93a6e0430376587b4afb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/179578
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-31 16:03:09 +01:00
5873436e54 makefile simplification: replace $(call gb_HelpTranslatePartTarget_get_workdir,foo)
helpcontent2 portion

Change-Id: I2e10bf8bf4cb39fa3a8f9a2c3eb8f22d8632560c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167124
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-05-04 16:28:15 +02:00
e8b21ab244 makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo)
helpcontent2 portion

Change-Id: I2e10bf8bf4cb39fa3a8f9a2c3eb8f22d8636560c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167007
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:06:39 +02:00
f32f607fcf Revert "win doesn't like (foo || bar) | … construct, suspends xsltproc"
This reverts commit b066c7f100.

Reason for revert: not all xargs versions know -a option (mac)

Change-Id: Ia2a54e1dffe459b058f1e11a35372bb38774044f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166519
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-04-24 15:32:42 +02:00
d8e52ea49a Fix typo
Change-Id: I461574a961a46ba9283324654643eef40dfbf6bd
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166470
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2024-04-22 22:38:19 +02:00
b066c7f100 win doesn't like (foo || bar) | … construct, suspends xsltproc
not always/reproducible but often enough when using git-bash to get
annoying when building with all langs/when that is run in parallel
Splitting this up makes it more reliable (or I just have been lucky)

btw: why is this split-per-app when the final bookmarks.js is a simple
concatenation of all of them?

Change-Id: I629a302237b32da8ba77460e0415f32d50105ae5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166320
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-04-22 13:38:06 +02:00
5dfde9a919 Too big environment on Windows can cause failure with xargs
Change-Id: I5d796dbf6ad4d93dd133583a1dac95a210674ef9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/163117
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2024-03-12 16:16:23 +01:00
0c24f409c3 tdf#157360 Local help should not phone home
+ Remove call to matomo TDF server instance when help is local
+ Keep when Help is online.
+ refactor javascript

Change-Id: I285b426531c91ff558c01798f803bf3f89720b1f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/157255
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-09-26 09:05:22 +02:00
ebdeebb9b0 Revert "tdf#155193 Do not deliver Help files with indexer=exclude"
This reverts commit 539abfa7c3.

Reason for revert: daily builds fail to build with errors like
ERROR: file '/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/instdir/help/en-US/text/shared/autokorr/01000000.html' does not exist
See https://ci.libreoffice.org/job/lo_daily_tb_linux_dbg/654/console

Change-Id: I9d00fb2596b280bf09934dfc87db64feb8fe6a80
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155600
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-08-14 10:18:33 +02:00
539abfa7c3 tdf#155193 Do not deliver Help files with indexer=exclude
+ Add condition to skip indexer=exclude files.
+ delete empty files generated by exclude
+ delete empty directories generated by exclude

Change-Id: Id992e6c83086d3cd3911b84890a50b309ad92c3b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151897
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-08-10 12:21:02 +02:00
dc89de95c0 Recipe has no dependency on target dir
Seen this fail once at
<https://buildbot.flathub.org/#/builders/31/builds/1623>,

> cp: cannot create regular file '/run/build/libreoffice/workdir/CustomTarget/helpcontent2/help3xsl/online_transform.xsl': No such file or directory
> make[1]: *** [/run/build/libreoffice/helpcontent2/CustomTarget_html.mk:186: /run/build/libreoffice/workdir/CustomTarget/helpcontent2/help3xsl/online_transform.xsl] Error 1

Change-Id: I8cfa387d1bb2ef488f5f34ff20b9dc975d424751
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/146141
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-25 15:42:03 +00:00
70c46432b1 janitor - the announce is not meant to be part of the dependencies
quirk introduced with the change making the xsltproc one an order-only
dependency. The line-continuation wasn't removed with that change
causing the annouce to fire when make is parsing the makefile. Doesn't
hurt anything or affected the build result in any way, but certainly not
as intended :-)

Change-Id: I82069208fff1ff0c01efba00caa2d8fa5279efaf
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144760
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-22 15:15:54 +00:00
9871dc3b0f make html.text target make more robust on windows re CR at EOL
some cygwin setups still treat the final CR as part of the filename, so
avoid that problem alltogether by simply appending a dummy entry to each
line on the responsefile to catch any stray EOL/EOF characters

Change-Id: I624eeeca033f72b2845394b44f27b6e32d01eb70
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144758
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-22 13:29:28 +00:00
77757ab8b2 add gbuild trace annotations for targets in CustomTarget_html.mk
at least for those that are not a simple cat, echo/printf or sed call

Change-Id: I81e7682890a011aaea2603ef4c0a2e71d82a8511
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144591
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-20 13:20:43 +00:00
b91a0a3011 Fix typo
Change-Id: Iede879decee335d13e50df7244326dbc44728145
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144503
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-12-19 16:46:20 +00:00
318ec1f0e6 janitor: update comment for the bookmarks.part rule
the remarks about the indicator files are obsolete after the rule has
been rewritten to work in batch and not on single files

Change-Id: I8a2509aed7a38b9cff0dacec3d4161bc020fde31
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144468
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-19 11:17:45 +00:00
534e501e3a janitorial cleanup/minor optimizations
mostly making xstlproc and python order-only dependencies, simplifying
some of the print statements/remove sed or grep calls that can be
handled by make's own text functions

Change-Id: If4f8ef145d7721384e914ae79494c500bbf244dc
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144410
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-18 21:54:47 +00:00
6a83788dd6 process files for bookmarks.part in bulk
instead of running xsltproc for each file, pass multiple files at once,
greatly reducing the overhead of the processing, especially on
Windows/cygwin. since it not only removes the need for the xsltproc
invocations, but also for the surrounding workarounds with the rm,
touch, rm of the indicator file.

Change-Id: I4588bfc869c668a41da29b5d4080a600ed02223b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144409
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-18 21:54:39 +00:00
88c2d79432 reduce number of process calls when building html help
For each language times the 2500+ xhp files the build did run
dirname, mkdir, and pwd (twice, and on windows also with additional
cygpath) - replacing those by static values provided my make saves
4-5 minutes on a fast m1 machine and over 25 on windows with
cygwin (despite building with 32 threads...)

Change-Id: Ib3ca9e2ffdea622a4b5f578f2580152eb0b3b674
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144393
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-17 21:43:45 +00:00
53871c4cf5 fix missing ) in the if statement.
Change-Id: I6b2a45aeda8969778e902ae71e3fa5e46b82875a
2022-12-16 09:31:01 +01:00
5daaa3e440 cd to helpcontent2/source/text & drop it from filenames for larger batches
On the Jenkins Windows builder only 40~45 of the ~2500 helpfiles can be
processed at once when not stripping that prefix. With the shortened
filenames the build needs less than half of the xsltproc invocations.

Also prevent a trailing carriage return to be interpreted as part of the
filename on windows and drop the abbreviate_dir wrapper around the
command since there's nothing left to shorten anymore.

Change-Id: Ifaff26f73f262bd1d7cb4f813bf081782661ba17
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144236
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-15 21:04:03 +00:00
970907045a Fix prepending xargs to gb_ExternalExecutable_get_command, help part
...as was done in f048f02f50 "hid2file.js
generation: process in batch, not each file one-by-one", causing my build to
fail with

> [XSL] CustomTarget/helpcontent2/help3xsl/hid2file.js
> xargs: LD_LIBRARY_PATH=/home/sbergman/gcc/trunk/inst/lib64:/home/sbergman/lo/core/instdir/program:/home/sbergman/lo/core/instdir/program: No such file or directory

Change-Id: I94ea42878de55a887e6955b350997425438bb90e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144154
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-12-14 10:42:16 +00:00
f048f02f50 hid2file.js generation: process in batch, not each file one-by-one
xsltproc can happily process many files at once, no need to process them
individually and also no need to surround them with the rm, touch, rm
triplet each time to catch a possible error.
When letting xargs actually run the command, then xargs will report
error if any invocation failed. It will not stop execution commands for
remaining input unless the command exists with status 255 explicitly,
but this doesn't matter, processing the whole batch regardless is still
much faster than processing each file separately.
To maximize the number of files that can be processed in a single
command, don't prefix each file with $(SRCDIR)/, but instead cd to
$(SRCRDIR) before running the command.

Change-Id: I532a54f7298d7011900af5e618d75b37649b0477
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144050
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-13 15:12:01 +00:00
e1cf517976 gb_var2file: remove now unused chunk-size parameter (help repo)
Change-Id: Ie0a310b004d969b62c9ee886fee3e8e50d6e5184
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143935
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-13 15:04:21 +00:00
919def267b tdf#123318 tdf#129697 Don't hardcode product name in CSS and JS
Change-Id: I0ef315146fed188eb1cf33c416ff5f3e9899bbae
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128524
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-01-25 16:40:00 +01:00
15deec972f Adapt helpcontent2 to var2file rename
...in core commit 3829c0c7db8768ca05f148e8f5c271ddb56d5bae "Resolves: tdf#97046
ensure build system variables start with gb_"

Change-Id: I2d9f579921843dbfb55efde492ea19abb3c6782e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124682
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-04 13:00:12 +01:00
abdad98a45 tdf#133928 Help need javascript enabled in browser
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-13 12:41:14 +02:00
44086795df Restore sort for Index
Generates a sorted bookmark.js file

Change-Id: Iea7a6485aebe504da9f8d66236e3fe600097bafa
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/95091
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-05-29 16:18:58 +02:00
4cb385dca9 Refactor database help page
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-16 19:29:49 +02:00
3e0fb08cce tdf#128519 Icon replacement table in build time
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-13 21:21:34 +02:00
e21698f795 Fix helpers/make_icon_link.txt.py
It contained Python-2--isms that caused errors when /usr/bin/python is Python 3
(at least on Fedora 32 with python-unversioned-command-3.8.2-2.fc32.noarch and
python3-3.8.2-2.fc32.x86_64):

>   File "helpcontent2/helpers/make_icon_link.txt.py", line 21
>     print "There was an error reading", file_icon
>           ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean print("There was an error reading", file_icon)?

and

>   File "helpcontent2/helpers/make_icon_link.txt.py", line 39
>     if line.find('png',0, len(line)) <> -1 :
>                                       ^
> SyntaxError: invalid syntax

So fix helpers/make_icon_link.txt.py to be proper Python 3 and explicitly
execute it with gb_ExternalExecutable_get_command,python instead of via a
/usr/bin/python shebang.

(That file was apparently not executed during the build prior to
ee180ade07 "tdf#128519 Automate icon repl't table
for Help bld", so these issues were not noticied earlier.)

Change-Id: Ia3cff9538ab537076a02b64ad8c1bf56dcfaf30b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94039
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-05-12 11:26:53 +02:00
ee180ade07 tdf#128519 Automate icon repl't table for Help bld
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-11 17:43:42 +02:00
9bcd8ffcc1 Add dep's for xapian-omindex build
Change-Id: If3e3efbb04e40c906618aec8da5552560bd0678e
Reviewed-on: https://gerrit.libreoffice.org/84145
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-12-01 13:24:14 +01:00
4ad79a357b Fix L10N of xapian templates
Change-Id: I23e3adc4a4232e9f9d998fa9f41951f7c530c335
Reviewed-on: https://gerrit.libreoffice.org/82721
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-14 21:47:29 +01:00
242a6bbefc More work on Xapian result page
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>
2019-10-14 21:13:15 +02:00
aa45ded698 redmine#2555 replace Help online Google search
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>
2019-10-01 15:00:44 +02:00
e7ae111766 Untangle Help Contents for Impress and Draw
Create a separated sdraw.tree for Contents and move entries
from Impress tree to Draw tree.

Common contents are maintained in both trees.

This is work in progress. Draw and Impress Help pages need update
especially for menus.

Change-Id: I179a5ee7407c4a8357a87b2e7a0d8782b7bb0520
Reviewed-on: https://gerrit.libreoffice.org/72693
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-05-23 14:49:47 +02:00
5c561c2f37 fix forgotten LANG->LANGUAGE
Change-Id: Idcfd73213452510f769854062d0916a3c871b548
Reviewed-on: https://gerrit.libreoffice.org/70982
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-04-23 09:48:06 +02:00
8a21dc1cc5 Don't set LANG env var by accident
...as setting a GNU Make LANG var exports it to recipes as an env var, and see
e.g. 56bc0b1a376f62570a7287e9bb4193e00360c978 "Don't set locale env vars on
macOS" for potential problems caused by that.

This is the help half of a change spanning the core and help repos.

Change-Id: Ib5faf612e9030db384f7408ecd4fd03e65120f17
Reviewed-on: https://gerrit.libreoffice.org/70930
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-04-18 15:38:51 +02:00
2d21ebb74b Revert "Create XSLT replacement table for missing icons"
This reverts commit 61f44912be.

Change-Id: Icd69ccd4f487a82426a00169728ec62bbff6d0b6
Reviewed-on: https://gerrit.libreoffice.org/70350
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-06 21:52:57 +02:00
61f44912be Create XSLT replacement table for missing icons
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-04-06 16:04:33 +02:00
9b776454d9 Add module name to Contents link URL
Add ?DbPAR=<MODULE> to the contents link URL. <smodule>.tree does not
have the DbPAR param in the link URLs.

2 possibiltites:
1) Add to the source files *.tree and we are done (triggers retranslation)

2) get module name at build time and add to the resulting tree (this
solution)

Change-Id: I2a3c1edcec7dd824a44bb93f0343ec8cb88cb0c4
Reviewed-on: https://gerrit.libreoffice.org/69714
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-26 12:51:58 +01:00
a72b5e9079 Propagate xsltproc failure, part 2
...following up on c3509fb7e6 "Propagate xsltproc
failure".  The while loops would only have a non-zero exit code if the xsltproc
invocation in the last iteration of the loop fails.  (Oddly, adding `set -e`
instead seems to have no effect.)

Change-Id: I9296a59147697595ebe7b0d2b742044f8a8a3f02
Reviewed-on: https://gerrit.libreoffice.org/68309
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-25 10:51:15 +01:00
c3509fb7e6 Propagate xsltproc failure
Change-Id: I26516bb718b678718822ef8621bbfb868016d626
Reviewed-on: https://gerrit.libreoffice.org/68192
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-22 09:24:48 +01:00
8986dec822 tdf#121532 Don't use non-standard echo -n
At least the version of echo used to build TDF's LO 6.2.0.3 release apparently
doesn't understand that non-standard option and printed out "-n" verbatim,
generating a broken languages.js.  (Though my local macOS 10.14.3 /bin/echo does
understand that option.)

Change-Id: I7233fa5c6e7851c5086c428a67aaee71604061e1
Reviewed-on: https://gerrit.libreoffice.org/67858
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-15 11:25:38 +01:00
6a39aed4a3 Database files should appear with app:"BASE" in instdir/help/*/bookmarks.js
...instead of with app:"SHARED", according to a request by buovjaga.

That means that helpcontent2/source/text/shared/explorer/database/*.xhp files
(and their per-locale counterparts) should be processed into workdir/
CustomTarget/helpcontent2/help3xsl/shared/explorer/database/*/bookmarks.part
(which were empty until now) instead of
workdir/CustomTarget/helpcontent2/help3xsl/shared/*/bookmarks.part.

This change requres gb_AllLangHelp_*_BOOKMARK_HELPFILES introduced into the core
repo with <https://gerrit.libreoffice.org/#/c/63364/> "Prepare
gb_AllLangHelp_add_helpfiles for special bookmark needs".

Change-Id: I8f37fcec67a37aee4260042e550214a34495254a
Reviewed-on: https://gerrit.libreoffice.org/63365
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-11-14 16:23:37 +01:00
9fb9990b35 tdf#119415 change from fuse.js to fuzzysort.js
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-11-09 21:14:57 +01:00
9f22fa7cf5 Translate the language names in JS.
Change-Id: I7185a7d0981abbacef4a152ee6ac5352ebe970cd
Reviewed-on: https://gerrit.libreoffice.org/59150
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-16 13:52:05 +02:00