Next: , Previous: HTML Translation, Up: Generating HTML


22.2 HTML Splitting

When splitting output (which is the default), makeinfo writes HTML output into (generally) one output file per Texinfo source @node.

The output file name is the node name with special characters replaced by `-''s, so it can work as a filename. In the unusual case of two different nodes having the same name after this treatment, they are written consecutively to the same file, with HTML anchors so each can be referred to separately. If makeinfo is run on a system which does not distinguish case in filenames, nodes which are the same except for case will also be folded into the same output file.

When splitting, the HTML output files are written into a subdirectory, with the name chosen as follows:

  1. makeinfo first tries the subdirectory with the base name from @setfilename (that is, any extension is removed). For example, HTML output for @setfilename gcc.info would be written into a subdirectory named `gcc'.
  2. If that directory cannot be created for any reason, then makeinfo tries appending `.html' to the directory name. For example, output for @setfilename texinfo would be written to `texinfo.html'.
  3. If the `name.html' directory can't be created either, makeinfo gives up.

In any case, the top-level output file within the directory is always named `index.html'.

Monolithic output (--no-split) is named according to @setfilename (with any `.info' extension is replaced with `.html') or --output (the argument is used literally).