Appendix B - Book File Format

This appendix describes the HTMLDOC .book file format.

Introduction

The HTMLDOC .book file format is a simple text format that provides the command-line options and files that are part of the document. These files can be used from the GUI interface or from the command-line using the --batch option:

The first form will load the book and display the GUI interface, if configured. Windows users should use ghtmldoc.exe executable to show the GUI and htmldoc.exe for the batch mode:

The Header

Each .book file starts with a line reading:

The version number (1.8.17) is optional.

The Options

Following the header is a line containing the options for the book. You can use any valid command-line option on this line:

Long option lines can be broken using a trailing backslash (\) on the end of each continuation line:

The Files

Following the options are a list of files or URLs to include in the document:

Putting It All Together

The following is the complete book file needed to generate this documentation:

Older Book Files

Prior to HTMLDOC version 1.8.12, the book file format was slightly different:

While HTMLDOC still supports reading this format, we do not recommend using it for new books. In particular, when generating a document using the --batch option, some options may not be applied correctly since the files are loaded prior to setting the output options in the old format.