Files
help/help3xsl
Henrik Karlsson e95e2a6d94 Update redirects to replace the url rather than navigate to a new one
Current links from outside (like the wiki) will cause excess history
entries when clicking the https://help.libreoffice.org/ link,
breaking the back button.

See the example of the visited pages below. Ideally only the referring
page and the final page should be in the history, allowing the user to
navigate back.

1. https://help.libreoffice.org/Main_Page
2. https://help.libreoffice.org/ - 302 redirect
3. https://help.libreoffice.org/help.html - window.location.href
4. https://help.libreoffice.org/latest/index.html - window.location.href
5. https://help.libreoffice.org/latest/en-US/text/shared/05/new_help.html?&DbPAR=WRITER&System=UNIX

The second 302 redirect is fine as it simply replaces the history. The
two window.location.href assigments however should be replaced with
window.location.replace.

Change-Id: I6fbe7141de87c939aa816fdfc2fe5255e9792e0b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106429
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-11-26 12:03:03 +01:00
..
2020-10-24 11:58:50 +02:00
2018-11-10 06:47:03 +01:00
2020-06-17 01:32:48 +02:00
2019-03-27 15:41:30 +01:00
2020-05-31 16:11:47 +02:00
2020-05-31 16:11:47 +02:00
2018-08-09 18:21:29 +02:00

Helpcontent displayed in a browser
==================================

This directory contains files needed to convert the XHP files to html, and
also the html and css files needed for the actual rendering in the web
browser.

Building and translation of the XHP files is now integrated into the
LibreOffice build process based on gbuild.  If you want to use it, configure
LibreOffice with one of the:

  --with-help=html   (for the local html files)
  --with-help=online (for the html files that can be uploaded to a webserver)

Using the online version
------------------------

When you have configured with --with-help=online, the result of the build is
in

  instdir/help

You want to upload to your webserver like:

  rsync -avz instdir/help/ username@webserver:/srv/www/htdocs/

Then you also need to setup a link 'latest' on the server, like

  ln -s 6.1 latest

and make sure that symlinks are allowed in the webserver configuration.

File descriptions
-----------------

* default.css:

  the cascading style sheet for HTML formatting.

* online_transform.xsl:

  the XSL transform file. Transform XHP files into HTML files.

  This file is a modification of xmlhelper/util/main_transform.xsl, which was designed for xmlhelp XSL processor.

* help.js

  This javascript file:

  1. modifies href attributes in <a> of #DisplayArea to handle &DbPAR and &System params
  2. picks the bookmarks file and displays in #BottomLeft <div> area.
  3. Reads URL params.

New ‘Object’ tag
----------------

The filter online_transform.xsl now support the <object> tag defined for XHP files to allow a generic object in the browser. The <object> tag now maps to the following HTML5 tags:
Maps to HTML5 <video> tag:

<section id="video">
  <object id="1232312" type ="video/ogg" data="movies/testvideo.ogv" height="480px" width="640px"/>
</section>

Maps to HTML5 <audio> tag:
<section id="audio">
  <object id="1232312" type ="audio/ogg" data="audio/testaudio.wav" height="" width=""/>
</section>

Maps to HTML5 <object> tag:

  <object id="1232312" type ="{mimetype}" data="object/testobject.swf" height="" width=""/>