Configuration files are entirely optional.
Each configuration file contains one or more lines in the following format:
key=stringNo syntax checking is performed on the configuration file. If a line in the configuration file is invalid, it is ignored. Configuration file settings are case-insensitive (upper or lower-case will work).
The following is an alphabetical list of the available configuration file keys.
The following sections lists the valid configuration file settings:
| index | index files |
|---|
There are several different types of index files that can be generated. This option determines the type of index file that will be generated.
index=formatted |
default |
|---|
index=sequence |
|---|
slides=window" option.
When this option is used, all of the index formatting options are ignored.
(frames/JavaScript)
index=searchable |
|---|
slides=window" option.
When this option is used, all of the index formatting options are ignored.
The "links" option is also ignored, and is automatically set to
"open".
In addition, the "backlink" option only supports the values
"parent", "close", "back", and "URL".
(frames/JavaScript)
| slides | slide files / index files |
|---|
There are several different types of slide files that can be generated. This option determines the type of slide files that will be generated in the current directory. Since each different slide file type has unique link requirements, this option also affects the way slide links are generated in the index file.
slides=html |
default |
|---|
slides=simple" option below.
The index treats slide files no different than any other HTML files, and links
to them as specified by the "links" option. This option should not
normally be used unless there is a specific reason to do so.
(HTML 2.0)
slides=simple |
|---|
slides=frameset |
|---|
slides=window |
|---|
| backlink | index files |
|---|
Each index may have a backlink, which is a link to the parent index of the current index. The backlink appears at the top of the index. This option determines the type of backlink that will be generated.
backlink=none |
|---|
backlink=parent |
default |
|---|
backlink=keywords |
|---|
backlink=back |
|---|
backlink=smart |
|---|
backlink=close |
|---|
backlink=URL |
| links | index files |
|---|
Each index may contain a mixture of links to both slide files and
other HTML files (including index files).
This option determines the way in which links to HTML files (non-slide files) are generated.
This option does not affect links to slide files (see the "slides" option).
This option is only used if "index=formatted".
links=standard |
default |
|---|
links=open |
|---|
| CGI | index files |
|---|
Enables the CGI mode of the "mkhtmidx" utility. CGI mode uses the Common Gateway Interface (CGI) to generate indexes dynamically.
When this mode is used, the list of files and directories that can appear in the index is
obtained from an index database file which is generated by the
"mkhtmidb" utility. The index database file, "index.db", must be
located in the current directory or one of its parents (up to 4 levels down).
The actual list of links that appear in the generated index is determined by the CGI parameters
which define the matching criteria.
The index generated by the "mkhtmidx" utility is sent to stdout
instead of being written to the file "index.htm", and contains the appropriate
content-type header line.
CGI=yes |
|---|
CGI=no |
default |
|---|
keyexp |
Keyword search expression |
|---|---|
title |
Title search pattern, which may include * and ? wildcards |
desc |
Description search pattern, which may include * and ? wildcards |
min |
Minimum number of slides in a set (default = 0) |
format |
Index format (defaults to the format specified in the configuration file) |
type |
Type of links. The value can be either a (all, default), d (directories only), or f (files only) |
first |
Offset from the first match to use as the first element in the index (default = 0 = first match) |
count |
Number of links (maximum) to include on each page of the index (default = unlimited) |
index=formatted".
| template | index files |
|---|
Uses an index template file to specify the exact format of the index body. This allows full control over the index layout. If the template option is not used or if the template file does not exist, the system will format the index automatically using the default format.
template=filename |
.\filename" to specify the current directory.
| format | index files |
|---|
Determines the layout of a formatted index. If the "combine=no" option is used (default), then this option only affects the appearance of the first section in the index (links to directories). The second section will always appear in the single-column description list format (see "format=list" below), unless the "format2" option is used. If the "combine=yes" option is used, this option will determine the layout of the entire index.
format=column |
|---|
format=compact |
|---|
format=list |
|---|
format=thumbnail |
|---|
format=auto |
default |
|---|
format=format |
| format2 | index files |
|---|
Determines the layout of the second section of a formatted index. This affects the way in which links to single HTML files and slides appear. By default, the second section is formatted in the single-column description list format (see "format=list" above) This option is ignored if the "combine=yes" option is used.
format2=format |
| columns | index files |
|---|
Specifies the number of columns to display in the index.
This option is only available if "format=column",
"format=compact", or
"format=format".
columns=number |
| columnWidth or columnWidth1 | index files |
|---|
Specifies the width, in pixels, of the first field in each index entry.
This option is only available if "format=column",
"format=compact", or
"format=format".
columnWidth=pixels |
| columnWidth2 | index files |
|---|
Specifies the width, in pixels, of all fields after the first in each index entry.
This option is only available when the "format=format"
option is used.
columnWidth2=pixels |
| iPadding | index files |
|---|
Specifies the padding, in pixels, between fields in an index entry.
This option is only available when the "format=format"
option is used.
iPadding=pixels |
| hPadding | index files |
|---|
Specifies the padding, in pixels, between the columns in a multi-column index.
This option is only available when the "format=format"
option is used.
hPadding=pixels |
| vPadding | index files |
|---|
Specifies the padding, in pixels, between the rows in the index.
This option is only available when the "format=format"
option is used.
vPadding=pixels |
| combine | index files |
|---|
combine=yes |
|---|
combine=no |
default |
|---|
| tables | index files |
|---|
Specifies whether HTML tables may be used or not.
tables=yes |
default |
|---|
tables=no |
|---|
format=format" and
"format2=format" options.
| thumbnails | index files |
|---|
Specifies whether thumbnails will appear in the index or not.
thumbnails=yes |
default |
|---|
thumbnails=no |
|---|
| body | index files / slide files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for the index and all slides. This allows you to set a background color or image, and to specify the text and link colors. This option is just a shortcut that combines the "indexBody" and "slideBody" options.
body=none |
|---|
body=attributes |
<BODY attributes>.
| indexBody | index files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for the index. This allows you to set a background color or image, and to specify the text and link colors. See also "slideBody" and "body".
body=none |
|---|
body=attributes |
<BODY attributes>.
| slideBody | slide files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for all slides. This allows you to set a background color or image, and to specify the text and link colors. See also "indexBody" and "body".
body=none |
|---|
body=attributes |
<BODY attributes>.
| configFile | index files / slide files |
|---|
This option may be used in a master configuration file to specify the name of the local configuration files. A local configuration file may exist in each subdirectory, and overrides any options specified in the master configuration file. If this is not specified, then the system will not use local configuration files. This option is ignored if it appears in a local configuration file.
configFile=filename |
| JavaScript | index files / slide files |
|---|
Specifies whether JavaScript may be used or not.
JavaScript=yes |
default |
|---|
JavaScript=no |
|---|
| scale | slide files |
|---|
Causes the slide images to be scaled when displayed.
This option is only available if "slides=html" or
"slides=simple".
scale=height |
<IMG HEIGHT="height" SRC="...">.
scale=width,height |
| embed | index files / slide files |
|---|
This option causes slide files to be generated and used for files with the specified extension. Typically, this is used for video files such as ".avi", ".mov", and ".mpg" files. This option may appear multiple times in a configuration file -- once for each file type to be embedded.
embed=extension |
| reservedFile | index files / slide files |
|---|
This option adds the specified file name to the reserved file name list. Reserved file names are not added to an index file if they exist in the directory being indexed. Slide files are not generated for reserved image file names. This option may appear multiple times in a configuration file -- once for each reserved file name, however you are limited to a maximum of about ten reserved file names. This option is typically used in the master configuration file to reserve a file name in all directories (e.g. an alternate thumbnail image file name), but may also be used in a local configuration file to reserve a file name in the current directory only.
reservedFile=filename |
| thumbFile | index files |
|---|
This option specifies an alternate image file name that will be displayed as a thumbnail if it appears in a subdirectory which is referenced by this index file. When an index is generated, the system normally searches each referenced subdirectory for the standard thumbnail image files "thumb.gif" and "thumb.jpg". By adding an alternate image file name, it searches for the specified image file name first, and uses that image as the thumbnail if it finds it. Otherwise, it searches for the standard thumbnail image file names. This option may appear multiple times in a configuration file -- once for each thumbnail file name, however you are limited to a maximum of about five thumbnail file names. If this option appears more than once, the last occurence takes precidence over previous occurences (search order is last to first).
This option does not affect the thumbnail image file name that appears in the automatically generated header for the current index. It also does not reserve the thumbnail file name in the current directory. You must use the "reservedFile" option to do that. This option only affects which thumbnails appear in the index body (list of links). This option is typically used in a local configuration file to specify which thumbnails appear in that index when alternate thumbnails are available (e.g. different size or different content).
thumbFile=filename |
index=formatted slides=window links=open backlink=close format=auto configFile=makeindx.bat embed=avi embed=mov embed=mpg embed=mpeg embed=rm