blob: 542cabf61dd88b89e0d7b81812a7d1da7437e81e [file] [log] [blame] [view]
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +02001# LibreOffice help build
2
3LibreOffice can build three kinds of help output from helpcontent2:
4
Andrea Gelminic3ac0f82022-07-30 21:42:51 +02005* XML (local, bundled with LibreOffice < 6.0)
6* HTML (local, bundled with LibreOffice >= 6.0)
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +02007* HTML (online)
8
Andrea Gelminic3ac0f82022-07-30 21:42:51 +02009Both local help variants can be included in help-packs, which might be bundled
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020010with the installer or provided as separate packages. They are supposed to be
11installed by a user to provide localized help. Both HTML-based help types are
12displayed in a browser, while the XML help uses an internal viewer component.
13
14The XML help is the only one supported in extensions.
15
16## configure options
17
18--with-help: selects the help type to build
19--with-omindex: prepares the online help for a Xapian Omega based search index
20--disable-xmlhelp: removes support for the XML help
21--with-helppack-integration: includes the help-packs in the installer
22
23Also see `configure --help`.
24
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020025## XML help, bundled
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020026
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020027This type was bundled per-default until LibreOffice 6.0.
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020028
29This help output is generated by using two tools: HelpIndexer and HelpLinker.
30It uses an internal viewer component. Extensions still use this help type to
31ship their help. This output is originally based on JavaDoc.
32
33The main support for this help type is in the following directories:
34
35* helpcompiler: tooling and support library
36* xmlhelp: the viewer component
37* desktop/source/deployment/registry/help: extensions / help-pack support
38
39Most code is "marked" by HAVE_FEATURE_XMLHELP precompiler blocks or conditioned
40by the XMLHELP flag in the $BUILD_TYPE variable.
41
42Interestingly the HelpIndexer and HelpLinker are used by gbuild to build the
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020043help inside bundled extensions, but both are not part of the LibreOffice SDK.
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020044
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020045## HTML help, bundled
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020046
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020047This type is bundled per-default since LibreOffice 6.0 and displayed in a
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020048browser.
49
50## HTML help, online
51
52This help is the external one, currently provided by help.libreoffice.org. It
Andrea Gelminic3ac0f82022-07-30 21:42:51 +020053differs from the bundled HTML help in three main aspects:
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020054
55* has a language chooser widget
56* provides an additional Xapian Omega, CGI- / server-based search index
57* includes some additional multimedia assets
58
59It is opened in a browser.