From c5e3ea759768fecdf4ab66870421f38673ab8bce Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sun, 6 May 2012 19:41:03 +0000 Subject: [PATCH] Webhelp: moving parameters into the standard location so they will be part of the parameter reference --- xsl/html/param.ent | 8 +++++ xsl/html/param.xweb | 18 ++++++++++++ xsl/params/base.dir.xml | 2 +- xsl/params/webhelp.autolabel.xml | 6 ++-- xsl/params/webhelp.base.dir.xml | 8 +++-- xsl/params/webhelp.common.dir.xml | 4 +-- xsl/params/webhelp.default.topic.xml | 15 ++++++++-- xsl/params/webhelp.include.search.tab.xml | 4 +-- xsl/params/webhelp.indexer.language.xml | 29 +++++++++++++++++-- xsl/params/webhelp.start.filename.xml | 13 +++++++-- xsl/params/webhelp.tree.cookie.id.xml | 17 +++++++++-- .../xsl/{webhelp.xsl => webhelp-common.xsl} | 29 ++++++------------- 12 files changed, 115 insertions(+), 38 deletions(-) rename xsl/webhelp/xsl/{webhelp.xsl => webhelp-common.xsl} (97%) diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 18125e5f0..8434ea670 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -320,3 +320,11 @@ + + + + + + + + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index c591d37a3..c16c328b8 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -413,6 +413,16 @@ profiling of your document. For more information about profiling, see &eclipse.plugin.id; &eclipse.plugin.provider; +WebHelp +&webhelp.autolabel; +&webhelp.base.dir; +&webhelp.common.dir; +&webhelp.default.topic; +&webhelp.include.search.tab; +&webhelp.indexer.language; +&webhelp.start.filename; +&webhelp.tree.cookie.id; + JavaHelp &javahelp.encoding; @@ -753,6 +763,14 @@ around all these parameters. + + + + + + + + diff --git a/xsl/params/base.dir.xml b/xsl/params/base.dir.xml index 1e8f3fcbf..4abf9c7c8 100644 --- a/xsl/params/base.dir.xml +++ b/xsl/params/base.dir.xml @@ -21,7 +21,7 @@ Description -If specified, the base.dir identifies +If specified, the base.dir parameter identifies the output directory for chunks. (If not specified, the output directory is system dependent.) diff --git a/xsl/params/webhelp.autolabel.xml b/xsl/params/webhelp.autolabel.xml index f96e257ac..de20701af 100644 --- a/xsl/params/webhelp.autolabel.xml +++ b/xsl/params/webhelp.autolabel.xml @@ -9,8 +9,8 @@ boolean - - +webhelp.autolabel +Should tree-like ToC use autonumbering feature? @@ -20,6 +20,6 @@ Description - +To include chapter and section numbers the table of contents pane, set this parameter to 1. diff --git a/xsl/params/webhelp.base.dir.xml b/xsl/params/webhelp.base.dir.xml index 9cc14b885..1dcf6881b 100644 --- a/xsl/params/webhelp.base.dir.xml +++ b/xsl/params/webhelp.base.dir.xml @@ -10,7 +10,7 @@ webhelp.base.dir - +The base directory for webhelp output. @@ -20,6 +20,10 @@ Description - +If specified, the webhelp.base.dir +parameter identifies the output directory for webhelp. (If not +specified, the output directory is system dependent.) By default, this +parameter is set to docs. + diff --git a/xsl/params/webhelp.common.dir.xml b/xsl/params/webhelp.common.dir.xml index 448ee4dea..8d5267b76 100644 --- a/xsl/params/webhelp.common.dir.xml +++ b/xsl/params/webhelp.common.dir.xml @@ -10,7 +10,7 @@ webhelp.common.dir - +Path to the directory for the common webhelp resources (JavaScript, css, common images, etc). @@ -20,6 +20,6 @@ Description - +By default, webhelp creates a common directory containing resources such as JavaScript files, css, common images, etc. In some cases you may prefer to store these files in a standard location on your site and point all webhelp documents to that location. You can use this parameter to control the urls written to these common resources. For example, you might set this parameter to /common and create a single common directory at the root of your web server. diff --git a/xsl/params/webhelp.default.topic.xml b/xsl/params/webhelp.default.topic.xml index 8df9ec66c..4dca60ed0 100644 --- a/xsl/params/webhelp.default.topic.xml +++ b/xsl/params/webhelp.default.topic.xml @@ -10,7 +10,7 @@ webhelp.default.topic - +The name of the file to which the start file in the webhelp base directory redirects @@ -20,6 +20,17 @@ Description - +Currently webhelp creates a base directory and puts the output +files in a content subdirectory. It creates a +file in the base directory that redirects to a configured file in the +content directory. The +webhelp.default.topic parameter lets you +configure the name of the file that is redirected to. + + This parameter will be removed from a future version of + webhelp along with the content + directory. + + diff --git a/xsl/params/webhelp.include.search.tab.xml b/xsl/params/webhelp.include.search.tab.xml index b880a8653..131f32d0d 100644 --- a/xsl/params/webhelp.include.search.tab.xml +++ b/xsl/params/webhelp.include.search.tab.xml @@ -10,7 +10,7 @@ webhelp.include.search.tab - +Should the webhelp output include a Search tab? @@ -20,6 +20,6 @@ Description - +Set this parameter to 0 to suppress the search tab from webhelp output. diff --git a/xsl/params/webhelp.indexer.language.xml b/xsl/params/webhelp.indexer.language.xml index f1ef191c3..34a5843d2 100644 --- a/xsl/params/webhelp.indexer.language.xml +++ b/xsl/params/webhelp.indexer.language.xml @@ -10,7 +10,7 @@ webhelp.indexer.language - +The language to use for creating the webhelp search index. @@ -20,6 +20,31 @@ Description - +To support stemming in the client-side webhelp stemmer, you must provide the language code. By default, the following languages are supported: + + + en: English + + + de: German + + + fr: French + + + it: Italian + + + cn: Chinese + + + ja: Japanese + + + ko: Korean + + +See the webhelp documentation for information on adding support for additional languages. + diff --git a/xsl/params/webhelp.start.filename.xml b/xsl/params/webhelp.start.filename.xml index cf9ec65b8..2106de4c6 100644 --- a/xsl/params/webhelp.start.filename.xml +++ b/xsl/params/webhelp.start.filename.xml @@ -10,7 +10,7 @@ webhelp.start.filename - +The name of the start file in the webhelp base directory. @@ -20,6 +20,15 @@ Description - +Currently webhelp creates a base directory and puts the output +files in a content subdirectory. It creates a +file in the base directory that redirects to a configured file in the +content directory. The webhelp.start.filename parameter lets you configure the name of the redirect file. + + This parameter will be removed from a future version of + webhelp along with the content + directory. + + diff --git a/xsl/params/webhelp.tree.cookie.id.xml b/xsl/params/webhelp.tree.cookie.id.xml index d6a2c688e..8f790be5d 100644 --- a/xsl/params/webhelp.tree.cookie.id.xml +++ b/xsl/params/webhelp.tree.cookie.id.xml @@ -10,7 +10,7 @@ webhelp.tree.cookie.id - +Controls how the cookie that stores the webhelp toc state is named. @@ -20,6 +20,19 @@ Description - +The webhelp output does not use a frameset. Instead, the table of contents is a div on each page. To preserve the state of the table of contents as the user navigates from page to page, webhelp stores the state in a cookie and reads that cookie when you get to the next page. If you've published several webhelp documents on the same domain, it is important that each cookie have a unique id. In lieu of calling on a GUID generator, by default this parameter is just set to the number of nodes in the document on the assumption that it is unlikely that you will have more than one document with the exact number of nodes. A more optimal solution would be for the user to pass in some unique, stable identifier from the build system to use as the webhelp cookie id. For example, if you have safeguards in place to ensure that the xml:id of the root element of each document will be unique on your site, then you could set webhelptree.cookie.id as follows: + + + + + + + + + + ]]> + + diff --git a/xsl/webhelp/xsl/webhelp.xsl b/xsl/webhelp/xsl/webhelp-common.xsl similarity index 97% rename from xsl/webhelp/xsl/webhelp.xsl rename to xsl/webhelp/xsl/webhelp-common.xsl index 5dd41f0bb..6cc7273a0 100644 --- a/xsl/webhelp/xsl/webhelp.xsl +++ b/xsl/webhelp/xsl/webhelp-common.xsl @@ -6,6 +6,15 @@ version="1.0" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="exsl ng db"> + + - - - true - index.html - docs - - ../common/ - - - - en - index.html - 0 - - yes 0 -- 2.40.0