summaryrefslogtreecommitdiff
path: root/doc/xohtml.rst
diff options
context:
space:
mode:
authorPhil Shafer <phil@FreeBSD.org>2018-05-23 01:12:17 +0000
committerPhil Shafer <phil@FreeBSD.org>2018-05-23 01:12:17 +0000
commitb7a4d12840ce37071dcb3d02a60d63721eae59ad (patch)
tree7c6927467d1ac61faea54ab09195b4cc9b133a12 /doc/xohtml.rst
parent76c53ac649e0dd82edd30b02b182d19fd1f4fceb (diff)
Notes
Diffstat (limited to 'doc/xohtml.rst')
-rw-r--r--doc/xohtml.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/xohtml.rst b/doc/xohtml.rst
new file mode 100644
index 0000000000000..82f24a638f6d6
--- /dev/null
+++ b/doc/xohtml.rst
@@ -0,0 +1,30 @@
+.. index:: xohtml
+
+.. _xohtml:
+
+xohtml
+======
+
+`xohtml` is a tool for turning the output of libxo-enabled commands into
+html files suitable for display in modern HTML web browsers. It can
+be used to test and debug HTML output, as well as to make the user
+ache to escape the world of '70s terminal devices.
+
+`xohtml` is given a command, either on the command line or via the "-c"
+option. If not command is given, standard input is used. The
+command's output is wrapped in HTML tags, with references to
+supporting CSS and Javascript files, and written to standard output or
+the file given in the "-f" option. The "-b" option can be used to
+provide an alternative base path for the support files:
+
+============== ===================================================
+ Option Meaning
+============== ===================================================
+ -b <base> Base path for finding css/javascript files
+ -c <command> Command to execute
+ -f <file> Output file name
+============== ===================================================
+
+The "-c" option takes a full command with arguments, including
+any libxo options needed to generate html (`--libxo=html`). This
+value must be quoted if it consists of multiple tokens.