getxcatdocs - downloads the xCAT documentation and converts to HTML and PDF
getxcatdocs [-? | -h | --help | -v | --version] [destination-dir]
The getxcatdocs command downloads the xCAT documentation from the wiki and converts it to both HTML and PDF. This enables reading the documentation when you do not have internet access. Note that this command does not download/convert the entire xCAT wiki - only the ``official'' xCAT documentation linked from https://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Documentation .
If destination-dir is specified, getxcatdocs will put the converted documentation in that directory, in 2 sub-directories: html, pdf. Otherwise, it will put it in the current directory (in the same two sub-directories).
getxcatdocs uses wget to do the download the documents and xhtml2pdf to convert them to PDF. To install xhtml2pdf, see: https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Editing_xCAT_Documentation_Pages#Converting_Wiki_Pages_to_HTML_and_PDFs .
This command does not run on AIX or Windows.
The conversion to HTML does not yet honor the xCAT wiki style sheet.
Command Version.
Display usage message.
0 The command completed successfully.
1 An error has occurred.
To download/convert the documentation and put it in ~/tmp:
getxcatdocs ~/tmp
/opt/xcat/bin/getxcatdocs