diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-06-20 00:04:54 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-06-25 01:55:11 +0200 |
commit | 181b72469b27cc2f711525838463e98a0920161c (patch) | |
tree | 671e2cc4f601c6237fb00a95944a0b062ac5b2b2 /help3xsl/get_url.sh | |
parent | bd033eb897b7c43f1f6e8c35cc50d4a73ace84af (diff) |
Help-in-browser: several improvements
* tabs for Contents/Index/Search
* product version (6.0, 5.3, 5.2, etc...)
* capable to receive URL from LibreOffice help call
(need to change help url in sfx2/:
protocol://<host>/index.html?<params>
Change-Id: I2244336ea47cdb923884ae97b9f4a586d85ec706
Reviewed-on: https://gerrit.libreoffice.org/39227
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl/get_url.sh')
-rwxr-xr-x | help3xsl/get_url.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/help3xsl/get_url.sh b/help3xsl/get_url.sh new file mode 100755 index 0000000000..13c809dbfa --- /dev/null +++ b/help3xsl/get_url.sh @@ -0,0 +1,32 @@ +#/bin/bash + +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# $1 is html/productversion/ +# $2 is Language +# $3 is productversion + +outdir=html/ +# mkdir -p $outdir +sourcedir=`pwd`/ +ffile=$outdir'filemap.js' +rm -f $ffile +ffile2=temp.html +stub2='};' +xslfile=get_url.xsl + +# bookmarks branch -> path/to/helpfile.html + +stub1='var map={' +sfind=$sourcedir'text/' +rm -f $ffile2 +find $sfind -type f -name "*.xhp" -exec xsltproc $xslfile {} + > $ffile2 +echo $stub1 >> $ffile +# sort -k3b -t\> -s -o $ffile2 $ffile2 +awk 'NF' $ffile2 >> $ffile +echo $stub2 >> $ffile + |