summaryrefslogtreecommitdiff
path: root/help3xsl/LOHelp.html
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-08-02 00:49:11 -0300
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-08-02 06:01:42 +0200
commit9f9cebab254146cbae0a093626ed78801e85b98f (patch)
tree2a6e56904450fe3d88ad2d21e561a5c83d7c9dd8 /help3xsl/LOHelp.html
parent4d6f86d203814a211eae9dfacd4baf195ca4ff1d (diff)
tdf#97745 Handle offline browser help
* Rename index.html to LOHelp.html. index.html is a bad name, too generic. LOHelp.html is invoked by LibreOffice and is not a popular file name. * Clean the XSLT transform, add suport for local help. * reposition bookmark2file.js in the target tree. * remove obsolete files * page tree now capable to be opened by file:// protocol, passing 'online' parameter and folder address to the bash script. Change-Id: I2cf9f69de7896bd74074745993ef033bef5c3503 Reviewed-on: https://gerrit.libreoffice.org/40661 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl/LOHelp.html')
-rw-r--r--help3xsl/LOHelp.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/help3xsl/LOHelp.html b/help3xsl/LOHelp.html
new file mode 100644
index 0000000000..bd2100a7e4
--- /dev/null
+++ b/help3xsl/LOHelp.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<!--
+* 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/.
+-->
+<html>
+<head>
+ <script type="text/javascript" src="latest/help.js"></script>
+</head>
+<body>
+<script type="text/javascript">
+ var url = window.location.href;
+ var n = url.indexOf('LOHelp.html?');
+ if (n != -1){
+ // the URL came from LibreOffice help (F1)
+ var version = getParameterByName("Version",url);
+ var rest = url.substr(n+12,url.lenght);
+ var newURL = version+'/index.html?'+rest;
+ window.open(newURL,'_self');
+ }else{
+ // URL came from elsewhere, direct access to webroot, we redirect to main Help page
+ window.open('latest/en-US/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self');
+ }
+</script>
+</body>
+</html>
+