HTML Tidy-cvs_20101110

Introduction to HTML Tidy

The HTML Tidy package contains a command line tool and libraries used to read HTML, XHTML and XML files and write cleaned up markup. It detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and compatible with most browsers.

This package is known to build and work properly using an LFS-7.6 platform.

Package Information

HTML Tidy tarballs are no longer generated by the maintainers. To build from source, the HTML Tidy developers recommend using current CVS. The source tarball shown above was created by the BLFS team by pulling a CVS version, then generating the autotool components and documentation. BLFS made no changes to the existing source files.

HTML Tidy Dependencies

Optional

Dmalloc

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tidy

Installation of HTML Tidy

Install HTML Tidy by running the following commands:

./configure --prefix=/usr --disable-static &&
make

This package does not come with a test suite.

Now, as the root user:

make install &&

install -v -m644 -D htmldoc/tidy.1 \
                    /usr/share/man/man1/tidy.1 &&
install -v -m755 -d /usr/share/doc/tidy-cvs_20101110 &&
install -v -m644    htmldoc/*.{html,gif,css} \
                    /usr/share/doc/tidy-cvs_20101110

If you wish to install the API documentation you must have Doxygen-1.8.8 installed, then change directories into the htmldoc of the source tree and issue the command doxygen. Then as the root user copy the api directory to /usr/share/doc/tidy-cvs_20101110.

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Configuring HTML Tidy

Config Files

The absolute path of the file specified in $HTML_TIDY.

Configuration Information

The default configuration options can be set in the file defined in $HTML_TIDY. Additional configuration options can be passed to tidy via command line parameters or the -config <file> parameter.

Contents

Installed Programs: tab2space and tidy
Installed Library: libtidy.so
Installed Directory: /usr/share/doc/tidy-cvs_20101110

Short Descriptions

tab2space

is a utility to expand tabs and ensure consistent line endings.

tidy

validates, corrects, and pretty-prints HTML files.

libtidy.so

library provides the HTML Tidy API functions to tidy and can also be called by other programs.

Last updated on 2014-09-10 06:19:10 -0700